vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Remove Select Menu Buttons
Remove Select Menu Buttons - Posted By Michael (wrighty) on 25th Apr 08 at 4:01pm
This code will allow you to choose which menu buttons you want to remove from the menu bar.
Edit the red part. Just add the name of the button.
eg: home, help, profile, register, login, logout etc...
To add more just add another vertical line then the name. eg:
(home|help|search|profile)
<script>
/*Remove Select Menu Buttons
Created By Wrighty
Do Not: Rip, Repost or Claim*/
var y = get('menu_buttons','id');
var x = y.getElementsByTagName('a');
for(a=0;a<x.length;a++){
if(x[a].getElementsByTagName('img')[0].alt.match(/(help|profile)/i)){
x[a].style.display = 'none';
}
}
</script>
Global Header
Re: Remove Select Menu Buttons - Posted By Aiken (ionfortuna) on 30th Dec 09 at 6:58am
It doesn't work
Re: Remove Select Menu Buttons - Posted By Graham (amusedtodeath) on 30th Dec 09 at 9:54am
Can you give more details please?
Pop a thread in the Code Support board and we'll take a look at it for you
Re: Remove Select Menu Buttons - Posted By Aiken (ionfortuna) on 30th Dec 09 at 10:04am
I put the code in and it doesn't do anything, nothing looks different
Re: Remove Select Menu Buttons - Posted By Michael (wrighty) on 30th Dec 09 at 12:16pm
As graham said, throw a thread in the Code Support board, with a forum URL, and we'll help