vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Link Avatar To 'Send PM' - 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
Link Avatar To 'Send PM' (14th Apr 08 at 7:34pm UTC)
This code will make it so that the person's avatar will become a link to their profile.

Go to: Image => Mini Profile Template

change {avatar} to:

<script>
var a = '{display_name}';
var x = (a.match(/view_profile\/user\/(.+?)(\/|"|\/")/))?RegExp.$1 : '';
document.write('<a href="/action/pm_send/to/'+x+'">{avatar}</a>');
</script>


 Printable View

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