vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Avatar PM Link - View Topic
Topic Rating: *****
Printable View
This topic was locked 13th Apr 08 at 6:22pm by Michael
-Sinister-
New Member
*

[Avatar]

Posts: 30
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pmyahooxfire
[F] Avatar PM Link (13th Apr 08 at 5:44pm UTC)
Can someone make me a code that makes the avatar of a user the link to PM them? Like when you click on their avatar, you can send them a PM.
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Avatar PM Link (13th Apr 08 at 6:15pm UTC)
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>
-Sinister-
New Member
*

[Avatar]

Posts: 30
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pmyahooxfire
Re: Avatar PM Link (13th Apr 08 at 6:20pm UTC)
Thanks Wrighty! {Tongue Out}
 Printable View

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