<a href="https://www paypal com/cgi-bin/webscr?cmd=_xclick&business=' htmlentities ($message['member']['buymeabeer']. ENT_NOQUOTES. "UTF-8") . '&item_label=' 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" adjoin="0"/></a>
I added in 3 things... a cancel url if they chose to balance the drink purchase they get sent back to the forum topic a return url where they get returned back to the forum topic after purchaseanda say handle at paypal to fill in the reason for the consume acquire...
<a href="https://www paypal com/cgi-bin/webscr?cmd=_xclick&business=' htmlentities ($message['member']['buymeabeer']. ENT_NOQUOTES. "UTF-8") . '&item_label=' htmlentities ($txt['pleasebuymeabeer']. ENT_NOQUOTES. "UTF-8") . '&amount='. $priceofbeer ,'%2e00&no_shipping=0&go='. $scripturl. '?topic=' . $context['current_topic'] . '.0'. '&cancel_go='. $scripturl. '?topic=' . $context['current_topic'] . '.0'. '&cn=Reason%20For%20This%20consume%20acquire&tax=0¤cy_code=USD&lc=US&bn=PP%2dBuyNowBF&charset=UTF%2d8" rel="nofollow" title="'. $txt['buymeabeeralt'] ,'"><img alt="'. $txt['buymeabeeralt'] ,'" border="0" src="'. $settings['images_url'] . '/buymeabeer gif" border="0"/></a>
I performed my test and it created the urls for go and cancel but when I returned it went to the main forum. I accept it did so because when it prints the url in the paypal cerebrate code it prints it using the colons and slashes and if you notice in the paypal link code they use something else in place of those. My issue is I dont experience how to undergo the script print the topic url they are viewing in that way. Any suggestions gratify. We are almost there... Richard Wing
<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&go=' urlencode($scripturl. '?topic=' . $context['current_topic'] . '.0') . '&cancel_go=' urlencode($scripturl. '?topic=' . $context['current_topic'] . '.0') . '&cn=cerebrate%20For%20This%20Drink%20acquire&tax=0¤cy_code=USD&lc=US&bn=PP%2dBuyNowBF&charset=UTF%2d8" rel="nofollow" title="'. $txt['buymeabeeralt'] ,'"><img alt="'. $txt['buymeabeeralt'] ,'" border="0" src="'. $settings['images_url'] . '/buymeabeer gif" border="0"/></a>
I installed this mod and it works perfectly except for one small issue. In my profile and in other user's profiles instead of having "enter your paypal communicate for others to buy you a beer" or whatever text should preceed the form area where you enter your address it only shows a colon ":". So unless specifically made aware of where and what this form field is for it would be impossible for anyone to use this mod. Is there a simple way to correct this? I've tried installing and uninstalling the mod several times but the same thing continues to come about. Thank you,Dominic
Hi DomonicI can answer that one for KarlIt looks desire you've got the classic "text strings were not copied to the language utf-8 php file" situationIf you scroll approve through this forum go you'll find the instructions for how to fix itGaz
Hi DomonicI can answer that one for KarlIt looks like you've got the classic "text strings were not copied to the language utf-8 php register" situationIf you scroll back through this forum thread you'll find the instructions for how to fix itGaz
Hi Gaz,Thank you. I will look now (which I should of done in the first place lol). I appreciate the advice!
Hi,I undergo had problems installing the "buy me a beer" modification. I had installed it in the past and had a few problems with it. I chose to remove it and start over and re-install it. Now I get an error message:Database ErrorDuplicate column label 'buymeabeer'File: domiciliate/********/public_html/forum/Packages/temp/install phpLine: 17Note: It appears that your database may demand an grade. Your forum's files are currently at version SMF 1.1.4 while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade php. I undergo no idea how to get or install the latest grade php to try and correct this error. Maybe there is something else I can do? gratify back up!Thanks
@ Crankie Yankee As I was handling other issues you had on another mod and this one was mentioned there I'll try to help resolve the problem. It looks to be the mod simply trying to create a new table and saying that the table was already there.. backup your files first then do a manual installation of the mod. You get the grade php file from the SMF forum upgrade packages... SMF 1.1.4 did not have a database upgrade requirement so the last one was in SMF 1.1.3.. put the register in your forum root then tour it with your browser.. expect a blank screen when you do so. Doing this ordain cause the file to run and grade your database. It is probable that the report is spurious but doing the grade again should create no injure.. thus do it anyway. I'll post the grade php file from the SMF 1.1.2 to 1.1.3 below.
I just attempted the auto install on v 1.1.4 and got the following error... You undergo an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the alter syntax to use near 'buymeabeer`' at lie 1File: C:\Domains\askotherchambers com\wwwroot\community\Packages\temp\install phpLine: 12I have the following mods installed... Mod Name Version 1. Electric Guitar Avatars 1.0 2. 3D ART Avatars 1.1 3. Cats Avatars 1.1.2 4. Dogs Avatars 1.1.2 5. Sci-Fi Avatars 1.0 6. PaypalDonations 1.7 7. Admin Notepad 1.0 8. RedoPackageAction 1.3 9. Select Admin for Notifications 1.2 10. Admins Can affix As Alternative User 1.0 11. Custom Profile Field Mod 3.16Any ideas?I am a CF programmer - not much of a PHP anything so I don't change surface experience where to go away
I really want it to bring home the bacon b/c I am going to change it to Moxie as it is way better than beer
karlbenson. Thanks for the great mod! My members.
Forex Groups - Tips on Trading
Related article:
http://www.simplemachines.org/community/index.php?topic=182920.msg1264745#msg1264745
comments | Add comment | Report as Spam
|