|
trevix
|
 |
« on: October 27, 2007, 07:59:33 pm » |
|
could someone make a class code that will hide specific links and other stuff from guests, regular members, and mods?
so i could have links that members could see
EX. <a class="regular" href="balh.balh.com">COW</a>
|
|
|
|
« Last Edit: November 01, 2007, 12:27:33 am by trevix »
|
Logged
|
Ad Machine - Free advertising and tips on how to promote your board.
|
|
|
|
|
|
|
|
trevix
|
 |
« Reply #2 on: October 27, 2007, 08:51:45 pm » |
|
not posts links
edit: plus i said a Class
|
|
|
|
« Last Edit: October 27, 2007, 09:42:11 pm by trevix »
|
Logged
|
Ad Machine - Free advertising and tips on how to promote your board.
|
|
|
Omikron 9861
SMF For Free Full Member
Offline
Posts: 230
High School Science.........
|
 |
« Reply #3 on: October 28, 2007, 06:44:04 am » |
|
I think you could make two classes. a { display: none; } a.regular { display: show; } I don't know if that'd work, though. I'm not that good at stylesheets.
|
|
|
|
|
Logged
|
 You have no idea what you are missing out on. The best place to discuss Eragon, Eldest and Book 3 is just a single click away. So click! Want a spoiler tag on your forum? Click here!
|
|
|
|
trevix
|
 |
« Reply #4 on: October 28, 2007, 11:47:55 am » |
|
... classes aren't css
|
|
|
|
|
Logged
|
Ad Machine - Free advertising and tips on how to promote your board.
|
|
|
|
Agent Moose
|
 |
« Reply #5 on: October 28, 2007, 03:26:13 pm » |
|
|
|
|
|
|
Logged
|
SMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.[/cen
|
|
|
|
trevix
|
 |
« Reply #6 on: October 28, 2007, 04:21:50 pm » |
|
is there a way i could stick it in my sidebar
|
|
|
|
|
Logged
|
Ad Machine - Free advertising and tips on how to promote your board.
|
|
|
|
Agent Moose
|
 |
« Reply #7 on: October 28, 2007, 04:31:13 pm » |
|
Ah, I see... <script> var username = $('td.titlebg2 span b').not($("td.titlebg2 span b").contains("News")).html(); //Created by Agent Moose (smcodes.smfforfree3.com) if(username){ document.write("<style> .guest {display:none;}</style>") }else{ document.write("<style> .member {display:none;}</style>") }; </script> Place that in your footers. Just place class='member' to only show to members, and place class='guest' to show only to guests.
|
|
|
|
|
Logged
|
SMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.[/cen
|
|
|
|
trevix
|
 |
« Reply #8 on: October 28, 2007, 04:33:26 pm » |
|
thank you
Edit: im having a little trouble with it, i installed it like you said then logged out and i can still see the link
|
|
|
|
« Last Edit: October 28, 2007, 04:37:53 pm by trevix »
|
Logged
|
Ad Machine - Free advertising and tips on how to promote your board.
|
|
|
|
trevix
|
 |
« Reply #9 on: October 28, 2007, 04:44:06 pm » |
|
what am i doing wrong?
|
|
|
|
|
Logged
|
Ad Machine - Free advertising and tips on how to promote your board.
|
|
|
|
Agent Moose
|
 |
« Reply #10 on: October 28, 2007, 04:44:51 pm » |
|
Can you give me your code?
|
|
|
|
|
Logged
|
SMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.[/cen
|
|
|
|
trevix
|
 |
« Reply #11 on: October 28, 2007, 04:46:05 pm » |
|
well i put the code you said to put in the footer, then i put a link with the class='member' in the sidebar
and when i log out i can still see the link
|
|
|
|
|
Logged
|
Ad Machine - Free advertising and tips on how to promote your board.
|
|
|
|
trevix
|
 |
« Reply #12 on: October 29, 2007, 07:48:11 pm » |
|
moose did you find a way to make this one work yet?, i got like a chat that i only want members to see.
|
|
|
|
|
Logged
|
Ad Machine - Free advertising and tips on how to promote your board.
|
|
|
|
Agent Moose
|
 |
« Reply #13 on: October 29, 2007, 07:58:38 pm » |
|
I don't see any reason why it isn't working for you. That is what I used for the shop...
|
|
|
|
|
Logged
|
SMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.[/cen
|
|
|
|
simply sibyl
|
 |
« Reply #14 on: October 29, 2007, 08:00:47 pm » |
|
hey Moosey? does he need your header code as well?
|
|
|
|
|
Logged
|
|
|
|
|
|
|