WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Solved background color for staff only Sun Apr 22, 2012 7:43 pm

Matti

Matti
Registered Member
Registered Member
Hi, guys

I want to change the BG color for staff members only. But i don't want to change for the post I want to change it for postmain if you not sure what I mane you can have a look here http://csshelp.forumotion.net/t34-how-did-you-find-us I have another arrow that I'm gonna use for staff members so canone help with this.

http://csshelp.forumotion.net/

2Solved Re: background color for staff only Sun Apr 22, 2012 10:53 pm

RSguideMaker

RSguideMaker
Registered Member
Registered Member
I want the bgcolor to be able to be changed for admins, and different for mods. Suchas the RuneScape forums. They have Gold Background for admins, green for mods/gmods and forum default for normal users

3Solved Re: background color for staff only Mon Apr 23, 2012 5:22 am

Unknown Data

Unknown Data
Registered Member
Registered Member
Code:
var posts = $(".postmain").get();
for (i=0; i<posts.length; i++) {
    if (posts[i].childNodes[0].lastChild.childNodes[0].href=="/u1") {
        posts.backgroundColor="#FFFFFF";
    }
}
This sould change the background to #FFFFFF, for all postmain class div elements, which contains the userlink with the id 1.
Change it to the according informations, for which color and id, you wish to manipulate.

http://woops.dk

4Solved Re: background color for staff only Tue Apr 24, 2012 1:33 am

RSguideMaker

RSguideMaker
Registered Member
Registered Member
Unknown Data wrote:
Code:
var posts = $(".postmain").get();
for (i=0; i<posts.length; i++) {
    if (posts[i].childNodes[0].lastChild.childNodes[0].href=="/u1") {
        posts.backgroundColor="#FFFFFF";
    }
}
This sould change the background to #FFFFFF, for all postmain class div elements, which contains the userlink with the id 1.
Change it to the according informations, for which color and id, you wish to manipulate.

I don't get it. Please explain more.

5Solved Re: background color for staff only Tue Apr 24, 2012 2:12 am

RSguideMaker

RSguideMaker
Registered Member
Registered Member
What I want is this:

background color for staff only RSadminpost

background color for staff only RSmodpost

background color for staff only RSnormalpost

6Solved Re: background color for staff only Tue Apr 24, 2012 4:49 am

Unknown Data

Unknown Data
Registered Member
Registered Member
RSguideMaker wrote:I don't get it. Please explain more.
The code itself loops through all the posts, and gives them each a unique id. It then searches for the users with an userid of 1, in each of these posts. If that statement is true, will it change the background to #FFFFFF, white.

But I don't know if it would work for your board, because the DOM could be different from his to yours. The code is mainly targetting Makis request from the information he gave in his post.

http://woops.dk

7Solved Re: background color for staff only Wed Apr 25, 2012 12:41 am

RSguideMaker

RSguideMaker
Registered Member
Registered Member
I've sorted my problem.

The correct answer to this question can be found here, as this is what I used to sort my forum.

8Solved Re: background color for staff only Wed Apr 25, 2012 12:42 am

Matti

Matti
Registered Member
Registered Member
UD, is not working.

@RSguideMaker please open your owen topic...

http://csshelp.forumotion.net/

9Solved Re: background color for staff only Wed Apr 25, 2012 4:06 am

Unknown Data

Unknown Data
Registered Member
Registered Member
I've probably searched for the wrong element. Haven't really looked at the DOM yet, but will maybe do it tommorow, so I can give you the correct sample.

http://woops.dk

10Solved Re: background color for staff only Sun Apr 29, 2012 6:05 pm

Matti

Matti
Registered Member
Registered Member
Unknown Data wrote:I've probably searched for the wrong element. Haven't really looked at the DOM yet, but will maybe do it tommorow, so I can give you the correct sample.

Any news UD?

http://csshelp.forumotion.net/

11Solved Re: background color for staff only Sun Apr 29, 2012 6:57 pm

gameface101

gameface101
Registered Member
Registered Member
@Matti - PUNBB yah? the link that RSguideMaker
found should do the trick assuming your staff will have special ranks.

try this out for the administrator

APC> U/G > RANKS > RA

Code:
<span class="admin" style="color:#cd3df5">Administrator</span>

then add this to your JS collection

APC> Mz > JCM

Code:

$(function() {
$('div.post:has(".admin"),').css('background-color','#cd3df5');
});

^,^

http://www.gameface101.com

12Solved Re: background color for staff only Sun Apr 29, 2012 7:44 pm

Unknown Data

Unknown Data
Registered Member
Registered Member
Have totally forgot about this thread, sorry.
By try this (forgot to add a couple of signs last time):
Code:
var posts = $(".postmain").get();
for (i=0; i<posts.length; i++) {
    if (posts[i].childNodes[0].lastChild.childNodes[0].href=="/u1") {
        posts[i].backgroundColor="#FFFFFF";
    }
}

http://woops.dk

13Solved Re: background color for staff only Thu May 24, 2012 1:43 pm

samkallis


Banned Member
Banned Member
Credibility Indicators

Identifying "credibility indicators" can help ensure a firm is trustworthy, and will be around after your deposit or full payment is sent.

Credibility indicators include, but are not limited to:

* Toll free telephone support

* 24 hour customer service

* Better Business Bureau affiliation

* Human e-mail address contacts

* Google PageRank of 2 or above

* Presentation of a hard-copy quote/design contract

14Solved Re: background color for staff only Wed May 30, 2012 3:46 am

Matti

Matti
Registered Member
Registered Member
This topic should be locked now.

http://csshelp.forumotion.net/

15Solved Re: background color for staff only Thu May 31, 2012 1:29 pm

Sanket

Sanket
Administrator
Administrator
Solved | Locked

http://www.webartzforum.com

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum