SMF For Free Support Forum
Signup For Free Forum
October 14, 2008, 08:52:48 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]
  Print  
Author Topic: [REQ] Hide Top Buttons  (Read 713 times)
0 Members and 1 Guest are viewing this topic.
Hurricane47
SMF For Free Master
*
Offline Offline

Posts: 1102



View Profile WWW
« on: March 05, 2008, 05:32:21 pm »

Forum Url: http://graphicscentral.smfforfree3.com
Hey, I have a request for a code..

I was wondering if some one could make a code that would hide the HOME HELP SEARCH ARCADE etc. when you are in the portal..

I plan on using an imagemap code/pictures in a side portal box, and have the links there...

I hope you understand what I'm trying to explain...I'm bad at that kind of stuff. buck2


~Hurrican~
Logged



Hurricane47
SMF For Free Master
*
Offline Offline

Posts: 1102



View Profile WWW
« Reply #1 on: March 05, 2008, 06:13:53 pm »

IDK if I made this one part clear...

just FYI, IM gonna make the image maps, just so who ever does do this code, doesnt have to..


Just thought I would clarify that  Wink
Logged



Celebrus
SMF For Free Hero
*
Online Online

Posts: 788


Previously known as Omikron


View Profile WWW
« Reply #2 on: March 05, 2008, 08:51:59 pm »

This can be done pretty easily. Try this:
Code:
<script>
// Created by Omikron 9861
if(window.location.href == "http://"+location.host+"/index.php" || window.location.href == "http://"+location.host+"/") {
$(".maintab_back").parent().hide();
}
</script>
« Last Edit: March 06, 2008, 04:38:19 am by Omikron 9861 » Logged

Hurricane47
SMF For Free Master
*
Offline Offline

Posts: 1102



View Profile WWW
« Reply #3 on: March 05, 2008, 09:12:20 pm »

ummm, i have some dumb question...

A) Do I need to replace anything? And if so, what is it?

B) Do I put this in my headers?
Logged



Celebrus
SMF For Free Hero
*
Online Online

Posts: 788


Previously known as Omikron


View Profile WWW
« Reply #4 on: March 06, 2008, 01:05:13 am »

a) no, just make sure you have the jQuery inlude thing in your headers.
b) Footers.
Logged

simply sibyl
Global Moderator
*
Online Online

Posts: 8545



View Profile WWW
« Reply #5 on: March 06, 2008, 02:08:37 am »

I stuck it inside an html block in the Portal that I was already using.
It worked from there  Wink
Logged

Celebrus
SMF For Free Hero
*
Online Online

Posts: 788


Previously known as Omikron


View Profile WWW
« Reply #6 on: March 06, 2008, 04:38:58 am »

If you are putting it in a portal block, you only need
Code:
<script>
// Created by Omikron 9861
$(".maintab_back").parent().hide();
</script>
« Last Edit: March 06, 2008, 08:14:32 am by Omikron 9861 » Logged

Hurricane47
SMF For Free Master
*
Offline Offline

Posts: 1102



View Profile WWW
« Reply #7 on: March 06, 2008, 04:17:27 pm »

sweet dude! Thanx!
Logged



Sassy Šiva™
SMF For Free Full Member
*
Offline Offline

Posts: 160



View Profile
« Reply #8 on: March 10, 2008, 07:44:59 pm »

Is there anyway to just hide one certain tab from guests when they are looking at the portal?
Logged
Sassy Šiva™
SMF For Free Full Member
*
Offline Offline

Posts: 160



View Profile
« Reply #9 on: March 17, 2008, 12:26:51 pm »

 angel
Logged


Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.262 seconds with 18 queries.