vForums Support Banner Image



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: View Topic - PM Menu Icon
Printable View
Wrighty
Very Senior Member
*****

[Avatar]

Posts: 3,269
Status: Offline
Gender: Male
Joined: 16th Dec 2007
Reputation: 16%  



PM Menu Icon (25th Apr 08 at 4: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! Smiley

<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
Back to Top - Link to Post - Last edit: 25th Apr 08 at 4:57pm by Wrighty

Image
Ash.
Full Member
***

[Avatar]

Posts: 477
Status: Offline
Joined: 5th Jan 2008
Reputation: 11%  



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

New: http://1.wimg.co.uk/nd17NY.gif
No new: http://2.wimg.co.uk/_v4hto.gif
Back to Top - Link to Post - Last edit: 29th Jul 08 at 1:48am by Ash.

Image

Free Quality Avatars! Hotlinking Allowed!
Printable View

All times are GMT+1 :: The current time is 5:43pm
Page generated in 0.756 seconds
with 15 Database Queries and 5 cache files
This Forum is Powered By vForums
Create a Forum for Free