vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Menu bar mod

[F] Menu bar mod - Posted By [.tR] ookie1 (ookie1) on 23rd Apr 08 at 6:57am
I need a code that removes the help button and the pm bar thingy and adds a image to the menu bar with whether you have new pm's or not.

Re: Menu bar mod - Posted By Marc (cr0w) on 23rd Apr 08 at 9:20pm
I'm not sure what Ross' policy is on removing the "Help" button, as that's a quick link for members to get support. I'll notify him of this thread and see what he says. {Smile}

EDIT: Ross says it's okay; I'll get to this a little later for you, though. Working on a project for guitar class at the moment.

Re: Menu bar mod - Posted By Michael (wrighty) on 24th Apr 08 at 8:56pm
Use this. Edit the part in capitals for the 2 images! {Smile}

<style>
#user_table {
display: none;
}
</style>

<script>

var n = 'LINK TO NEW IMAGE';
var o = 'LINK TO NO NEW IMAGE';

var y = get('menu_buttons','id');
var x = y.getElementsByTagName('a');
for(a=0;a<x.length;a++){
    if(x[a].href.match(/support.v/)){
        x[a].style.display = 'none';
    }
}

if(vf_username!='guest'){
    var a = document.createElement('a');
    a.href = '/action/pm';
    var i = document.createElement('img');
    i.src = (vf_new_pms>0)? n : o;
    a.appendChild(i);
    y.getElementsByTagName('font')[0].appendChild(document.createTextNode(' :: '));
    y.getElementsByTagName('font')[0].appendChild(a);
}
</script>


Global Header

Re: Menu bar mod - Posted By [.tR] ookie1 (ookie1) on 25th Apr 08 at 11:39pm
Thanks {Grin}