SMF For Free Support Forum
Signup For Free Forum
January 09, 2009, 04:53:20 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1] 2
  Print  
Author Topic: [request] Hidden class  (Read 981 times)
0 Members and 1 Guest are viewing this topic.
trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« 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.
Stewie343
SMF For Free Newbie
*
Offline Offline

Posts: 15


View Profile WWW
« Reply #1 on: October 27, 2007, 08:30:41 pm »

I'm not sure if this is what you wanted, but

Check here if you want to hide post from guest.
http://smcodes.smfforfree3.com/index.php/topic,336.0.html

and here is to hide post in certain forums.
http://smcodes.smfforfree3.com/index.php/topic,337.0.html
Logged


trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« 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 Offline

Posts: 230


High School Science.........


View Profile
« Reply #3 on: October 28, 2007, 06:44:04 am »

I think you could make two classes.
Code:
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
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« 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
Moderator
*****
Offline Offline

Posts: 694


Do not PM me for Code Support or Request


View Profile
« Reply #5 on: October 28, 2007, 03:26:13 pm »

Accually, classes are CSS.  But, you can do this:

http://smcodes.smfforfree3.com/index.php/topic,33.0.html
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« 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
Moderator
*****
Offline Offline

Posts: 694


Do not PM me for Code Support or Request


View Profile
« Reply #7 on: October 28, 2007, 04:31:13 pm »

Ah, I see...
Code:
<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
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« 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
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« 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
Moderator
*****
Offline Offline

Posts: 694


Do not PM me for Code Support or Request


View Profile
« 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
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« 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
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« 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
Moderator
*****
Offline Offline

Posts: 694


Do not PM me for Code Support or Request


View Profile
« 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
Global Moderator
*
Online Online

Posts: 10008



View Profile WWW
« Reply #14 on: October 29, 2007, 08:00:47 pm »

hey Moosey?   does he need your header code as well?
Logged



Pages: [1] 2
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.385 seconds with 20 queries.