Gamoc
Smiley Abuser & Big Word Abuser..
Defying Gravity!
Posts: 3,935
|
Post by Gamoc on Jul 30, 2007 21:00:08 GMT -5
How do I make a banner like yours, different buttons appear depening on your membership level (guest, member, staff, admin).
|
|
Edwards
Aka: Brian Silver
Posts: 3,037
|
Post by Edwards on Jul 30, 2007 21:10:45 GMT -5
Do you mean the placement or ... what do you mean?
|
|
Matt
Graphics Admin
Great admin or greatest admin?
Posts: 4,891
|
Post by Matt on Jul 30, 2007 21:11:43 GMT -5
Coding board. I'd wait for Scorpian to reply. He coded it.
|
|
|
Post by Smangii on Jul 30, 2007 23:51:40 GMT -5
Not hard to do methinks...
<div id="usermenu"></div>
<script> <!-- var TD = document.getElementsByTagName('TD'); var usermenu = document.getElementById("usermenu");
if(pb_username == 'Guest'){ usermenu.innerHTML = 'Guest stuff here'; } if(TD[2].innerHTML.match(/,\s(\d+)\s(is|are)/)){ usermenu.innerHTML = 'Member stuff here';
if(pb_username == 'admin'){ usermenu.innerHTML = 'Admin stuff here'; } } //--> </script>
|
|
No, it's Cymbals.
Banned
You're not as clever as you think you are.
rofl
Posts: 2,206
|
Post by No, it's Cymbals. on Aug 11, 2007 10:06:41 GMT -5
IM gonna stay outta this since I can't code but I would trust smangers
|
|
~CrAzY~™
Community Admin
The Karate Kid
What?.. Nosy Jerk..
Posts: 3,129
|
Post by ~CrAzY~™ on Aug 14, 2007 21:57:02 GMT -5
Shouldn't this be moved to the coding discussion board?
|
|
No, it's Cymbals.
Banned
You're not as clever as you think you are.
rofl
Posts: 2,206
|
Post by No, it's Cymbals. on Aug 16, 2007 11:51:31 GMT -5
I guess. why dont you just move it >.>
|
|
Gamoc
Smiley Abuser & Big Word Abuser..
Defying Gravity!
Posts: 3,935
|
Post by Gamoc on Aug 23, 2007 21:35:30 GMT -5
Not hard to do methinks... <div id="usermenu"></div> <script> <!-- var TD = document.getElementsByTagName('TD'); var usermenu = document.getElementById("usermenu"); if(pb_username == 'Guest'){ usermenu.innerHTML = 'Guest stuff here'; } if(TD[2].innerHTML.match(/,\s(\d+)\s(is|are)/)){ usermenu.innerHTML = 'Member stuff here'; if(pb_username == 'admin'){ usermenu.innerHTML = 'Admin stuff here'; } } //--> </script> didn't work.
|
|
|
Post by Kronus on Sept 3, 2007 10:20:49 GMT -5
Did you put the right codes where they should go? xD
|
|
Gamoc
Smiley Abuser & Big Word Abuser..
Defying Gravity!
Posts: 3,935
|
Post by Gamoc on Sept 5, 2007 21:46:12 GMT -5
Oh no, I figured it out myself already.
|
|