Advertise Here

Author Topic: [Code] Put Tabs up Top  (Read 7215 times)

0 Members and 1 Guest are viewing this topic.

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
[Code] Put Tabs up Top
« on: May 14, 2007, 03:25:41 pm »
Use this code to put tabs up top on your forum.
The code will add the same "home", "help", "search" tabs to the top of the forum
It will work with any style and will match your style.

Screenshot of how it looks:



Edit the code and place it in your Header area:   Admin/Manage Styles/Edit Header/Footer
I have put directions for editing the code inside the code itself.

enjoy!

Code: [Select]
<!-- Begin Tabs Up Top.   Code by simply sibyl  -->
<div class="tborder" style="margin-bottom: -1px;">

<!-- Header area where it says Links in the top header.
==========================================================
You can replace the word Links with whatever you want
========================================================== -->

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">
<span>Links</span>
</td>
</tr>
<!-- End Header area where it says links.  -->


<!-- Begin Tab area.
==========================================================================
Replace "http://sibylstestsite.smfforfree3.com"  with YOUR forum url"
Replace "url goes here" and "link" for each tab.
To add more tabs:
Add this for each tab you want to add:
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
=========================================================================== -->   

<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_first">&nbsp;</td>
<td class="maintab_active_first">&nbsp;</td>
<td valign="top" class="maintab_active_back"><a href="http://sibylstestsite.smfforfree3.com/index.php">Home</a>
</td>
<td class="maintab_active_last">&nbsp;</td>

<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>

<td class="maintab_last">&nbsp;</td>
</tr>
</table><br>
</div>
<!-- End Tabs Up Top -->


Alternative version:
This version would float it above the top of the forum and it would not be connected TO it.
This one could also be put at the bottom of your forum, as it is at the test forum.  Just put it
in your footer to do that.

Screenshot:



The code for the floating version is:

Code: [Select]
<!-- Begin Links Up Top Floating Version   Code by simply sibyl  -->
<div class="tborder">

<!-- Header area where it says Links in the top header.
==========================================================
You can replace the word Links with whatever you want
========================================================== -->

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">
<span>Links</span>
</td>
</tr>
<!-- End Header area where it says links.  -->
</td>
</table></td></div>
<!-- Begin Tab area.
==========================================================================
Replace "http://sibylstestsite.smfforfree3.com"  with YOUR forum url"
Replace "url goes here" and "link" for each tab.
To add more tabs:
Add this for each tab you want to add:
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
=========================================================================== -->   

<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_first">&nbsp;</td>
<td class="maintab_active_first">&nbsp;</td>
<td valign="top" class="maintab_active_back"><a href="http://sibylstestsite.smfforfree3.com/index.php">Home</a>
</td>
<td class="maintab_active_last">&nbsp;</td>

<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>
<td valign="top" class="maintab_back"><a href="url goes here">link</a></td>

<td class="maintab_last">&nbsp;</td>
</tr>
</table><br>

<!-- End Links Up Top -->

« Last Edit: September 08, 2007, 09:47:17 am by simply sibyl »

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Header code] Put Tabs up Top
« Reply #1 on: May 14, 2007, 04:28:51 pm »
Nice Code...This makes me wanna try a code I just thought up...
Check out Revolution X's Brand new Code Index!

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Header code] Put Tabs up Top
« Reply #2 on: May 14, 2007, 04:56:03 pm »
NICE!!! Great job Sibyl!

Offline Y4NK33F4N

  • SMF For Free Full Member
  • *
  • Posts: 146
    • View Profile

  • Total Badges: 18
    Badges: (View All)
    Search Apple User Topic Starter Combination Level 3
Re: [Code] Put Tabs up Top
« Reply #3 on: September 08, 2007, 09:28:35 am »
Hey, is there a way I can get the layout code that you had for the screen shot?  And great code!  ;D
When I get older, I will be stronger,
They'll call me freedom, just like a Waving Flag,
And then it goes back, and then it goes back,
And then it goes back

~~K'naan Wavin Flag~~

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Put Tabs up Top
« Reply #4 on: September 08, 2007, 09:32:33 am »
Hey, is there a way I can get the layout code that you had for the screen shot?  And great code!  ;D

do you mean that stylesheet?   

That ones Blue Mousse:
click here

also made it in brown:

click here

