vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: 'Add to buddies' in Mini Profile - 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
'Add to buddies' in Mini Profile (17th Apr 08 at 7:37pm UTC)
This code will add a link to make the person a 'buddy' in their mini profile.

You choose where to put the link, by putting the code into the mini profile templates (Image => Mini Profile Templates).

<script>
var a = '{display_name}';
var x = (a.match(/view_profile\/user\/(.+?)(\/|"|\/")/))?RegExp.$1 : '';
if(x != vf_username){
    document.write('<a href="/action/add_buddy/user/'+x+'">Add to Buddies</a>');
}
</script>
 Printable View

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