vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: PM Menu Icon - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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! {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
ashkir
Full Member
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 35
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Re: PM Menu Icon (29th Jul 08 at 12:46am UTC)
Some nice default icons, :].

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

All times are GMT+0 :: The current time is 5:42pm
Page generated in 0.1004 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums