vForums Support Banner


Visit Base Classics - Gaming Chairs

 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Reorder Menu - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Reorder Menu (17th Apr 08 at 8:15pm UTC)
This code will allow you to reorder the menu buttons. It's rather complex to modify so make sure you read carefully. First the code:

<script>
/*Reorder Menu
Coded By Wrighty
Do Not: Rip, Repost or Claim*/

var a = [
    ["1","0","4","5","6","3","2"], //Admin Menu
    ["1","0","4","5","3","2"], //Member Menu
    ["0","3","4","1","2"] //Guest Menu
];

var l = [];
var x = get('menu_buttons','id').firstChild.firstChild.firstChild;
var n = (x.innerHTML.match(/admin/)? a[0] : (vf_username == 'guest'? a[2] : a[1]));
for(t = 0; t < n.length; t++)
     l.push('<a href="' + x.getElementsByTagName('a')[n[t]] + '">' + x.getElementsByTagName('a')[n[t]].innerHTML + '</a>')
x.firstChild.innerHTML = l.join(" :: ");
</script>


Global Footer

This part is the menu order for staff with access to the admin panel.
The following numbers refer to the different buttons. Omitting a number, will simply omit that button.
0 - Home
1 - Help
2 - Search
3 - Profile
4 - Admin
5 - Members
6 - Logout

This part is the menu order for normal members.
The following numbers refer to the different buttons. Omitting a number, will simply omit that button.
0 - Home
1 - Help
2 - Search
3 - Profile
4 - Members
5 - Logout


This part is the menu order for guests.
The following numbers refer to the different buttons. Omitting a number, will simply omit that button.
0 - Home
1 - Help
2 - Search
3 - Login
4 - Register


Graystorm
New Member
*

Posts: 20
Status: Offline
Joined:  
Reputation: 0%  


pm
Re: Reorder Menu (18th Jul 08 at 2:03pm UTC)
Hmmmm. This isn't working for me. {Sad}
 Printable View

All times are GMT+0 :: The current time is 2:31pm
Page generated in 1.3577 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums