vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > PM Menu Icon

PM Menu Icon - Posted By Michael (wrighty) on 25th Apr 08 at 3:56pm
This code will add a button to the menu that changes when the person has a new PM. It will then link to the inbox.

Edit the 2 parts in red! {Smile}

<script>
/*PM Menu Icon
Created By Wrighty
Do Not: Rip, Repost or Claim!*/

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

var y = get('menu_buttons','id');

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: PM Menu Icon - Posted By ashkir (ashkir) on 29th Jul 08 at 12:46am
Some nice default icons, :].

New: http://wimg.co.uk/nd17NY.gif
No new: http://wimg.co.uk/_v4hto.gif