Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Add links to preferences
Topic Started: Nov 30 2007, 12:39 PM (1,987 Views)
Godkillah
Member
[ * ]
A friend requested this to me at msn,
it basically adds links to the preferences at the top (next to the Welcome name [Sign out])
it works in both FF and IE and i don't think any other browser will have problems with this

Add it anywhere under the top menu
Quote:
 
<script>
/*Add links to preferences
by Godkillah from:
phantom-designs.net*/
var AddLinks=[];n=0
AddLinks[n++]=['My Link','http://www.MyLink.com']
AddLinks[n++]=['My 2nd Link','http://www.MyLink2.com']
AddLinks[n++]=['My Link 3','http://www.My3thLink.com']

Addmenu='';for(ii=0;ii<AddLinks.length;ii++){
Addmenu+='<li><a href="'+AddLinks[ii][1]+'">'+AddLinks[ii][0]+'</a></li>'
}
if(document.getElementById("menu_ucp"))
document.getElementById("menu_ucp").getElementsByTagName("ul")[0].innerHTML+=Addmenu
</script>


i think how to edit it etc. should be quite easy,
to be sure everyone will understand it i colored it though and will give a small instruction.

this is what you can add/edit/remove in the code to make new links in the preferences
this is the name of the link, basically the text they will see
this is the URL they will got to when they click the link

added it to my testboard where i also got my money code on, so here it is
PREVIEW: http://s1.zetaboards.com/Godkillah_Codes/index/

enjoy
Edited by Godkillah, Nov 30 2007, 01:54 PM.
Offline Profile Quote Post Goto Top
 
Mysticwizard2005
Member Avatar
Member
[ * ]
Good code but there is 1 problem with it that I see. when you go to preferences you see the My Link but it also shows the link itself

Screenshot
Posted Image


EDIT: Oh I'm using FF2 and it also does it in IE6. Don't know about IE7
Edited by Mysticwizard2005, Nov 30 2007, 01:06 PM.
Offline Profile Quote Post Goto Top
 
Godkillah
Member
[ * ]
weird, when i tried first time it worked perfect.
now i got this aswell, I'll take a look at the code again

edit: found the problem, a part of the code seems to be bbcode aswell,
I'll rename that part,
the current code will work now, preview added
Edited by Godkillah, Nov 30 2007, 01:53 PM.
Offline Profile Quote Post Goto Top
 
Mwr247
Member Avatar
Cæsaris Salutis!
[ *  * ]
Nicely done Godkillah, was working on my add to top menu codes when you posted this, so I knew I had to hurry up before you started on that too XD
Offline Profile Quote Post Goto Top
 
Godkillah
Member
[ * ]
haha :P
I'm gonna concentrate myself on a ZB shopmod now,
wrote enough of the small stuff for now ^^
Offline Profile Quote Post Goto Top
 
MKDS_PoKE
Member
[ * ]
Very Nice Mod!
Offline Profile Quote Post Goto Top
 
DAEnaya
Member Avatar
Member
[ * ]
Very useful! Thanks!
Offline Profile Quote Post Goto Top
 
finsofafrica
Member Avatar
Member
[ *  * ]
Your preview board doesnt seem to work.I dont see preferences or the inbox for that matter
Offline Profile Quote Post Goto Top
 
BlubbernuggetX
Member Avatar
Lord of the Blubbernuggets
[ *  * ]
Great code ;)
Offline Profile Quote Post Goto Top
 
.insane
Member Avatar
You think you know....
[ *  * ]
it seems like a great code, i just can't figure out what to do with it :(

what would a person put in there? any suggestions?
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply