|
Post by S|P|L|A|T on Mar 22, 2007 14:31:08 GMT -5
Ok i i'm putting a table on the left of my forum.I'm going to put the regular nav buttons there, but i want to be able to have certain buttons show for certain people (Guests admin members) but i don't know how, i think i could use something like this. Heres the buttons for each member. GUESTSMembers- Home
- Help
- Search
- Members
- Profile
- Sign out
ADMINS - Home
- Help
- search
- members
- profile
- admin
- sign out
Any questions just ask me.
|
|
Gamoc
Smiley Abuser & Big Word Abuser..
Defying Gravity!
Posts: 3,935
|
Post by Gamoc on Mar 25, 2007 0:05:39 GMT -5
You could do some javascript(this is the best that I know of)
if(pb_username == guest) { code here }
if(pb_username == member) { code here }
Not sure how to do it for staff.
|
|
|
Post by S|P|L|A|T on Mar 25, 2007 8:02:58 GMT -5
You could do some javascript(this is the best that I know of) if(pb_username == guest) { code here} if(pb_username == member) { code here} Not sure how to do it for staff. this can be locked i've gotten it resolved. What you can do for admins is if(document.getElementsByTagName("td")[5].innerHTML.match(/admin/i)) it checks the menu bar for the word admin.
|
|