Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | PM Menu Icon (25th Apr 08 at 3:56pm UTC) | | 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!
<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 | |
|