Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | 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
| |
|