The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#2
|
|||
|
|||
![]()
I managed to do this after having vbulletin for 4 days!
im only a newbie though so code maybe messy..... Add a custom user field in AdminCP>User Profile Field>Add New User Field I called mine "Email address for buy me a drink function" Then in AdminCP>Styles & Templates>Style Manager>Postbit Templates> postbit Find: Code:
$template_hook[postbit_userinfo_right] <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] </div> Code:
<if condition="$post['fieldX']"> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[fieldX]&item_name=Buy Me A Drink&amount=3%2e00&no_shipping=0&no_note=1&tax=0¤cy_code=GBP&lc=GB&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank" rel="nofollow" title="Do You Want To Buy Me A Drink?"> <img alt="Do You Want To Buy Me A Drink?" border="0" src="drink.gif" border="0"/> </if> The code above is set up to donate 3 English Pounds change the 3 to your desired amount and to convert to Dollars: change GBP to USD and GB to US i'm not sure of any other countries or currencys also upload the attached drink.gif to the root folder of your forum (you can change the picture) Now if the user has filled in the new field in their edit profile they will have a picture of a drink in all of their posts and when someone clicks on it, it opens up a new window in paypal for them to donate money for a drink Enjoy |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|