SMF For Free Support Forum
Signup For Free Forum
October 06, 2008, 08:22:29 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] 2 3 4 5
  Print  
Author Topic: [Code] Add More Tabs  (Read 8967 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Online Online

Posts: 636


Do not PM me for Code Support or Request


View Profile
« on: May 14, 2007, 04:46:39 pm »

This add more tabs uptop, basicly, just adds more links.

Add this to your Headers if you don't have it already.  If you already have it, don't add it:
Code:
<script src="/jquery.js"></script>

Now, I found out that you can add my codes to the Headers or Footers, it doesn't matter, they will still work, so you can add this in either your headers or footers...
Code:
<script>
function addlinks(){
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
var links = new Array()
links[links.length] = ["LINKS NAME","URL FOR LINK"]

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>

LINKS NAME is where you put the links name
URL FOR LINK, you get the URL of the link and place it there. 

If you want to add more links, just add more of these lines:

Will open the url in the same window:

Code:
links[links.length] = ["LINKS NAME","URL FOR LINK"]

Will open the url in a new window/tab:

Code:
links[links.length] = ["LINKS NAME","URL FOR LINK' target='_blank"]
« Last Edit: May 09, 2008, 02:28:42 pm by Agent Moose » Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]
Hurricane47
SMF For Free Master
*
Offline Offline

Posts: 1102



View Profile WWW
« Reply #1 on: May 14, 2007, 05:43:08 pm »

OK, when I added the tab, the tab came up ok.

When I clicked on it, it went to
http://runescapejaja.smfforfree2.com/www.youtube.com/hurrican47

I wanted it to go to www.youtube.com/hurrican47

Can you help?
Logged



Crasy
Global Moderator
*
Offline Offline

Posts: 3309


I Approve of this Message


View Profile WWW
« Reply #2 on: May 14, 2007, 06:04:21 pm »

Change the link to http://www.youtube.com/hurrican47

You have to have the http:// on it..or it thinks it's going to some subfolder that isn't there.
Logged

Hurricane47
SMF For Free Master
*
Offline Offline

Posts: 1102



View Profile WWW
« Reply #3 on: May 14, 2007, 08:40:23 pm »

Thanx

I added http:// to it and it worked! tyvm
Logged



Hurricane47
SMF For Free Master
*
Offline Offline

Posts: 1102



View Profile WWW
« Reply #4 on: May 15, 2007, 04:54:28 pm »

i put that and it doesnt make a new tab and it says 404 not found.
I put in th link with it when I put it in
Logged



simply sibyl
Global Moderator
*
Online Online

Posts: 8406



View Profile WWW
« Reply #5 on: May 15, 2007, 04:59:29 pm »

i put that and it doesnt make a new tab and it says 404 not found.
I put in th link with it when I put it in

I checked your source code.. looks like you put it in correctly..  hmm

try this

http://www.youtube.com/hurrican47 target='_blank'

if it doesnt work hopefully Moose can help ya Smiley
Logged

Hurricane47
SMF For Free Master
*
Offline Offline

Posts: 1102



View Profile WWW
« Reply #6 on: May 15, 2007, 05:02:23 pm »

Nope still doesnt work

Can you help me agent moose?
Logged



LaundryLady
Global Moderator
*
Offline Offline

Posts: 3046



View Profile WWW
« Reply #7 on: May 20, 2007, 10:19:04 am »

Forum Url: http://thelaundryroom.smfforfree2.com
I noticed something interesting when I went to work on my membergroups and permissions.  The new link/menu tab I made also shows up in those sections as an additional tab.  Is it supposed to do that?
Logged

simply sibyl
Global Moderator
*
Online Online

Posts: 8406



View Profile WWW
« Reply #8 on: May 20, 2007, 10:20:43 am »

Forum Url: http://thelaundryroom.smfforfree2.com
I noticed something interesting when I went to work on my membergroups and permissions.  The new link/menu tab I made also shows up in those sections as an additional tab.  Is it supposed to do that?

the code is in your header or footer so yes it will show on all pages
Logged

simply sibyl
Global Moderator
*
Online Online

Posts: 8406



View Profile WWW
« Reply #9 on: May 20, 2007, 10:36:30 am »

humm..  i just realized which code you were referring to Laundry (as we have a couple similar ones here)   
I dont think it was meant to show up in those areas, but there is probably nothing that can be done about that.
Logged

Agent Moose
Moderator
*****
Online Online

Posts: 636


Do not PM me for Code Support or Request


View Profile
« Reply #10 on: May 20, 2007, 12:06:40 pm »

There is nothing you can do about it.  the code just does that.
Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]
LaundryLady
Global Moderator
*
Offline Offline

Posts: 3046



View Profile WWW
« Reply #11 on: May 20, 2007, 12:54:16 pm »

And it is such a lovely code also
Logged

† Java †
SMF For Free Full Member
*
Offline Offline

Posts: 183



View Profile WWW
« Reply #12 on: May 27, 2007, 08:28:21 pm »

It makes it go to this

http://cellscapedev.smfforfree2.com/www.cellscape.co.nr

i want it to JUST go to www.cellscape.co.nr
Logged

Crasy
Global Moderator
*
Offline Offline

Posts: 3309


I Approve of this Message


View Profile WWW
« Reply #13 on: May 27, 2007, 08:30:23 pm »

Put http://www.cellscape.co.nr

If you don't put http:// before a URL it assumes that you're trying to go to a folder in that directory.
Logged

† Java †
SMF For Free Full Member
*
Offline Offline

Posts: 183



View Profile WWW
« Reply #14 on: May 27, 2007, 08:37:50 pm »

ok thanks
Logged



Pages: [1] 2 3 4 5
  Print  
 
Jump to:  

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