SMF For Free Support Forum
Signup For Free Forum
December 05, 2008, 05:22:38 am *
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: [Code] Hide Tabs  (Read 2611 times)
0 Members and 1 Guest are viewing this topic.
Omikron 9861
SMF For Free Full Member
*
Offline Offline

Posts: 230


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


View Profile
« on: November 07, 2007, 10:40:16 pm »

This code will hide tabs you choose to hide under the users area.

This code uses JQuery so you need to have the JQuery include in your headers.

Code:
<script src="/jquery.js"></script>


Replace Help with the name of the tab you want to hide.

Add this code to your footers:

Code:
<script>
//Made by Omikron 9861
$("table tbody tr td.maintab_back:contains(Help)").hide();
</script>




Hiding tabs only for guests

Replace Help with the name of the tab you want to hide.

Add this code to your footers:

Quote
<script>
if(!$('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)")).html())
{
$("table tbody tr td.maintab_back:contains(Help)").hide();
}
</script>
« Last Edit: September 05, 2008, 01:26:28 am by simply sibyl » 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!
legend 1234
SMF For Free Full Member
*
Offline Offline

Posts: 222


Legend 1234


View Profile WWW
« Reply #1 on: March 27, 2008, 02:25:57 am »

very nice mate thanks alot

now i can hide that annoying help and search tabs lol

legend 1234
Logged

Need help with something ? General support l Guides and tuts l codes
Celebrus
SMF For Free Hero
*
Online Online

Posts: 832


Previously known as Omikron


View Profile WWW
« Reply #2 on: March 27, 2008, 02:47:43 am »

Code:
<script>
//Made by Omikron 9861
$("table tbody tr td.maintab_back:contains(Search)").hide();
</script>

See if that works.
Logged


legend 1234
SMF For Free Full Member
*
Offline Offline

Posts: 222


Legend 1234


View Profile WWW
« Reply #3 on: March 27, 2008, 03:01:26 am »

oo yeap it worked

thank you very much mate

legend 1234
Logged

Need help with something ? General support l Guides and tuts l codes
Sparkwattclock
SMF For Free Member
*
Offline Offline

Posts: 95


The leader of the GWC here!


View Profile WWW
« Reply #4 on: April 14, 2008, 08:12:56 pm »

This code uses JQuery so you need to have the JQuery include in your headers.

Code:
<script src="jquery.js"></script>


Replace Help with the name of the tab you want to hide.

Add this code to your footers:

Code:
<script>
//Made by Omikron 9861
$("table tbody tr td.maintab_back:contains(Help)").hide();
</script>

This code will hide tabs you choose to hide under the users area.
Can you hide tabs to guests only?
Logged

simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #5 on: April 14, 2008, 08:17:56 pm »

Can you hide tabs to guests only?

With that code no.
Guest WILL though only see things they do have access to see (permissions settings)
Logged

Sparkwattclock
SMF For Free Member
*
Offline Offline

Posts: 95


The leader of the GWC here!


View Profile WWW
« Reply #6 on: April 14, 2008, 08:23:21 pm »

well my problem is that i want to make a flash portal, but i don't want anyone to see it except our members.  The reason i don't want them to see that is because they'll decompile our flashes and steal them.
Logged

simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #7 on: April 14, 2008, 08:28:04 pm »

well my problem is that i want to make a flash portal, but i don't want anyone to see it except our members.  The reason i don't want them to see that is because they'll decompile our flashes and steal them.

You'll more then likely need to do it another way then.
Maybe someone else knows of a code  that would be of help  (sorry.. I dont know myself)
Logged

Sparkwattclock
SMF For Free Member
*
Offline Offline

Posts: 95


The leader of the GWC here!


View Profile WWW
« Reply #8 on: April 14, 2008, 08:30:59 pm »

well my problem is that i want to make a flash portal, but i don't want anyone to see it except our members.  The reason i don't want them to see that is because they'll decompile our flashes and steal them.

You'll more then likely need to do it another way then.
Maybe someone else knows of a code  that would be of help  (sorry.. I dont know myself)


It would be cool if smf had a movie system like invision free boards.  In which you don't have to make it not avaible to guests, because it automatically is.  Trust me i would never move my boards to invision just because of that.  I love smf's  because they're easy.
Logged

loogiesquared
SMF For Free Member
*
Offline Offline

Posts: 50



View Profile
« Reply #9 on: May 24, 2008, 09:02:58 am »

i want to remove "gallery" and "search"

i did this:

Code:
<script src="jquery.js"></script>
<script>
//Made by Omikron 9861
$("table tbody tr td.maintab_back:contains(Gallery)").hide();
</script>

<script>
//Made by Omikron 9861
$("table tbody tr td.maintab_back:contains(Search)").hide();
</script>

i have jquery and it still doesn't work.
Logged

LaundryLady
Global Moderator
*
Offline Offline

Posts: 3083


Multi-Tasking Maven


View Profile
« Reply #10 on: May 24, 2008, 09:52:16 am »

Make sure you have the latest jquery.  http://www.smfsupport.com/support/smf_for_free_codes/uploaded_jquery_to_the_smf_for_free_forums-t6578.0.html

and put it at the top of your headers.

The rest of the code goes in your footers.  Please re-read the first post for clarification.

Logged
Shimmy Shabby
SMF For Free Full Member
*
Offline Offline

Posts: 143



View Profile
« Reply #11 on: June 20, 2008, 01:16:41 pm »

loogie, instead of removing the gallery tab, if you just dont want the gallery anymore, uninstall that mod. Admin < Gallery Configuration < Settings. Towards the bottom, there is something that says "If you wish to uninstall click uninstall now" So click "uninstall now".
Logged


Celebrus
SMF For Free Hero
*
Online Online

Posts: 832


Previously known as Omikron


View Profile WWW
« Reply #12 on: September 05, 2008, 01:11:32 am »

Hiding tabs only for guests
(Would appreciate it if this were added to the first post)
Quote
<script>
if(!$('td.titlebg2 span b').not($("td.titlebg2 span b:contains(News)")).html())
{
$("table tbody tr td.maintab_back:contains(Help)").hide();
}
</script>
Logged


simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #13 on: September 05, 2008, 01:18:56 am »

Celebrus - took care of it for you
Logged

thejudge
SMF For Free Member
*
Offline Offline

Posts: 36



View Profile WWW
« Reply #14 on: September 14, 2008, 12:22:00 pm »

Now how do we and our members see the tabs that we have hidden be cause I would like to put a thing up were we only see the tabs when we click on a button or something.Thanks
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.482 seconds with 18 queries.