Welcome Guest [Log In] [Register]

Welcome to Big Boards. We hope you like what you see and decide to visit often. Big Boards offers the Zathyus network our long famous Resource Archives, our extensive search indexes, and our info-packed resource forums.

Our team has recently opened a new project called Planet Nexus, where a bold new experiment in forum promotion is taking place. We call it nexworking. NexusTree offers social networking pages for forums in a fully automated format. Your NexusTree page is created instantly when your join the nexus. Find out more by visiting Planet Nexus, and become part of the nexworking revolution.

Posted Image Posted Image
If you're already a member please log in to your account for additional access:

Username:   Password:
Add Reply
How to remove the default links?
Topic Started: Dec 1 2009, 07:56 PM (198 Views)
Luffy
Member Avatar
Xbox Live and Anime Addict xD
[ * ]
Board URL: Its just my test board - http://s1.zetaboards.com/avatarharrytestforum/index/
What browser(s) are you using? Firefox
Your Issue/Question: There are some default links at the top of the page before the banner on both of my skins

Those are - Search Members Calendar FAQ

Can I remove/edit/add more links there? If yes could someone please tell me how to :lol:
Posted Image
Will be gone for a month starting 17th December
Offline
Profile
Quote Post
Goto Top
 
Vitality
Member Avatar
BB Beta
[ *  * ]
Let's do this :P


To remove all of the links
Code:
 
$("#submenu a").remove();

To remove certain links

Edit in the end of the url of the link you would like removed (In the double quotes of the remsub(); at the bottom). You can add/remove as many as you need for removing links. Also make sure that the remsub(); stays above the //]]> and below the } (curly brace).
Code:
 
<script type="text/javascript">
//<![CDATA[
function remsub(link){
$("#submenu a[href*="+link+"]").remove();
}
remsub("calendar");
remsub("boardrules");
//]]>
</script>



Adding links

Same concept as in the previous script. In the first set of double quotes in the addsub(); you are to put the entire url of the new link. In the second set you are to put what you want the link to say when on the submenu (Announcements for example).
Code:
 
<script type="text/javascript">
//<![CDATA[
function addsub(theurl,thetitle){
$("#submenu").append("<a href='"+theurl+"'>"+thetitle+"</a>");
}
addsub("http://google.com","Google");
addsub("http://bigboardsresources.com/","Big Boards");
//]]>
</script>

If you want the links to appear at the beginning of the submenu (as this code places them after the other links) then change the .append to .prepend


I hope that covers what you need. If you have any questions, please ask :)
BB
Offline
Profile
Quote Post
Goto Top
 
Luffy
Member Avatar
Xbox Live and Anime Addict xD
[ * ]
Thanks for that Vitality! But just one doubt. The code should go in the Board Template -> Java Script? Or somewhere else?

Coz I added it in the Java Script area and it did nothing.
Posted Image
Will be gone for a month starting 17th December
Offline
Profile
Quote Post
Goto Top
 
Vitality
Member Avatar
BB Beta
[ *  * ]
Oh, I'm sorry :P I was even thinking to myself remember to include where this all goes! XD

All of those will work in your Above the Board section.
BB
Offline
Profile
Quote Post
Goto Top
 
Luffy
Member Avatar
Xbox Live and Anime Addict xD
[ * ]
Thanks a bunch ^^
Posted Image
Will be gone for a month starting 17th December
Offline
Profile
Quote Post
Goto Top
 
.Josh
Member Avatar
BB Beta
[ *  * ]
Great code, I was also going to ask about this.

Posted Image
Offline
Profile
Quote Post
Goto Top
 
Vitality
Member Avatar
BB Beta
[ *  * ]
No problem, both of you :P Glad I could help.
BB
Offline
Profile
Quote Post
Goto Top
 
.Josh
Member Avatar
BB Beta
[ *  * ]
The FAQ don't seem to be moving.. help?

Posted Image
Offline
Profile
Quote Post
Goto Top
 
Vitality
Member Avatar
BB Beta
[ *  * ]
Post the code and I'll see what I can do :)
BB
Offline
Profile
Quote Post
Goto Top
 
.Josh
Member Avatar
BB Beta
[ *  * ]
Code:
 

