SMF For Free Support Forum
Signup For Free Forum
October 11, 2008, 03:30:09 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]
  Print  
Author Topic: Custom Menu  (Read 309 times)
0 Members and 1 Guest are viewing this topic.
Gordie
SMF For Free Hero
*
Offline Offline

Posts: 594


I'm around somewhere!!!


View Profile WWW
« on: May 12, 2008, 09:35:02 am »

Is there a way to remove the entire navigation bar (the one with the tabs) and replace it with a custom horizontal menu? I'm still new with the smf css. Smiley
Logged


simply sibyl
Global Moderator
*
Offline Offline

Posts: 8452



View Profile WWW
« Reply #1 on: May 12, 2008, 10:13:33 am »

Is there a way to remove the entire navigation bar (the one with the tabs) and replace it with a custom horizontal menu? I'm still new with the smf css. Smiley

There is a code in the code index that will allow you to get rid of the tabs up there.  There is not, however, a way to replace them with a menu, nor anything else.    If ya check the source code you'll see that the html places those options in that exact spot, and they look like tabs as the css sets the background images/borders/font colors for those options. 

You could use the code from the code index to remove them and make a menu of your own, placing it somewhere else, but you would have to put every single option on it and they would show to all members/including guests.   Plus you would have to figure a way for them to logout.    Possibly moose , omikron or someone else could help with that.   (the logout part)

Other option, if you use the portal, would be there is a code for removing them only when you are at the portal.
They will show when you are at the forum itself.   That way you could put the options on the portal.

« Last Edit: May 12, 2008, 10:15:32 am by simply sibyl » Logged

Gordie
SMF For Free Hero
*
Offline Offline

Posts: 594


I'm around somewhere!!!


View Profile WWW
« Reply #2 on: May 12, 2008, 10:16:18 am »

That's what I thought. Oh well. I can live with that.  Smiley
Logged


Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 786


Previously known as Omikron


View Profile WWW
« Reply #3 on: May 13, 2008, 09:34:26 am »

I could make a code for you to replace that entire tr with your own HTML. Try this, not sure if it works.

Code:
<script>
$(".maintab_back").parent().innerHTML = '<td>HTML HERE</td>';
</script>

Don't use ' in the HTML, replace it with \'.
Logged

GamesGalore™
SMF For Free Full Member
*
Offline Offline

Posts: 240


Musicinsanity.tk™


View Profile WWW
« Reply #4 on: May 13, 2008, 03:37:19 pm »

Forum Url: http://Musicinsanity.smfforfree2.com
Do you mean hide the bar?
Logged

Gordie
SMF For Free Hero
*
Offline Offline

Posts: 594


I'm around somewhere!!!


View Profile WWW
« Reply #5 on: May 13, 2008, 03:39:32 pm »

I could make a code for you to replace that entire tr with your own HTML. Try this, not sure if it works.

Code:
<script>
$(".maintab_back").parent().innerHTML = '<td>HTML HERE</td>';
</script>

Don't use ' in the HTML, replace it with \'.

I'm gonna give it a try on my test board...thanks.

Quote
Do you mean hide the bar?
Yes...I want to hide the default menu bar, and place my own custom made menu in its place.
Logged




Pages: [1]
  Print  
 
Jump to:  

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