View Full Version : End-User Options - UKBL ~ "Buy Me a Beer" Hack
UKBusinessLive
02-11-2009, 10:00 PM
UKBL ~ "Buy Me a Beer" Hack v1.5
https://vborg.vbsupport.ru/external/2009/02/79.pnghttps://vborg.vbsupport.ru/external/2009/02/80.png
You may of seen this on other Forums But Now, The Buy Me a Beer Hack comes to VBulletin :D Display a Drinks Icon on your Postbit and watch those beers come rolling in, Don't forget to Buy me a Beer ;)
Now even Easier to Install ;)
Step By Step Demo: http://www.ukbusinesslive.co.uk/forum/Buy_Me__a_Beer.swf
View the demo above for step by step demo on how to set up a Buy me a Beer on your forums as well as Buy me a Drink - Multichoice
All we need to do is a simple Custom User Field to allow members to add their paypal address, Thats It.
In this Updated version i've set the beer Price to ?3 you can off course change this and convert the currency to UD Dollars, its a lot easier believe me.
So to Start
https://vborg.vbsupport.ru/external/2009/02/81.png
Here is a walkthrough on what to do.
Download the beer.zip file and upload the four images to your forums /images/misc directory or even a hosting service like photobucket.
Next we need to create a Custom User Field in the members CP so, Log onto your Admin CP and go to "User Profile Fields"
Click on Add New User Profile field, and chose "Single Line Text Box"
Then copy the Following
Title = Buy Me A Beer
Description = Add your Paypal Email Address so members can buy you a Beer!
Max length of allowed user input = 50
Field Length = 50
Display Order = 10
Field Required = No
Field Editable by User = Yes
Private Field = No
Field Searchable on Members List = Yes
Display Page = Edit your Details
Thats It when your done click save ;)
Then you'll see a list of custom fields and your new one should be right at the bottom, Make a note of the field number, For example we'll use field8
https://vborg.vbsupport.ru/external/2009/02/82.png
Copy and Paste the code from the zip file into notepad
<if condition="$post['fieldX']">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[fieldX]&item_name=Buy me a Beer&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="Click to buy me a Beer">
<img alt="Buy me a Beer?" border="0" src="http://www.yourforum.com/images/misc/beer.png" border="0"/>
</if>
You need to edit the following
Remember to change the X in FieldX to the Field Number from your Custom Field shown in RED
In the code look for
Beer&amount=3
This is the value of your beer, Look for
currency_code=GBP
This is the currancy country code and GB is the Country , so for Dollars you'd need to change these values to USD and US
its pretty easy really,
and finally change the url of the pictures you uploaded earlier to your forums /images/misc folder or even an image hosting company.
Thats all there is to the code edits, Now we need to go back to our Admin CP, Go to the template you are using in Styles & Templates/Style Manager, and select Edit templates.
Go to "postbit templates" and select the template you are using, either postbit or postbit_legacy.
Find the following
$template_hook[postbit_userinfo_right]
<div>$post $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] </div>
</div>
directly below it add your saved code :)
<!-- /By me a Beer start-->
<if condition="$post['fieldX']">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[fieldX]&item_name=Buy me a Beer&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="Click to buy me a Beer">
<img alt="Buy me a Beer?" border="0" src="http://www.yourforum.com/images/misc/beer.png" border="0"/>
</if><!-- /By me a Beer End-->
Then all your members need to do is to add their Paypal address in their UserCP and automatically their drinks icon will show up in their postbit, If they no longer want to accept Drinks, all they need to do is to delete their Paypal Address from their User CP
So when they click on your Drinks icon they'll be taken to your Paypal's donation Page
https://vborg.vbsupport.ru/external/2009/02/83.png
Easy
Hope you enjoy this, Please don't forget to click install if you use:D
https://vborg.vbsupport.ru/external/2009/02/22.gif
UPDATE 13.02.09
Several Members have expressed concerns with the fact that when you hover with your cursor over the drinks icon the members paypal add is displayed in the Status Bar.
Concerns were made about email harvesters and spammers, and as a responsible Developer Please Find below a security patch which you will need to add at the bottom of the Postbit template that your using, Just copy and paste, right at the bottom.
<script>
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
</script>
This will disable the Staus bar and prevent anyone viewing details, however once the Beer icon has been clicked and the page reverts to the paypal payment page, then the link will be shown.
Also Don't forget to add a template conditional around your uploaded code
<if condition="is_member_of($bbuserinfo, X, X, X)">
The Code goes here !!
</if>
With the X the numbers of your usergroup, This will prevent guests, and no registered members from viewing this hack ;)
Please continue reporting any bugs and we'll fix them accordindly ;)
https://vborg.vbsupport.ru/external/2009/02/22.gif
[I]A Second Version with Multiple choices is now available in the Multichoice.zip
REMEMBER YOU'LL NEED TO ADD THIS IN ADDITION TO THE BUY ME A BEER HACK.
You can Now add a wide variety of Drinks, Food or anything you want to the list and this will be shown inyour posbit and will still allow others to Buy for you via paypal, The Code is basically the same but we will need to add a few extra's, To get the multichoice hack to work we need to have the "Buy Me a Beer Hack" Installed, so if you havn't done that then please do so before going to Multichoice, OK so lets start...
1. Download the Multichoice.zip to your desktop and copy the multichoice.txt file to your text editor, like Notepad
2.Next we need to create a Custom User Field in the members CP so, Log onto your Admin CP and go to "User Profile Fields"
Click on Add New User Profile field, and chose "Single Selection drop down menu "
Then copy the Following
Title = Buy Me A Drink
Options Add the Different varity of drinks here ( One on each line, Remember you need to keep the name of the drinks the same as the drinks Picture format, so if you have Beer, Then you should have beer.png as the graphic file. )
Display Order = 15
Field Required = No
Field Editable by User = Yes
Private Field = No
Field Searchable on Members List = Yes
Display Page = Edit your Details
Thats It when your done click save ;)
https://vborg.vbsupport.ru/external/2009/02/77.png
Remember you need to add this second custom user field in addition to the first one, make a note of the user Field Number Its like this Field9
Next Make sure that the graphic files are named the same as the Drinks in the Multichoice box, So if you have Wine as one of your choices, you need to make sure the Graphic is called Wine.png
In your forums Image directory you need to make a new directory called "Drinks" and upload all your drinks graphic files to your newly created directory, should be something like this..
YourForum.com/images/drinks
Finally we need to edit the code we have already uploaded into the postbit template,
So grab that code
<!--buy me a beer -->
<center>
<if condition="is_member_of($bbuserinfo, x, x, x, x)">
<if condition="$post['field8']"><div class="info">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[field8]&item_name=Buy me a Beer&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="Click to buy me a Beer">
Buy Me a Drink</a></if><if condition="$post['field9']"><img alt="Buy me a Beer?" border="0" src="http://www.yourforum.com/images/drinks/$post[field9].png" border="0"/></div></if></center>
</if>
<!--end buy me a beer -->
Now look carefully at the code
<if condition="is_member_of($bbuserinfo, x, x, x, x)">
The red X's are to be replace withthe usergroup ID's of the usergroups you want to view
<if condition="$post['field8']">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[field8]
This remains the same as this is our user dedined field which we did earleier which allows the insertion of the Paypal Email addy. That was field8 in our example.
Now look at the next bit
<img alt="Buy me a Drink?" border="0" src="http://www.yourforum.com/images/drinks/$post[fieldx9].png" border="0"/>
Have you noticed i've changed the "Buy me a Beer" to "Buy me a Drink" and inplace of the name of our graphic file i've added another post field attribute $post[fieldx9] Which is the custom user field for the dropdown multichoice ;) this will insert whatever the member choses to show in their postbit.
VERY IMPORTANT.
As the Name only of the Graphic file is chosen by the user, you need to ensure that your graphic formats remain the same, either all .jpg, png, or gif, No mixing of formats allowed. ;)
Hope you enjoy the new addition
Many thanks to My Friend Steve (TimberFloorAu) from http://www.yobromofo.com/forum/ for the update on the code, and for getting my ideas working :D
UKBusinessLive
02-12-2009, 06:12 PM
:) Reserved :cool:
jlew24asu
02-12-2009, 06:50 PM
haha nice!
FiMeTi
02-12-2009, 06:54 PM
lol this is really fresh!! Will take a closer look on it this week-end. Thx :=)
UKBusinessLive
02-12-2009, 06:56 PM
haha nice!
Cheers :D
Its been a long time coming, Once its all set up on your site, all your members need to do is create their own Donate button in their paypal account and just use the 7 digit number in the HTML code to add to their UserCP, Then they'll recieve their Beer Glass, or Coffee or Coke whatever icon you chose to add.
Then just click on the beer glass to be taken to their paypal Page :D
UKBusinessLive
02-12-2009, 06:57 PM
lol this is really fresh!! Will take a closer look on it this week-end. Thx :=)
Get Fresh at the weekend ?? :p
UKBusinessLive
02-12-2009, 08:51 PM
Just to let you all know i've updated the code making it easier for everyone.
The main differences are
1. Now your members will not have to play around making Donation Buttons at Pay pal to get an ID number, all they need to do is add their Paypal email in the Custom user field in the User CP ;)
2. To stop abuse of the system with members paying pennies to each other, which means Paypal will take that as cost, and no one getting anything, I've made the donations fixed at ?3, Its easy to change this amount and also the currancy, its all in the code ;)
3. Installation time should be no more than 10 minutes or less if your fast.
New Zip file uploaded
Enjoy :D
TimberFloorAu
02-12-2009, 09:31 PM
Good work mate !
What about a custom page called:
Most Pissed Users.
Listing who has been bought the most beers/cokes etc in chronological order.
That would be the icing on the cake.
Ste
UKBusinessLive
02-12-2009, 09:34 PM
Good work mate !
What about a custom page called:
Most Pissed Users.
Listing who has been bought the most beers/cokes etc in chronological order.
That would be the icing on the cake.
Ste
Hi Steve
This ones for you
https://vborg.vbsupport.ru/external/2009/02/78.png
:D
Instead of going down the Pub and spending all your money you could buy everyone a beer :)
KevinL
02-12-2009, 09:46 PM
LOL!!!
This is great!! You're getting good at this!
Thank you :)
TimberFloorAu
02-12-2009, 09:56 PM
Notes:
rename your image url to coincide with image uploaded:
thus
<!--buy me a beer -->
<if condition="$post['field22']"><div class="info">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[field22]&item_name=Buy me a Beer&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="Click to buy me a Beer">
<center><img alt="Buy me a Beer?" border="0" src="http://www.yoursite.com/images/misc/beer.png" border="0"/></center>
</div></if>
<!--end buy me a beer -->
beer.png to match the uploaded file, included file needs to be renamed accordingly.
Changed my postbit as above to fit in with our style.
Good work Mate
TimberFloorAu
02-12-2009, 09:57 PM
hahah lol at Fosters, we export that for the Poms to drink ;)
We drink VB
TimberFloorAu
02-12-2009, 10:00 PM
All joking aside:
if a new custom drop down was added for say Coffee , Wine, Beer, Coke etc
then linked to the image, when users edit their paypal details, they could choose their preferred poison.
This then would reflect the drink type in postbit, and provide some alternate drinking donations on a per user basis
******
My only reservation.
I would prefer that the email addy is hidden. When hovering over the beer bottle, this could cause some security issues.
UKBusinessLive
02-12-2009, 10:01 PM
Notes:
rename your image url to coincide with image uploaded:
thus
<!--buy me a beer -->
<if condition="$post['field22']"><div class="info">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[field22]&item_name=Buy me a Beer&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="Click to buy me a Beer">
<center><img alt="Buy me a Beer?" border="0" src="http://www.yoursite.com/images/misc/beer.png" border="0"/></center>
</div></if>
<!--end buy me a beer -->
beer.png to match the uploaded file, included file needs to be renamed accordingly.
Changed my postbit as above to fit in with our style.
Good work Mate
Thats just an example url, As long as you have the fully url to where your graphic is, it dosn't matter what its called ;)
You drink VB ??? Vbulletin ??:confused:
BTW, It looks great on your forum :D
UKBusinessLive
02-12-2009, 10:07 PM
All joking aside:
if a new custom drop down was added for say Coffee , Wine, Beer, Coke etc
then linked to the image, when users edit their paypal details, they could choose their preferred poison.
This then would reflect the drink type in postbit, and provide some alternate drinking donations on a per user basis
******
My only reservation.
I would prefer that the email addy is hidden. When hovering over the beer bottle, this could cause some security issues.
Great Ideas mate :D Something to look at for version 2 ;)
What do you mean about the email addy showing when you hover over the beer???
It should only say "Buy me a Beer"? :confused:
TimberFloorAu
02-12-2009, 10:07 PM
Thats just an example url, As long as you have the fully url to where your graphic is, it dosn't matter what its called ;)
You drink VB ??? Vbulletin ??:confused:
BTW, It looks great on your forum :D
Cheers mate will do a screeny.
Yeah ironically, VB is Victoria Beer.
Hence we have the VBSOLB ( Victoria Beer Stadium of Light ) for our betting forums.
All good fun.
TimberFloorAu
02-12-2009, 10:09 PM
Great Ideas mate :D Something to look at for version 2 ;)
What do you mean about the email addy showing when you hover over the beer???
It should only say "Buy me a Beer"? :confused:
In the bottom bar of a window, so email harvesters can gather your info, just by scanning across the forum.
Perhaps a URL rewrite or a htaccess hack could fix this.
Ste
TimberFloorAu
02-12-2009, 10:13 PM
Question has already been asked in this thread.
http://www.yobromofo.com/forum/notices/8090-buy-me-beer.html
can we make it usergroup viewable, ie only registered members/mods/admins can see the buy me a beer symbol and consequently the hover issue
UKBusinessLive
02-12-2009, 10:19 PM
Question has already been asked in this thread.
http://www.yobromofo.com/forum/notices/8090-buy-me-beer.html
can we make it usergroup viewable, ie only registered members/mods/admins can see the buy me a beer symbol and consequently the hover issue
Great Idea, for that we'd need to add a conditional
Just add this at the begining of the code
<if condition="is_member_of($bbuserinfo, X, Y, Z)">
and replace the x, y, z with the Usergroup id's
remember to end with
</if>
at the end of the code ;)
When you set up a Custom Field Job there is an option for Multi choices, I guess that would allow members what drink they would like to chose, but they'd have to select it themselves, and where would we put all the images?? Perhaps in their own directory???
I'll be sleeping on this one tonight ;)
TimberFloorAu
02-12-2009, 10:28 PM
I will look into this also.
The status bar issue is not gonna work, so user conditions are the go.
Thanks
*****************
regarding the Drinks.
Perhaps a drop down box.
Coke
White Wine
Red Wine
Scotch
Vodka
Alcopop
Coffee
Tea
Water
these would then need to link to their own image file. Thats the bit I need to get my head around.
UKBusinessLive
02-12-2009, 11:05 PM
Thanks Steve,
I've found out how to do this now and will be able to add a new custom field with a whole variety of drinks ;)
Just need now to get some decent quality 48 x 48 pixel .png drinks icons, will do those tommorrow when i get home from work :D
This can only get better :D:D Now i need some sleep its 1.04am in the UK and i need to be up at 6am for work :o
ArnyVee
02-12-2009, 11:17 PM
This seems like a VERY cool and fun way for folks to interact. Plus, it doesn't hurt to get a couple of bucks here and there ;)
I'd be looking for a 'twist' on it though. Since my site is a 'family oriented' site, I'd want things like "Kool Aid" and "Coca Cola" and "Water Bottles" and especially the "Dole Whip" from the Magic Kingdom at Walt Disney World. :up:
Once you have the 'options' setup I might just try this one out on my site. Great job on these modifications!
Reycer
02-12-2009, 11:18 PM
<font size="3">HOT DANG!</font> I've been waiting on this for MONTHS NOW! THANK YOU SOOOOOOO MUCH!
TimberFloorAu
02-12-2009, 11:20 PM
Thanks Steve,
I've found out how to do this now and will be able to add a new custom field with a whole variety of drinks ;)
Just need now to get some decent quality 48 x 48 pixel .png drinks icons, will do those tommorrow when i get home from work :D
This can only get better :D:D Now i need some sleep its 1.04am in the UK and i need to be up at 6am for work :o
I will if I have time do some for you today, we already have quite a few.
Ste
some in our shop:
http://www.yobromofo.com/forum/xperience.php?go=shop&cat=5
Will deffo do you some new images tho ( dont forget some ppl cannot view png's )
UKBusinessLive
02-12-2009, 11:22 PM
This seems like a VERY cool and fun way for folks to interact. Plus, it doesn't hurt to get a couple of bucks here and there ;)
I'd be looking for a 'twist' on it though. Since my site is a 'family oriented' site, I'd want things like "Kool Aid" and "Coca Cola" and "Water Bottles" and especially the "Dole Whip" from the Magic Kingdom at Walt Disney World. :up:
Once you have the 'options' setup I might just try this one out on my site. Great job on these modifications!
Thanks Arny, You can do quite a lot with this, Will Try and get it finished with the updates as soon as i can ;)
UKBusinessLive
02-12-2009, 11:22 PM
HOT DANG! I've been waiting on this for MONTHS NOW! THANK YOU SOOOOOOO MUCH!
I knew you'd be happy :D
ArnyVee
02-12-2009, 11:42 PM
Thanks Arny, You can do quite a lot with this, Will Try and get it finished with the updates as soon as i can ;)
You know, I just thought of something....I can make a "Buy me a Pin" and do Disney pins for all of the characters or rides or parks or....well, you get the idea ;)
Wow...get this thing going my friend! Can't wait! :up:
TimberFloorAu
02-13-2009, 12:01 AM
This could also be made into an extremely powerful "Charity" tool
Providing the charities were aware and had paypal.
A very exciting mod, simple but very cool !
ArnyVee
02-13-2009, 12:22 AM
Steve, great point. I can't wait until the "options" upgrade has been figured out to jump all over this one :)
dvbusuario
02-13-2009, 03:20 AM
Mexican Beer xD
http://img16.imageshack.us/img16/6376/imgsmlaf313515233681ux2.jpg
Install!
Thank You!
TimberFloorAu
02-13-2009, 04:30 AM
Guys had 15 minutes to spare and created these.
Only 3 for now, but including the psd too.
Font is Segoe UI
Using Photoshop CS
Feel free to ignore, use adapt whatever, but ensure you share them !!
Size of each image is 150 x 48
Enjoy
p.s PSD is in the zip file
*** pps. Full Credit to UkBusinessLive for this ( I am just fiddling ;) )
TimberFloorAu
02-13-2009, 04:35 AM
Previous post are GIF
Below are the PNG
saved as png 8
edited to add : My new Postbit
UKBusinessLive
02-13-2009, 05:03 AM
Thanks for that Steve, I will include them, with the Update zip folder, Any chance you could do the rest of them when you get a minute ;)
I worked out how to change the code to include a dropdown menu for members to chose their own drinks from a list, I'll update it all when i get back from work, This has turned out from being a simple idea to quite a varied and interesting hack with a variety of uses.
If you want to bypass the Alcohol drinks you could, just use soft drinks and Ice creams for childrens and family forums, I even had a PM to say can they use Food?? In fact its up to you what you use this for.
Experiment and see what works for you but the great thing being is that members will see a healthly increase in their paypal funds ;)
Thanks to steve for his help last night and everyone who contributed with ideas :D
TimberFloorAu
02-13-2009, 06:04 AM
Thanks for that Steve, I will include them, with the Update zip folder, Any chance you could do the rest of them when you get a minute ;)
I worked out how to change the code to include a dropdown menu for members to chose their own drinks from a list, I'll update it all when i get back from work, This has turned out from being a simple idea to quite a varied and interesting hack with a variety of uses.
If you want to bypass the Alcohol drinks you could, just use soft drinks and Ice creams for childrens and family forums, I even had a PM to say can they use Food?? In fact its up to you what you use this for.
Experiment and see what works for you but the great thing being is that members will see a healthly increase in their paypal funds ;)
Thanks to steve for his help last night and everyone who contributed with ideas :D
Will try my best mate.
We are fighting floods here in QLD at the moment, and have an open house tomorrow, and friends coming this evening, so could be sunday before i get chance.
Ste
rn-nr.com
02-13-2009, 06:26 AM
thanks a lot
TimberFloorAu
02-13-2009, 06:27 AM
OK ! Found time to do a few more ;)
Enjoy :)
Includes all the drinks and a coupole not shown here and the psd
TimberFloorAu
02-13-2009, 06:50 AM
Last for the night for me.
TimberFloorAu
02-13-2009, 07:14 AM
Due to a request heres the SUPPORT MY COLLEGE FUND
UKBusinessLive
02-13-2009, 12:11 PM
Thanks for those Steve I'll save them as a zip on the first post for members to download, Just to let you know also i've updated the thread with the new Multichoice.zip which gives instructions on adding an additional multichoice selection of drinks ;)
I love that Big Mac Graphic, I can imagine it, Buy me a Big Mac :D lol https://vborg.vbsupport.ru/external/2009/02/77.jpg
You need to install the first "Buy me a beer" hack before you can install the Multichoice ;)
TimberFloorAu
02-13-2009, 12:31 PM
Thanks for those Steve I'll save them as a zip on the first post for members to download, Just to let you know also i've updated the thread with the new Multichoice.zip which gives instructions on adding an additional multichoice selection of drinks ;)
I love that Big Mac Graphic, I can imagine it, Buy me a Big Mac :D lol https://vborg.vbsupport.ru/external/2009/02/77.jpg
You need to install the first "Buy me a beer" hack before you can install the Multichoice ;)
Cheers mate, I am 3 sheets to the wind,, been having a yarn with friends, and necking the grog, so gonna have a looksy tomoz mate.
Great MOD, will try it out in the mornin.
Ste
unicorn2433
02-13-2009, 12:57 PM
Silly question. When they buy the item who are they paying?
The message board owner. Just curious. I am slow...lol
TimberFloorAu
02-13-2009, 01:04 PM
Silly question. When they buy the item who are they paying?
The message board owner. Just curious. I am slow...lol
If member a clicks on member b's BUY ME A BEER graphic, then member a donates via paypal 3 quid ( or whatever ) to member b's paypal account.
The boasrd gets nothing, this is an INTER MEMBER THINGY ;)
Reycer
02-13-2009, 01:09 PM
Hey Gene, all my members are getting this message when they click on the icon
"We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com."
TimberFloorAu
02-13-2009, 01:16 PM
Hey Gene, all my members are getting this message when they click on the icon
"We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com."
Sounds like you have mistaken field number to id number in your user profile fields. Check again
Reycer
02-13-2009, 01:26 PM
I checked them again, they are right. I am using Field 5.
scottct1
02-13-2009, 04:06 PM
I love it but may have to remove it as my users don't like having their email address displayed in the status bar of the browser.
If we can figure out a solution to this, this could be MOTM.
UKBusinessLive
02-13-2009, 04:08 PM
I love it but may have to remove it as my users don't like having their email address displayed in the status bar of the browser.
If we can figure out a solution to this, this could be MOTM.
I'm looking into that at the moment ;)
scottct1
02-13-2009, 04:34 PM
Ok I got the bright idea to make the icon show on the postbit but when you click on it have it take you to the user profile.
I wanted to put the code for the button in the profile so this way the bots can't harvest users email addresses since user profiles are blocked from bots in the .htaccess file.
However when I put the code in the user profile the fields are not being pulled. I can't figure out why its not parsing the fields in the user profile. But as an example the working code in the postbit for the picture is http://www.yourforum.com/images/drinks/beer.png however when the page is being displayed its not parsing and coming up with http://www.yourforum.com/images/drinks/.png
UKBusinessLive
02-13-2009, 04:51 PM
Ok I got the bright idea to make the icon show on the postbit but when you click on it have it take you to the user profile.
I wanted to put the code for the button in the profile so this way the bots can't harvest users email addresses since user profiles are blocked from bots in the .htaccess file.
However when I put the code in the user profile the fields are not being pulled. I can't figure out why its not parsing the fields in the user profile. But as an example the working code in the postbit for the picture is http://www.yourforum.com/images/drinks/beer.png however when the page is being displayed its not parsing and coming up with http://www.yourforum.com/images/drinks/.png
I'm working out a hack to disable the status bar at the moment, this could solve the problem of the status bar showing details ;)
ArnyVee
02-13-2009, 04:54 PM
Can we have it work so that the person is paying the forum for the purchase? Sort of like how Facebook gets the cash on a 'buy me a gift' deal?
UKBusinessLive
02-13-2009, 05:07 PM
Can we have it work so that the person is paying the forum for the purchase? Sort of like how Facebook gets the cash on a 'buy me a gift' deal?
I'll write up a new code for you Arny ;) I'll do it after i post another update :eek:
To stop the status bar from showing the members details when you hover over the icon.
Bear with me mate ;)
ArnyVee
02-13-2009, 05:15 PM
That's great Gerry! Thank you! :up:
Great job on getting some very useful mods out! These are the type of mods that increase interactivity on our forums (which is absolutely vital! :) ) and create a more cohesive community! :D
UKBusinessLive
02-13-2009, 05:21 PM
Ok I got the bright idea to make the icon show on the postbit but when you click on it have it take you to the user profile.
I wanted to put the code for the button in the profile so this way the bots can't harvest users email addresses since user profiles are blocked from bots in the .htaccess file.
However when I put the code in the user profile the fields are not being pulled. I can't figure out why its not parsing the fields in the user profile. But as an example the working code in the postbit for the picture is http://www.yourforum.com/images/drinks/beer.png however when the page is being displayed its not parsing and coming up with http://www.yourforum.com/images/drinks/.png
Scott
I have made a security patch which will disable the status bar. Several Members have expressed concerns with the fact that when you hover with your cursor over the drinks icon the members paypal add is displayed in the Status Bar.
Concerns were made about email harvesters and spammers, and as a responsible Developer Please Find below a security patch which you will need to add at the bottom of the Postbit template that your using, Just copy and paste, right at the bottom.
<script>
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
</script>
This will disable the Staus bar and prevent anyone viewing details, however once the Beer icon has been clicked and the page reverts to the paypal payment page, then the link will be shown.
Please continue reporting any bugs and we'll fix them accordindly ;)
Thanks buddy
Gerry ;)
UKBusinessLive
02-13-2009, 05:31 PM
That's great Gerry! Thank you! :up:
Great job on getting some very useful mods out! These are the type of mods that increase interactivity on our forums (which is absolutely vital! :) ) and create a more cohesive community! :D
No Worries Mate,
Glad to help where i can, But could do with a rest after this one ;)
Arny, I take it you have a Forum paypal account already??? Then what you'll have to do is if you don't want members to buy beers for each other but just pay the forum then you need to delete the part about custom user fields and simply add your paypal address in the code as opposed to the field attribute
Works along the lines of something like this...
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=admin@mickeymouse.com&item_name=Buy me a Beer&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="Click to buy me a Beer">
<img alt="Buy me a Beer?" border="0" src="http://www.yourforum.com/images/misc/beer.png" border="0"/>
</if>
You can see where you need to add your email addy, its in red ;)
Then you can change the other bits, Buy me a Beer to Buy us a Gift or something along those lines, Don't forget to change the graphic :D
Hope that helps
Gerry
PS a little something for you for St Patricks Day ;)
https://vborg.vbsupport.ru/external/2009/02/64.png
Just to let you know, that won't stop harvesters and/or spammers in the slightest.
It'll hide the status bar link for users with javascript enabled, it won't however remove the link from the page's source code or hide the status bar link for anyone with javascript disabled.
At best, it'll just stop most regular (human) members from seeing the status bar link. The majority (if not all) automated spammers and harvesters will still be able to get the link with no problems at all.
Your best bet would be to use a template condition to hide the entire modification (and the actual link itself) from guests. That's probably the only reliable way to hide the link(s) from spammers and harvesters.
UKBusinessLive
02-13-2009, 05:43 PM
Just to let you know, that won't stop harvesters and/or spammers in the slightest.
It'll hide the status bar link for users with javascript enabled, it won't however remove the link from the page's source code or hide the status bar link for anyone with javascript disabled.
At best, it'll just stop most regular (human) members from seeing the status bar link. The majority (if not all) automated spammers and harvesters will still be able to get the link with no problems at all.
Your best bet would be to use a template condition to hide the entire modification (and the actual link itself) from guests. That's probably the only reliable way to hide the link(s) from spammers and harvesters.
Thanks for the tip, I'm onto that now ;) Just added the template condition to the first post, so now you have to be logged in and a member to even be able to view the buy me a beer hack, Funny enough i'd already thought of this in an earlier post, but i forgot to add it to the first post :rolleyes:
Thanks again for reminding me ;)
UKBusinessLive
02-13-2009, 06:57 PM
I love it but may have to remove it as my users don't like having their email address displayed in the status bar of the browser.
If we can figure out a solution to this, this could be MOTM.
Don't forget to add the template conditional on the first post, That way only members and staff will be able to view the hack, together with the code to disable the staus bar, That should prevent any sercurity issues, with non members and guests.
Let me know if i can help further ;)
TandyServices
02-13-2009, 07:18 PM
I can not get the new images to show?? here is what I have and my field is 32 and only .png..
<img alt="Buy me a Drink?" border="0" src="/images/misc/donate/$post[field32].png" border="0"/>
UKBusinessLive
02-13-2009, 07:54 PM
I can not get the new images to show?? here is what I have and my field is 32 and only .png..
<img alt="Buy me a Drink?" border="0" src="http://www.yourforum.com/images/misc/donate/$post[field32].png" border="0"/>
Try adding the full URL to the graphics http://www.yourforum.com/images/misc/donate/$post[field32].png ;)
let me know how you got on James
TandyServices
02-13-2009, 07:58 PM
Yea we tried that too.. Didn't work either though... Any other suggestions? Thanks for the fast reply :)
UKBusinessLive
02-13-2009, 08:01 PM
Yea we tried that too.. Didn't work either though... Any other suggestions? Thanks for the fast reply :)
Are you installing the Multichoice add on??? Have you already added the first one (Buy me a Beer) ? for it to work in multichoice you need to install both zip files ;)
TandyServices
02-13-2009, 08:05 PM
Yes we did that. The first one worked perfect, but when we added the multiple choice the images didnt show anymore. We went through all your directions twice and everything is as it should be...
UKBusinessLive
02-13-2009, 08:06 PM
Yes we did that. The first one worked perfect, but when we added the multiple choice the images didnt show anymore. We went through all your directions twice and everything is as it should be...
bear with me i'll check the code :confused:
TandyServices
02-13-2009, 08:08 PM
Thanks :) We did too though lol.. Two of us on it for over an hour now :p
Should it be of any help, this is the full part of what we had.. maybe we overlooked something.
<if condition="is_member_of($bbuserinfo, 2, 5, 6, 7, 9, 10, 11, 13)">
<if condition="$post['field31']">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[field31] &item_name=Buy me a Beer&amount=2%2e00&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank" rel="nofollow" title="Click to donate to my post">
<img alt="Donate to my Post" border="0" src="http://www.mysite.com/images/donate/$post[field32]" border="0"/>
</if></if>
UKBusinessLive
02-13-2009, 08:19 PM
Thanks :) We did too though lol.. Two of us on it for over an hour now :p
Try this James
you have the condition at the start which looks like this
<if condition="$post['fieldX']">
Thats the Custom field attribute for where the user adds their Paypal Address the X will be the number of that field
Try also adding the condition for the Multichoice menu ;) That should make the Images show so, below that and with the FieldZ attribute change the Z to the number of the field which controls the images, so both conditions should look like this
<if condition="$post['fieldX']">
<if condition="$post['fieldZ']">
don't forget to ad the other end tag, just below the other one at the end of the code
</if>
Try that and let me know :)
Make it like this one below
<if condition="is_member_of($bbuserinfo, 2, 5, 6, 7, 9, 10, 11, 13)">
<if condition="$post['field31']">
<if condition="$post['field32']">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[field31] &item_name=Buy me a Beer&amount=2%2e00&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank" rel="nofollow" title="Click to donate to my post">
<img alt="Donate to my Post" border="0" src="http://www.mysite.com/images/donate/$post[field32].png" border="0"/></if></if></if>
Copy this code and try again ;)
You also left off the end of the $post[field32] it should be $post[field32].png"
Also is Mysite.com your forum's url?? or is it where you have the pictures hosted??? i got a funny feeling your not adding the pictures right
TandyServices
02-13-2009, 08:32 PM
Try this James
you have the condition at the start which looks like this
<if condition="$post['fieldX']">
Thats the Custom field attribute for where the user adds their Paypal Address the X will be the number of that field
Try also adding the condition for the Multichoice menu ;) That should make the Images show so, below that and with the FieldZ attribute change the Z to the number of the field which controls the images, so both conditions should look like this
<if condition="$post['fieldX']">
<if condition="$post['fieldZ']">
don't forget to ad the other end tag, just below the other one at the end of the code
</if>
Try that and let me know :)
Make it like this one below
<if condition="is_member_of($bbuserinfo, 2, 5, 6, 7, 9, 10, 11, 13)">
<if condition="$post['field31']">
<if condition="$post['field32']">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[field31] &item_name=Buy me a Beer&amount=2%2e00&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank" rel="nofollow" title="Click to donate to my post">
<img alt="Donate to my Post" border="0" src="http://www.mysite.com/images/donate/$post[field32].png" border="0"/></if></if></if>
Copy this code and try again ;)
You also left off the end of the $post[field32] it should be $post[field32].png"
Thanks but didn't work... Still have red x's. :confused:
UKBusinessLive
02-13-2009, 08:34 PM
type me out an url to one of your images, if it works it will show me the image ;)
Reycer
02-13-2009, 10:33 PM
UK LIVE: Any thoughts on my problem?
UKBusinessLive
02-14-2009, 12:27 AM
UK LIVE: Any thoughts on my problem?
Its important to make su
rte that the urls of your images are valid ;) I'm still looking at his problem
Jeff G
02-14-2009, 02:35 AM
very cool mod!! Installed nice & easy, might have to install the multi one :)
TimberFloorAu
02-14-2009, 03:23 AM
Thanks but didn't work... Still have red x's. :confused:
Either your path is incorrect or you are not inserting the field value in BOTH places for each choice.
TimberFloorAu
02-14-2009, 04:03 AM
No cannot get this working neither. ( on multi choice )
Weird one.
Will look at the code.
Ste
UKBusinessLive
02-14-2009, 05:26 AM
May have to delete the multichoice until we can get it to work, Could it be that its not working with the two fields in the same code???
strange it looked pretty striaghtforward to me :confused:
Let me know steve what you come up with ;)
TimberFloorAu
02-14-2009, 05:51 AM
May have to delete the multichoice until we can get it to work, Could it be that its not working with the two fields in the same code???
strange it looked pretty striaghtforward to me :confused:
Let me know steve what you come up with ;)
I reckon its the fact we are containing 2 fields within 2 if's
Perhaps a text link which is good for the paypal.
Then directly below the image file.
Each wrapped in their own if statements, but this would mean the image is just an image and not a hyperlink.
Let me know if you think this could be the issue. I will have a test now.
Ste
TimberFloorAu
02-14-2009, 06:07 AM
Okies I have a fix.
The multi selection version, change to single selection drop down menu. Without blank as first choice.
Then the code I have is thus:
<!--buy me a beer -->
<center>
<if condition="$post['field22']"><div class="info">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[field22]&item_name=Buy me a Beer&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="Click to buy me a Beer">
Buy Me a Drink</a></if><if condition="$post['field24']"><img alt="Buy me a Beer?" border="0" src="http://www.mysite.com/images/drinks/$post[field24].png" border="0"/></div></if></center>
<!--end buy me a beer -->
This works fine.
TimberFloorAu
02-14-2009, 06:11 AM
This is what she looks like :)
code with specific usergroup permission is:
<!--buy me a beer -->
<center>
<if condition="is_member_of($bbuserinfo, 2, 5, 6, 7)">
<if condition="$post['field22']"><div class="info">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[field22]&item_name=Buy me a Beer&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="Click to buy me a Beer">
Buy Me a Drink</a></if><if condition="$post['field24']"><img alt="Buy me a Beer?" border="0" src="http://www.mysite.com/images/drinks/$post[field24].png" border="0"/></div></if></center>
</if>
<!--end buy me a beer -->
UKBusinessLive
02-14-2009, 12:47 PM
Thanks for that Steve, i've updated the first post and added the zip files again ;)
Multichoice is back on the menu ;) :D
Reycer
02-14-2009, 01:16 PM
UKBL: I have pictures. I can see them. But, when the users click on them, they are getting that weird message.
http://www.lacledeforum.com/forums/showthread.php?t=252
Look at some of the coke bottles there. Click on them and see what you get.
UKBusinessLive
02-14-2009, 01:22 PM
UKBL: I have pictures. I can see them. But, when the users click on them, they are getting that weird message.
http://www.lacledeforum.com/forums/showthread.php?t=252
Look at some of the coke bottles there. Click on them and see what you get.
post the code your using here so i can see ;)
Edit ...
well for a start i can't imagine why you have 2 coke tins showing?? plus i can't see your paypal email address??? Thats the problem.
Viewing your code this is what you have
<!-- /By me a Beer start-->
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=&item_name=Buy me a Drink&amount=3%2e00&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank" rel="nofollow" title="Click to buy me a Drink">
<img alt="Buy me a Coke?" border="0" src="http://www.lacledeforum.com/forums/images/misc/Coke_Classic_woops-32.png" border="0"/>
<!-- /By me a Beer End-->
for this to work you need to add a custom user field, You havn't got that showing at all, so its going to the paypal site without a Paypal email address, Plus you want to add the condition which i added yesterday as i was able to view your code from the View Source :eek:
if you get stuck on what to do, make me a temp admin account and i'll add it for you ;)
Gerry :D
Reycer
02-14-2009, 02:41 PM
<if condition="$post['field5']">
<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=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank" rel="nofollow" title="Click to buy me a Drink">
<img alt="Buy me a Coke?" border="0" src="http://www.lacledeforum.com/forums/images/misc/Coke_Classic_woops-32.png" border="0"/>
</if>
<!-- /By me a Beer start-->
<if condition="$post['field5']">
<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=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank" rel="nofollow" title="Click to buy me a Drink">
<img alt="Buy me a Coke?" border="0" src="http://www.lacledeforum.com/forums/images/misc/Coke_Classic_woops-32.png" border="0"/>
</if><!-- /By me a Beer End-->
<if condition="$post['field5']">
<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=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank" rel="nofollow" title="Click to buy me a Drink">
<img alt="Buy me a Coke?" border="0" src="http://www.lacledeforum.com/forums/images/misc/Coke_Classic_woops-32.png" border="0"/>
</if>
<!-- /By me a Beer start-->
<if condition="$post['field5']">
<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=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank" rel="nofollow" title="Click to buy me a Drink">
<img alt="Buy me a Coke?" border="0" src="http://www.lacledeforum.com/forums/images/misc/Coke_Classic_woops-32.png" border="0"/>
</if><!-- /By me a Beer End-->
I have added the custom fields. It's in the UserCP under Edit Details.
UKBusinessLive
02-14-2009, 03:16 PM
I have added the custom fields. It's in the UserCP under Edit Details.
Wow what have you done :eek::eek::eek:
Any way thanks for the admin login, i've set it up for you take a look ;)
https://vborg.vbsupport.ru/external/2009/02/22.gif
https://vborg.vbsupport.ru/external/2009/02/76.png
http://www.lacledeforum.com/forums/showthread.php?p=1607#post1607
have fun :D
GSeybold
02-14-2009, 04:11 PM
This is too cool! Thanks so much for this .:)
Gabby
UKBusinessLive
02-14-2009, 04:18 PM
This is too cool! Thanks so much for this .:)
Gabby
Thanks Gabby,
Let me know if you need a hand to install ;)
Gerry
Reycer
02-14-2009, 04:25 PM
thanks Gene. What was I doing wrong?
UKBusinessLive
02-14-2009, 04:26 PM
thanks Gene. What was I doing wrong?
Your just getting everything wrong like name for example Its GERRY :D:D
Oh well we got there in the end ;)
TimberFloorAu
02-14-2009, 05:43 PM
Your just getting everything wrong like name for example Its GERRY :D:D
Oh well we got there in the end ;)
GENE YOUR THE MAN :D
Great work, yep looks fine. Our members love it.
If you want , I can look at doing a Camtasia presentation on how to do the file edits if you like, let me know.
Ste
p.s Gerry, thanks for the co-link for our help, sincerely appreciate that.
UKBusinessLive
02-14-2009, 06:33 PM
GENE YOUR THE MAN :D
Great work, yep looks fine. Our members love it.
If you want , I can look at doing a Camtasia presentation on how to do the file edits if you like, let me know.
Ste
p.s Gerry, thanks for the co-link for our help, sincerely appreciate that.
:D:D Gene :D:D Thats a new one
Steve you've been a great help mate, Can you do a Camtasia presentation, that would make this hack awsome.
Thanks again Mate and everyone for all thier ideas :)
TimberFloorAu
02-14-2009, 06:38 PM
:D:D Gene :D:D Thats a new one
Steve you've been a great help mate, Can you do a Camtasia presentation, that would make this hack awsome.
Thanks again Mate and everyone for all thier ideas :)
Due to the physical size of the presentation, please bear with me, and I will try and create one and upload to youtube.
Ste
UKBusinessLive
02-14-2009, 06:40 PM
Due to the physical size of the presentation, please bear with me, and I will try and create one and upload to youtube.
Ste
Thats super Steve, when your ready mate ;)
TimberFloorAu
02-14-2009, 08:33 PM
Okies I have uploaded via YouTube but awaiting processing.
Its not 100% but should give ppl the general idea.
For now here is the swf link
http://www.megafileupload.com/en/file/83024/Buy-Me--a-Beer-swf.html
OR
http://www.2shared.com/file/4878313/c634b304/Buy_Me__a_Beer.html
UKBusinessLive
02-14-2009, 08:44 PM
Okies I have uploaded via YouTube but awaiting processing.
Its not 100% but should give ppl the general idea.
For now here is the swf link
http://www.megafileupload.com/en/file/83024/Buy-Me--a-Beer-swf.html
OR
http://www.2shared.com/file/4878313/c634b304/Buy_Me__a_Beer.html
thats Great mate, what a brilliant way to promote this too. :D
Just updated the first post with the new demo http://www.ukbusinesslive.co.uk/forum/Buy_Me__a_Beer.swf
TimberFloorAu
02-14-2009, 09:53 PM
Cheers Mate :)
Reycer
02-14-2009, 10:05 PM
sorry. I have no idea where Gene came from.... lol
Thanks for the help though.
UKBusinessLive
02-15-2009, 12:14 AM
sorry. I have no idea where Gene came from.... lol
Thanks for the help though.
Everyones happy at the end of the Day :D Glad you liked it :up:
ArnyVee
02-16-2009, 10:17 PM
Gerry, I'm going to try and download this one later this week as I just got back from Walt Disney World and I'm pooped! :D
I'm hoping to use this with like a "Disney Pin" sort of spin on things ;)
We'll see how it goes :up:
ArnyVee
02-16-2009, 10:20 PM
No Worries Mate,
Glad to help where i can, But could do with a rest after this one ;)
Arny, I take it you have a Forum paypal account already??? Then what you'll have to do is if you don't want members to buy beers for each other but just pay the forum then you need to delete the part about custom user fields and simply add your paypal address in the code as opposed to the field attribute
Works along the lines of something like this...
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=admin@mickeymouse.com&item_name=Buy me a Beer&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="Click to buy me a Beer">
<img alt="Buy me a Beer?" border="0" src="http://www.yourforum.com/images/misc/beer.png" border="0"/>
</if>
You can see where you need to add your email addy, its in red ;)
Then you can change the other bits, Buy me a Beer to Buy us a Gift or something along those lines, Don't forget to change the graphic :D
Hope that helps
Gerry
PS a little something for you for St Patricks Day ;)
https://vborg.vbsupport.ru/external/2009/02/64.png
First off....thank you me' laddy! ;)
As far as the code goes, I hope to test it out this coming week. :up:
TimberFloorAu
02-16-2009, 10:39 PM
First off....thank you me' laddy! ;)
As far as the code goes, I hope to test it out this coming week. :up:
Pull your finger out, and get it working ;)
UKBusinessLive
02-17-2009, 12:34 AM
Pull your finger out, and get it working ;)
Ha Ha lol :D:D
ArnyVee
02-17-2009, 01:15 AM
LOL....I'm still tryin' to catch up on mail, updates, etc....friggin' fallin' asleep in front of this darn computer. :D
I'll report back in the next day or two when I get to it. And, for the record, my finger was always out ;) :up:
UKBusinessLive
02-17-2009, 05:06 AM
LOL....I'm still tryin' to catch up on mail, updates, etc....friggin' fallin' asleep in front of this darn computer. :D
I'll report back in the next day or two when I get to it. And, for the record, my finger was always out ;) :up:
Lol The amount of times i've done that mate ;)
In your own time Arny :up:
DobieGillis?
02-18-2009, 04:10 PM
the beer pics are not showing up. Is that because they are png files?
DobieGillis?
02-18-2009, 04:14 PM
also, I entered my paypal email address and I keep getting an error from Paypal saying that the supplied email address is incorrect. I know it's right, it's mine.
DobieGillis?
02-18-2009, 04:23 PM
got all working except now I cannot access Paypal with my correct Paypal email address.
UKBusinessLive
02-18-2009, 05:02 PM
got all working except now I cannot access Paypal with my correct Paypal email address.
What error are you getting, Post it here and lets see ;) It sounds like you havn't added the field atrribute to the code properly
DobieGillis?
02-18-2009, 05:05 PM
What error are you getting, Post it here and lets see ;) It sounds like you havn't added the field atrribute to the code properly
same error as the other guy a few posts ago
"We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com."
I have no Paypal donate system in place. The fields were correct.
DobieGillis?
02-18-2009, 05:08 PM
What error are you getting, Post it here and lets see ;) It sounds like you havn't added the field atrribute to the code properly
wait, i think I know. There's another fieldx i need to change, right?
all fixed! thanks!
UKBusinessLive
02-18-2009, 05:16 PM
wait, i think I know. There's another fieldx i need to change, right?
all fixed! thanks!
Nice one :D:D
Boy you get me worried sometimes :eek:
Don't forget to click installed ;)
DobieGillis?
02-18-2009, 05:38 PM
Nice one :D:D
Boy you get me worried sometimes :eek:
Don't forget to click installed ;)
Done! What is that little green bar above your beer?
UKBusinessLive
02-18-2009, 05:42 PM
Done! What is that little green bar above your beer?
You've been on the beer already :D:D Lol
Only Joking, If i think to what your refering to in my postbit, That is the green lights of the repuatations :up:
TimberFloorAu
02-18-2009, 05:45 PM
The little green bar is called : Murphys Inn
:D
UKBusinessLive
02-18-2009, 05:47 PM
The little green bar is called : Murphys Inn
:D
lol :D
https://vborg.vbsupport.ru/external/2009/06/34.gif
TimberFloorAu
02-19-2009, 07:25 PM
Slight update for this product, for the multiple choice selection version.
For those that have this installed:
goto admincp / user profile field manager
scroll down to Buy me a Drink ( this is the field with drink choices , such as beer wine etc )
click edit
in Set Default : change from
Yes ,but no first blank option
to
Yes, Including a First Blank Option.
___________________________________________
Done.
reason is, if a user, decides NOT to display their drink, for whatever reason, this blank option allows them to do this. They may have changed paypal address etc.
Good Luck Ste:up:
Hopefully Gerry can update instructions accordingly, for new installs.
cagbaazee
03-05-2009, 04:33 PM
Hi.. i ahve installas per disucss by u. But i cannot see "where is buy me the beer". please tell me where the buy me beer locate. Thanks
UKBusinessLive
03-05-2009, 05:51 PM
have you created the custom profile field ?? If you do not add your paypal email address in this field then the beer glass will not show ;)
cagbaazee
03-06-2009, 12:25 AM
Yes i hv add custom user field and add my paypal id but did not see it.
there is my code
<if condition="$post['field6']">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[fieldX]&item_name=Buy me a
Beer&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="Click to buy me a Beer">
<img alt="Buy me a Beer?" border="0" src="http://www.xxxxxxx.info/vbforum/images/misc/beer.png" border="0"/>
</if>
is it correct or not. Do reply asap. Thanks
UKBusinessLive
03-06-2009, 05:04 AM
Yes i hv add custom user field and add my paypal id but did not see it.
there is my code
is it correct or not. Do reply asap. Thanks
drop me a PM with a link to your site so i can take a look, may be quicker if you do me a temp admin and i'll install it for you ;)
Will take a look for you when i get back from work :up:
cagbaazee
03-06-2009, 09:42 AM
drop me a PM with a link to your site so i can take a look, may be quicker if you do me a temp admin and i'll install it for you ;)
Will take a look for you when i get back from work :up:
please check yr pm. Thanks. please do the needful.
I face 2 problem
1/. We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com.
2/. I acn see the buy me Beer link but no image
Do reply Thanks
UKBusinessLive
03-06-2009, 03:07 PM
please check yr pm. Thanks. please do the needful.
I face 2 problem
1/. We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com.
2/. I acn see the buy me Beer link but no image
Do reply Thanks
You have 2 problems
first you need to add the 2nd fieldX in the paypal code, because although you did the first one, you failed to add the second
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[fieldX]
The second problem being is that you can see the link (Red Cross) but no picture, this means that you have either not uploaded the image to the directory in your forum server or you havn't edited the url of the location in the code.
Also when you add the code to the postbit template make sure there are no gaps or extra lines in the code, The code you posted here was like this
<if condition="$post['field6']">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[fieldX]&item_name=Buy me a
Beer&amount=3%2e00&no_shipping=0&no_note=1&tax=0¤cy_code=GBP&lc=GB&bn=PP%2 dDonationsBF&charset=UTF%2d8" target="_blank"
rel="nofollow" title="Click to buy me a Beer">
<img alt="Buy me a Beer?" border="0" src="http://www.xxxxxxx.info/vbforum/images/misc/beer.png" border="0"/>
</if>
It should be like this
<if condition="$post['fieldX']">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$post[fieldX]&item_name=Buy me a Beer&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="Click to buy me a Beer">
<img alt="Buy me a Beer?" border="0" src="http://www.yourforum.com/images/misc/beer.png" border="0"/>
</if>
Hope that helps ;)
cagbaazee
03-06-2009, 03:50 PM
Yeah. It works. Thanks a lots for that. I need button for support moderators. Thanks once again.
UKBusinessLive
03-06-2009, 03:58 PM
Yeah. It works. Thanks a lots for that. I need button for support moderators. Thanks once again.
Super, what do you mean??
I need button for support moderators
:confused:
kahethu
03-14-2009, 10:43 PM
I have agonized about how to get this hack for months!
Beautiful work.
I seem to have a conditional error when I edit my postbit; I figure it must be my error.
I just sent you a PM.
Simon
UKBusinessLive
03-15-2009, 08:11 AM
I have agonized about how to get this hack for months!
Beautiful work.
I seem to have a conditional error when I edit my postbit; I figure it must be my error.
I just sent you a PM.
Simon
Hi Simon,
Just looked at your posbit template the conditional error was for an additional </IF> tag which was spare, I deleted that and alls well ;)
However, It seems that your Postbit has been heavily modified, i think as part of your style where i wouldnormally post the hack, just makes your postbit look like a right mess :confused:
I will however have another go and see if we can get it working for you :cool:
ac1d1dty
03-15-2009, 04:04 PM
Can I make this so someone clicks to buy someone a drink and can then choice the amount?
thanks
UKBusinessLive
03-15-2009, 04:48 PM
Can I make this so someone clicks to buy someone a drink and can then choice the amount?
thanks
The amount is set for ?3 or you can change it for $3, or whatever you want within the code. But for the end user to change the amount, they'll have to change it when it goes to the paypal payment page, It shows as a donation on paypal so they will be able to change the amount there.
The reason i did this at ?3 was because of the silly fees paypal charge, the end user would be left with Pennies if i'd set it at ?1
:eek:
UKBusinessLive
03-15-2009, 05:41 PM
The little green bar is called : Murphys Inn
:D
Happy St Patricks day to you Steve :D
Today i even put a Buy me a Beer hack on my main site :eek:
How desperate is that ???
https://vborg.vbsupport.ru/external/2009/03/18.png
You can never have too many beers bought for you :up:
ArnyVee
03-15-2009, 06:45 PM
Gerry, nice work! You can't have too many beers, right?
I haven't added this hack yet, but I will be in the near future :up:
I haven't looked back, but did you ever get the code for the PayPal to go to the site admin or one particular PayPal rather than paying each other?
UKBusinessLive
03-15-2009, 06:53 PM
Gerry, nice work! You can't have too many beers, right?
I haven't added this hack yet, but I will be in the near future :up:
I haven't looked back, but did you ever get the code for the PayPal to go to the site admin or one particular PayPal rather than paying each other?
Yes i did mate, Thats what i used for my main site
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=youremail@yourforum.com&item_name=Buy me a Beer&amount=5%2e00&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank" rel="nofollow" title="Click to buy me a Beer">
<img alt="Buy me a Beer?" border="0" src="http://i475.photobucket.com/your beer picture.gif" border="0"/>
Just change the red email to your sites email addy, and don't forget the url of your picture at the end ;)
ArnyVee
03-15-2009, 06:54 PM
Fantastic! I can always count on you to have the answers Gerry! :up:
UKBusinessLive
03-15-2009, 06:58 PM
Fantastic! I can always count on you to have the answers Gerry! :up:
No worries :D
Ranger375
03-16-2009, 10:50 AM
Is there any way to make it so the beer that is bought just appears on the user's profile, rather than on their post? If so, how would I do this? Thanks!
UKBusinessLive
03-16-2009, 05:38 PM
Is there any way to make it so the beer that is bought just appears on the user's profile, rather than on their post? If so, how would I do this? Thanks!
I guess you would add it in their profile template, but i'm not sure 100%, but won't that defeat the object???
if a member helps out and perhaps saves another member $$$$$$$$$$'s, Then surely it would pay to show the beer icon on the members postbit so they have max exposure :confused:
kahethu
03-18-2009, 04:50 PM
I've added mine but they cannot change the amount even at paypal (it's a donation). Any idea what I could be missing?
Simon
UKBusinessLive
03-18-2009, 05:32 PM
I've added mine but they cannot change the amount even at paypal (it's a donation). Any idea what I could be missing?
Simon
The amount is fixed At ?3 or $3 whatever currency your using. You can change the amount in the code by finding
amount=3
and changing it to what you want
The reason i did this like this is twofold, One to prevent people simply paying small amounts that paypal fee's will use most of it up and secondly to prevent accidental amounts and disputes afterwards, like you only wanted to pay ?10 not ?100 ;)
The fixed fee is known by all and if members want to pay more, Just Buy another Beer!!!
Glad you got it working in the end ;)
pnosko31
05-22-2009, 04:43 AM
here is my suggestion:
in the postbit maybe make it so it displays the number of beers purchased for them and the number of beers they purchased for others (similar to the way other mods like the thank you hack keeps count.)
So in their postbit/profile it would show:
Beers Recieved: 3
Beers Purchased: 2
and maybe have it send an pm to the person with a custom message or something when someone buys them a beer.
Vinyljunky
05-27-2009, 07:23 PM
Congrats on the Advisor status :up:
MrRem
01-06-2010, 10:48 AM
here is my suggestion:
in the postbit maybe make it so it displays the number of beers purchased for them and the number of beers they purchased for others (similar to the way other mods like the thank you hack keeps count.)
So in their postbit/profile it would show:
Beers Recieved: 3
Beers Purchased: 2
and maybe have it send an pm to the person with a custom message or something when someone buys them a beer.
That would be awesome.
Also, could someone put this in a product form? Would help out the newbies.
Noticed the color codes are ski-whiff in the original posts codes too.
Top mod and idea though
Installed :)
Frank Sinatra
01-06-2010, 10:19 PM
Thanks looks really nice
This mod can be used without payment system?
cagbaazee
01-16-2010, 05:03 AM
Will it works fr Vbulletin 4. Do reply please
Hammertime
03-10-2010, 03:28 PM
Will it works fr Vbulletin 4. Do reply please
Anyone know?
Hammertime
03-10-2010, 04:16 PM
Ok im getting the following message on 4.0.2 when I edit my postbit_legacy template.
"Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3332
vBulletin Message
The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish."
Any gurus know what needs changed?
Manoel J?nior
03-10-2010, 05:25 PM
kkkk LOL -.-
Great idea, hahaha
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.