Advertise Here

Author Topic: [req]Tabs hidden from guests or certain member groups (smf page tabs)  (Read 1587 times)

0 Members and 1 Guest are viewing this topic.

Offline Sparkwattclock

  • SMF For Free Member
  • *
  • Posts: 92
  • The leader of the GWC here!
    • View Profile
    • Sparkwattclock@newgrounds.com

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
i wonder if anyone could make a code that can hide tabs from guests only.  I would prefer it so that people have a reason to join my site. I'm not talking about tabs like help, home, or any other tabs, just tabs you make in smf page.  It would make my life eaiser because i wanted to make a flash portal, but i want to hide our flashes from flash decompilers.   :'(

Offline Celebrus

  • SMF For Free Hero
  • *
  • Posts: 941
    • View Profile
    • Vikhyat Korrapati

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [req]Tabs hidden from guests or certain member groups (smf page tabs)
« Reply #1 on: April 30, 2008, 08:51:42 pm »
Code: [Select]
<script>
if($('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)")).html())
{
// Put the codes for the SMF Page and Add Tabs here, which you want only members to see.

}
</script>

That should work.

Offline Sparkwattclock

  • SMF For Free Member
  • *
  • Posts: 92
  • The leader of the GWC here!
    • View Profile
    • Sparkwattclock@newgrounds.com

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [req]Tabs hidden from guests or certain member groups (smf page tabs)
« Reply #2 on: April 30, 2008, 09:05:09 pm »
Code: [Select]
<script>
if($('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)")).html())
{
// Put the codes for the SMF Page and Add Tabs here, which you want only members to see.

}
</script>

That should work.

Thanks ominkron!

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
1075 Views
Last post November 25, 2006, 07:53:13 am
by Laugh-nd-kid
2 Replies
779 Views
Last post August 05, 2008, 09:34:36 pm
by T A L E N T
2 Replies
793 Views
Last post August 11, 2008, 12:09:38 pm
by RoyalFlush
1 Replies
2035 Views
Last post November 12, 2008, 07:59:32 am
by simply sibyl
1 Replies
671 Views
Last post June 25, 2009, 04:17:14 am
by simply sibyl