Advertise Here

Author Topic: [Code] Add More Tabs  (Read 31580 times)

0 Members and 1 Guest are viewing this topic.

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: [Code] Add More Tabs
« Reply #60 on: May 08, 2008, 12:01:00 pm »
It won't work, because the HTML it would render would be
Code: [Select]
<td valign='top' class='maintab_back'><a href='http://www.geocities.com/bloodepotter/MEDIA_PLAYER.html target='_blank''>M&A MEDIA PLAYER</a></td>

Notice the problem? Try
Code: [Select]
<script>
function addlinks(){
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
var links = new Array()
links[links.length] = ["M&A MEDIA PLAYER","http://www.geocities.com/bloodepotter/MEDIA_PLAYER.html' target='_blank"]

for(m=0;m<links.length;m++){
$(".maintab_last").before("<td valign='top' class='maintab_back'><a href='"+links[m][1]+"'>"+links[m][0]+"</a></td>");
};});}
addlinks();
</script>

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] Add More Tabs
« Reply #61 on: May 08, 2008, 12:05:14 pm »
thanks Omi that  works.

I think we should add something to the directions.

If you want the tab to open the url in a new window/tab

Code: [Select]
links[links.length] = ["LINKS NAME","URL FOR LINK' target='_blank"]

Offline alchmeist562

  • SMF For Free Newbie
  • *
  • Posts: 6
    • View Profile
    • Music & Anime Forum

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] Add More Tabs
« Reply #62 on: May 08, 2008, 08:20:58 pm »
thank you soo much. i was going insane

Offline Chico

  • SMF For Free Member
  • *
  • Posts: 21
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Add More Tabs
« Reply #63 on: May 18, 2008, 01:41:52 pm »
Forum Url: http://gateway.smfforfree.com.smfforfree.com
Just wondering...I want to add a tab with a link to my chatroom. I want the chatroom to open in a pop-up window.This is the code I usually use to create the pop-up chatroom:
Code: [Select]
<a href="http://client0.addonchat.com/sc.php?id=245925"
   onClick="window.open('http://client0.addonchat.com/sc.php?id=245925',
      'addonchat','width=620,height=440,status=no,scrollbars=no,menubar=no,resizable=yes');
      return false">Gateway Chat</a>



I would also like the chat to be in a pop up. Can this be done?

Offline Dss

  • SMF For Free Newbie
  • *
  • Posts: 14
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Add More Tabs
« Reply #64 on: May 27, 2008, 08:32:38 am »
Can someone make a code that lets you move a tab?  :'(
I created a tab called 'Home' that will link to my main sites page.  And renamed the normal 'home' tab to 'forums'.  I just want 'Home' to be infront of 'Forums' now.

Offline clairebear

  • SMF For Free Master
  • *
  • Posts: 1019
    • View Profile

  • Total Badges: 23
    Badges: (View All)
    Fifth year Anniversary Search Level 5 1000 Posts Poll Voter
Re: [Code] Add More Tabs
« Reply #65 on: May 29, 2008, 11:10:42 am »
i would like a new tab to say catergories then drop down to diff board titels..
is this possible with this code?
www.teardrop.mysmf.com

A support forum for support in loss from early miscarriage to five years.

Offline ixy

  • SMF For Free Newbie
  • *
  • Posts: 9
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] Add More Tabs
« Reply #66 on: June 18, 2008, 11:50:20 am »
Can you give me more demonstrations on how to specifically add more than 1 tab?

Offline ixy

  • SMF For Free Newbie
  • *
  • Posts: 9
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] Add More Tabs
« Reply #67 on: June 18, 2008, 11:55:45 am »
How do you take tabs off?

Delete them off your headers or footers.

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] Add More Tabs
« Reply #68 on: June 18, 2008, 11:57:45 am »
Can you give me more demonstrations on how to specifically add more than 1 tab?

There is no longer a need to use this code as you can now add tabs thru your Admin Panel.

Admin > Manage Styles > Custom Tabs

Offline ixy

  • SMF For Free Newbie
  • *
  • Posts: 9
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] Add More Tabs
« Reply #69 on: June 18, 2008, 12:01:10 pm »
Ok, thank you. I got my tabs that I needed :).

Offline VeM0n

  • SMF For Free Newbie
  • *
  • Posts: 4
    • View Profile

  • Total Badges: 4
    Badges: (View All)
    Topic Starter Level 1 First Post One year Anniversary
Re: [Code] Add More Tabs
« Reply #70 on: October 05, 2010, 12:59:43 am »
Nice work Moose, i have about 5 codes on my forum from you:D good work.

Offline blank

  • SMF For Free Newbie
  • *
  • Posts: 5
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Level 2 Third year Anniversary Second year Anniversary Windows User Topic Starter
Re: [Code] Add More Tabs
« Reply #71 on: November 09, 2010, 06:42:31 am »
It works :)

But, unfortunately, it's a Replies tab. I wanted it after "Members" and not after "Logout".

How do I change the order?

(I used this mod (http://www.smfsupport.com/support/smf-for-free-codes-and-support/(code)-reorder-tabs/) and it's not working)
« Last Edit: November 09, 2010, 06:48:41 am by PedroCst »

Offline blank

  • SMF For Free Newbie
  • *
  • Posts: 5
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Level 2 Third year Anniversary Second year Anniversary Windows User Topic Starter
Re: [Code] Add More Tabs
« Reply #72 on: November 09, 2010, 06:45:17 am »
Besides, tab is everywhere, and not only in main tab :(

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] Add More Tabs
« Reply #73 on: November 09, 2010, 10:26:31 am »
PedroCst

There is no longer a need to use this code as you can now add tabs thru your Admin Panel.
Admin > Manage Styles > Custom Tabs
The tab will show on all pages you visit on the forum.  Nothing you can do about that.

If you are having problems with the other code you used please leave a support ticket in that codes Topic, along with the code, exactly as you used it, and your forum url.   

Offline Hakam J.

  • SMF For Free Member
  • *
  • Posts: 56
    • View Profile
    • The Gaming World

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Add More Tabs
« Reply #74 on: December 29, 2010, 08:37:46 am »
SMF For Free has already a built-in one.  That you can create more tabs.   So, my question is: "What's the different between both of them?"

Hakam J.,
« Last Edit: December 29, 2010, 09:07:22 am by simply sibyl »

 

Related Topics

  Subject / Started by Replies Last post
22 Replies
7214 Views
Last post January 29, 2009, 07:59:16 pm
by s3xy v0id
1 Replies
2057 Views
Last post November 12, 2008, 07:59:32 am
by simply sibyl
0 Replies
1647 Views
Last post January 26, 2011, 05:53:59 pm
by Arekay