Additional Info |
---|
Type
|
Package ID
karlbenson:buymeabeer
|
First Created
May 25, 2007, 08:27:43 PM
|
Last Updated
January 18, 2008, 11:03:38 PM
|
// All the messenger type contact info.
// Paypal Address For 'Buy Me A Beer Mod
echo ' <tr>
<td width="40%"><b>', $txt['buymeabeer'], ': </b><div class="smalltext">', $txt['buymeabeer_desc'], '</div></td>
<td><input type="text" name="buymeabeer" size="24" value="', $context['member']['buymeabeer']['name'], '" /></td>
</tr><tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr>
';
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
// SHOW BUY ME A BEER
if (!$message['member']['is_guest'] && $context['user']['is_logged'] && !empty($message['member']['buymeabeer']))
{
$priceofbeer = 5 ; // In US Dollars no cents
echo'<br/>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=' , htmlentities ($message['member']['buymeabeer'], ENT_NOQUOTES, "UTF-8") , '&item_name=' , htmlentities ($txt['pleasebuymeabeer'], ENT_NOQUOTES, "UTF-8") , '&amount=', $priceofbeer ,'%2e00&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" rel="nofollow" title="', $txt['buymeabeeralt'] ,'"><img alt="', $txt['buymeabeeralt'] ,'" border="0" src="', $settings['images_url'] , '/buymeabeer.gif" border="0"/></a><br/>';
}
$txt['pleasebuymeabeer'] = 'Buy Me A Beer';
$txt['buymeabeeralt'] = 'Buy Me A Beer Through Paypal';
$txt['buymeabeer'] = 'PayPal Address For Users To Buy You A Beer';
$txt['profile_error_bad_paypal'] = 'The PayPal Address you entered was not a valid email address';
$txt['profile_error_paypal_taken'] = 'The PayPal Address you entered is already in use by another member';
$txt['buymeabeer_desc'] = 'Allows users to reward you for your posts';
$priceofbeer = 5 ; // In US Dollars no cents