<script type="text/javascript">
//<![CDATA[
function remsub(link){
$("#submenu a[href*="+link+"]").remove();
}
remsub("FAQ");
remsub("calendar");
//]]>
</script>


Posted Image
Offline
Profile
Quote Post
Goto Top
 
Vitality
Member Avatar
BB Beta
[ *  * ]
Here you go, this will work :)
Code:
 
<script type="text/javascript">
//<![CDATA[
function remsub(link){
$("#submenu a[href*="+link+"]").remove();
}
remsub("faq");
remsub("calendar");
//]]>
</script>

The issue was that you had FAQ instead of faq.

Make sure when you're editing in your links that you're using the exact match of whatever is at the end of the link itself. So for example:
Quote:
 
From that link you would edit in search and not Search or anything like that. It must be identical to the link's characters.
Edited by Vitality, Dec 4 2009, 05:16 PM.
BB
Offline
Profile
Quote Post
Goto Top
 
.Josh
Member Avatar
BB Beta
[ *  * ]
ok thanks :D

I was also wandering if you can edit search into Latests and so I can link it to the achieved topics which shows you the latest topics

Posted Image
Offline
Profile
Quote Post
Goto Top
 
Vitality
Member Avatar
BB Beta
[ *  * ]
Sorry, I'm not following 100% XD What is it you're asking exactly?
BB
Offline
Profile
Quote Post
Goto Top
 
.Josh
Member Avatar
BB Beta
[ *  * ]
Is the're a code that allows me to rename the current ones and just put a new link for them?

Posted Image
Offline
Profile
Quote Post
Goto Top
 
Vitality
Member Avatar
BB Beta
[ *  * ]
Rename Links
Code:
 
<script type="text/javascript">
//<![CDATA[
function rename(link,name){
$("#submenu a[href*="+link+"]").text(name);
}
rename("faq","NEW_NAME");
rename("calendar","NEW_NAME");
//]]>
</script>

It's the same editing concept as the other code.
Replacing Links
Code:
 
<script type="text/javascript">
//<![CDATA[
function rename(link,newurl,name){
$("#submenu a[href*="+link+"]").replaceWith("<a href='"+newurl+"'>"+name+"</a>");
}
rename("LINK_TO_REPLACE","URL_OF_NEW_LINK","NAME_OF_NEW_LINK");
rename("LINK_TO_REPLACE","URL_OF_NEW_LINK","NAME_OF_NEW_LINK");
//]]>
</script>

Again, it's the same idea.

LINK_TO_REPLACE = Like in the last code, use the ending of the link ou want replaced. Ex: faq
URL_OF_NEW_LINK = The url of your link that will be doing the replacing. Ex: http://bigboardsresources.com/
NAME_OF_NEW_LINK = What will show up on the submenu. Ex: BigBoards
Feel free to ask any questions if you're having trouble. :)
BB
Offline
Profile
Quote Post
Goto Top
 
.Josh
Member Avatar
BB Beta
[ *  * ]
And can i host this code?

Posted Image
Offline
Profile
Quote Post
Goto Top
 
Vitality
Member Avatar
BB Beta
[ *  * ]
Of course. :)
BB
Offline
Profile
Quote Post
Goto Top
 
Codes Rock
Member Avatar
<?php echo 'Codes Rock rocks!'; ?>
[ *  *  *  * ]
Vitality . . . you rock! Posted Image

My Web Sites
Tools: Search An IP | Image Tools | Test Your Site Code
Hosting: TierraHosting | GrandeHosting | IPBlogs
Small Domain (URL): SmallSizeURL | ExtraSmallSizeURL | Extra.SmallSizeURL
Shoutbox: FreeShout
Search Engines: GooYAHing | Can You Search | My Search Spot | ODP Search
click me -> Posted Image
Posted Image


IF/ZB Server Status Page | IF/ZB Board Locator | Follow Me On twitter
Offline
Profile
Quote Post
Goto Top
 
.Josh
Member Avatar
BB Beta
[ *  * ]
Vitality
Dec 6 2009, 06:59 PM
Of course. :)
Great, I'll get round to doing this later tonight or tomorrow.

Posted Image
Offline
Profile
Quote Post
Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards · Next Topic »
Add Reply