Offline Bullet_RHLI

  • SMF For Free Full Member
  • *
  • Posts: 174
  • Join Massive Gaming Site Forums!!!
    • View Profile
    • Agent Mooses Rewind

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Code] Put Tabs up Top
« Reply #5 on: September 08, 2007, 10:16:37 am »
nice sibyl, i used it looks good

EDIT: Can you make a code so that it doesnt just go to that page, it makes a popup of that page come up?
« Last Edit: September 08, 2007, 10:20:07 am by 99Bullets »
Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Put Tabs up Top
« Reply #6 on: September 08, 2007, 10:34:29 am »
nice sibyl, i used it looks good

EDIT: Can you make a code so that it doesnt just go to that page, it makes a popup of that page come up?

add target="_blank"
That will open up a new window or a tab

<td valign="top" class="maintab_back"><a href="url goes here" target="_blank">link</a></td>

Offline Bullet_RHLI

  • SMF For Free Full Member
  • *
  • Posts: 174
  • Join Massive Gaming Site Forums!!!
    • View Profile
    • Agent Mooses Rewind

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Code] Put Tabs up Top
« Reply #7 on: September 08, 2007, 10:35:46 am »
EDIT: Didnt work

can u make one for me for an example  (link: http://www.smfsupport.com/support/general_discussion/forum_rules-t5236.0.html)(Name: SMF Rules And Regs)
« Last Edit: September 08, 2007, 10:41:21 am by 99Bullets »
Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!

Offline hatred

  • SMF For Free Full Member
  • *
  • Posts: 112
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Put Tabs up Top
« Reply #8 on: September 08, 2007, 11:16:18 am »
Thanks simply sibyl  this code has helped us a lot!

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Put Tabs up Top
« Reply #9 on: September 08, 2007, 11:18:05 am »
Thanks simply sibyl  this code has helped us a lot!

Your welcome jeRM.. glad its of use  :)

Offline hatred

  • SMF For Free Full Member
  • *
  • Posts: 112
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Put Tabs up Top
« Reply #10 on: September 08, 2007, 11:20:13 am »
It's much better because just adding them to the regular tabs also puts it in the tabs where you respond...

In other words it would put those extra tabs where they don't belong. This one works perfectly and doesn't show them but where they should be! TY TY

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Put Tabs up Top
« Reply #11 on: September 08, 2007, 11:29:36 am »
Cool.  You could add a "Go Down" link to that if ya want. 

Just put this in your footer:

<a name="bottom"></a>

Then add another link to the Add Tabs code and for the url do:

<a href="#bottom">Go Down</a>

Makes a quick, easy way to get to the bottom of the forum fast.

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Put Tabs up Top
« Reply #12 on: September 08, 2007, 11:33:37 am »
EDIT: Didnt work

can u make one for me for an example  (link: http://www.smfsupport.com/support/general_discussion/forum_rules-t5236.0.html)(Name: SMF Rules And Regs)

keep in mind this is going to depend on browser settings.    If they are set to open a link in a new window or a new tab. 

Code: [Select]

<td valign="top" class="maintab_back"><a href="http://www.smfsupport.com/support/general_discussion/forum_rules-t5236.0.html" target="_blank">SMF Rules And Regs</a></td>


Offline Bullet_RHLI

  • SMF For Free Full Member
  • *
  • Posts: 174
  • Join Massive Gaming Site Forums!!!
    • View Profile
    • Agent Mooses Rewind

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Code] Put Tabs up Top
« Reply #13 on: September 08, 2007, 12:37:55 pm »
ok thanks for the info and the code i asked u to help with
Thanks Hurrican47 For Making This

you want to apply for staff, please pm me!!!

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Put Tabs up Top
« Reply #14 on: November 04, 2008, 09:41:35 pm »
Just a note for this code. When adding a URL, MAKE SURE to take out the www. part. Or else it wont work. Im not sure why, but it wont.

 

Related Topics

  Subject / Started by Replies Last post
74 Replies
31583 Views
Last post December 29, 2010, 08:37:46 am
by Hakam J.
1 Replies
1648 Views
Last post May 29, 2008, 03:05:41 pm
by Agent Moose
6 Replies
2718 Views
Last post June 17, 2008, 12:12:24 am
by Supernovadelta
1 Replies
2058 Views
Last post November 12, 2008, 07:59:32 am
by simply sibyl
0 Replies
1648 Views
Last post January 26, 2011, 05:53:59 pm
by Arekay