PDA

View Full Version : End-User Options - UKBL ~ "Buy Me a Beer" Hack


UKBusinessLive
12 Feb 2009, 19:10
UKBL ~ "Buy Me a Beer" Hack v1.5

https://www.vbulletin.org/forum/external/2009/02/79.pnghttps://www.vbulletin.org/forum/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://www.vbulletin.org/forum/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://www.vbulletin.org/forum/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&currency_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&currency_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://www.vbulletin.org/forum/external/2009/02/83.png

Easy

Hope you enjoy this, Please don't forget to click install if you use:D


https://www.vbulletin.org/forum/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://www.vbulletin.org/forum/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://www.vbulletin.org/forum/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&currency_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
12 Feb 2009, 19:12
:) Reserved :cool:

jlew24asu
12 Feb 2009, 19:50
haha nice!

FiMeTi
12 Feb 2009, 19:54
lol this is really fresh!! Will take a closer look on it this week-end. Thx :=)

UKBusinessLive
12 Feb 2009, 19:56
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
12 Feb 2009, 19:57
lol this is really fresh!! Will take a closer look on it this week-end. Thx :=)

Get Fresh at the weekend ?? :p

UKBusinessLive
12 Feb 2009, 21:51
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
12 Feb 2009, 22:31
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
12 Feb 2009, 22:34
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://www.vbulletin.org/forum/external/2009/02/78.png

:D

Instead of going down the Pub and spending all your money you could buy everyone a beer :)

KevinL
12 Feb 2009, 22:46
LOL!!!

This is great!! You're getting good at this!

Thank you :)

TimberFloorAu
12 Feb 2009, 22:56
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&currency_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
12 Feb 2009, 22:57
hahah lol at Fosters, we export that for the Poms to drink ;)

We drink VB

TimberFloorAu
12 Feb 2009, 23:00
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
12 Feb 2009, 23:01
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&currency_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
12 Feb 2009, 23:07
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
12 Feb 2009, 23:07
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
12 Feb 2009, 23:09
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
12 Feb 2009, 23:13
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
12 Feb 2009, 23:19
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
12 Feb 2009, 23:28
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
13 Feb 2009, 00:05
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
13 Feb 2009, 00:17
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
13 Feb 2009, 00:18
HOT DANG! I've been waiting on this for MONTHS NOW! THANK YOU SOOOOOOO MUCH!

TimberFloorAu
13 Feb 2009, 00:20
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
13 Feb 2009, 00:22
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
13 Feb 2009, 00:22
HOT DANG! I've been waiting on this for MONTHS NOW! THANK YOU SOOOOOOO MUCH!

I knew you'd be happy :D

ArnyVee
13 Feb 2009, 00:42
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
13 Feb 2009, 01:01
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
13 Feb 2009, 01:22
Steve, great point. I can't wait until the "options" upgrade has been figured out to jump all over this one :)

dvbusuario
13 Feb 2009, 04:20
Mexican Beer xD

http://img16.imageshack.us/img16/6376/imgsmlaf313515233681ux2.jpg

Install!

Thank You!

TimberFloorAu
13 Feb 2009, 05:30
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
13 Feb 2009, 05:35
Previous post are GIF

Below are the PNG

saved as png 8

edited to add : My new Postbit

UKBusinessLive
13 Feb 2009, 06:03
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
13 Feb 2009, 07:04
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
13 Feb 2009, 07:26
thanks a lot

TimberFloorAu
13 Feb 2009, 07:27
OK ! Found time to do a few more ;)

Enjoy :)

Includes all the drinks and a coupole not shown here and the psd

TimberFloorAu
13 Feb 2009, 07:50
Last for the night for me.

TimberFloorAu
13 Feb 2009, 08:14
Due to a request heres the SUPPORT MY COLLEGE FUND

UKBusinessLive
13 Feb 2009, 13:11
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://www.vbulletin.org/forum/external/2009/02/77.jpg

You need to install the first "Buy me a beer" hack before you can install the Multichoice ;)

TimberFloorAu
13 Feb 2009, 13:31
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://www.vbulletin.org/forum/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
13 Feb 2009, 13:57
Silly question. When they buy the item who are they paying?
The message board owner. Just curious. I am slow...lol

TimberFloorAu
13 Feb 2009, 14:04
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
13 Feb 2009, 14:09
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
13 Feb 2009, 14:16
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
13 Feb 2009, 14:26
I checked them again, they are right. I am using Field 5.

scottct1
13 Feb 2009, 17:06
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
13 Feb 2009, 17:08
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
13 Feb 2009, 17:34
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
13 Feb 2009, 17:51
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
13 Feb 2009, 17:54
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
13 Feb 2009, 18:07
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
13 Feb 2009, 18:15
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
13 Feb 2009, 18:21
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
13 Feb 2009, 18:31
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&currency_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://www.vbulletin.org/forum/external/2009/02/64.png

R-D
13 Feb 2009, 18:41
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
13 Feb 2009, 18:43
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
13 Feb 2009, 19:57
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
13 Feb 2009, 20:18
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
13 Feb 2009, 20:54
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
13 Feb 2009, 20:58
Yea we tried that too.. Didn't work either though... Any other suggestions? Thanks for the fast reply :)

UKBusinessLive
13 Feb 2009, 21:01
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
13 Feb 2009, 21:05
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
13 Feb 2009, 21:06
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
13 Feb 2009, 21:08
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&currency_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
13 Feb 2009, 21:19
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&currency_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
13 Feb 2009, 21:32
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&currency_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
13 Feb 2009, 21:34
type me out an url to one of your images, if it works it will show me the image ;)

Reycer
13 Feb 2009, 23:33
UK LIVE: Any thoughts on my problem?

UKBusinessLive
14 Feb 2009, 01:27
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
14 Feb 2009, 03:35
very cool mod!! Installed nice & easy, might have to install the multi one :)

TimberFloorAu
14 Feb 2009, 04:23
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
14 Feb 2009, 05:03
No cannot get this working neither. ( on multi choice )

Weird one.

Will look at the code.

Ste

UKBusinessLive
14 Feb 2009, 06:26
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
14 Feb 2009, 06:51
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
14 Feb 2009, 07:07
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&currency_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
14 Feb 2009, 07:11
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&currency_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
14 Feb 2009, 13:47
Thanks for that Steve, i've updated the first post and added the zip files again ;)

Multichoice is back on the menu ;) :D

Reycer
14 Feb 2009, 14:16
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
14 Feb 2009, 14:22
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&currency_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
14 Feb 2009, 15:41
<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&currency_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&currency_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&currency_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&currency_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
14 Feb 2009, 16:16
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://www.vbulletin.org/forum/external/2009/02/22.gif

https://www.vbulletin.org/forum/external/2009/02/76.png

http://www.lacledeforum.com/forums/showthread.php?p=1607#post1607

have fun :D

GSeybold
14 Feb 2009, 17:11
This is too cool! Thanks so much for this .:)

Gabby

UKBusinessLive
14 Feb 2009, 17:18
This is too cool! Thanks so much for this .:)

Gabby


Thanks Gabby,

Let me know if you need a hand to install ;)

Gerry

Reycer
14 Feb 2009, 17:25
thanks Gene. What was I doing wrong?

UKBusinessLive
14 Feb 2009, 17:26
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
14 Feb 2009, 18:43
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
14 Feb 2009, 19:33
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
14 Feb 2009, 19:38
: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
14 Feb 2009, 19:40
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
14 Feb 2009, 21:33
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
14 Feb 2009, 21:44
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
14 Feb 2009, 22:53
Cheers Mate :)

Reycer
14 Feb 2009, 23:05
sorry. I have no idea where Gene came from.... lol

Thanks for the help though.

UKBusinessLive
15 Feb 2009, 01:14
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
16 Feb 2009, 23:17
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
16 Feb 2009, 23:20
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&currency_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://www.vbulletin.org/forum/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
16 Feb 2009, 23:39
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
17 Feb 2009, 01:34
Pull your finger out, and get it working ;)

Ha Ha lol :D:D

ArnyVee
17 Feb 2009, 02:15
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
17 Feb 2009, 06:06
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©
18 Feb 2009, 17:10
the beer pics are not showing up. Is that because they are png files?

DobieGillis©
18 Feb 2009, 17:14
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©
18 Feb 2009, 17:23
got all working except now I cannot access Paypal with my correct Paypal email address.

UKBusinessLive
18 Feb 2009, 18:02
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©
18 Feb 2009, 18:05
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©
18 Feb 2009, 18:08
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
18 Feb 2009, 18:16
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©
18 Feb 2009, 18:38
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
18 Feb 2009, 18:42
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
18 Feb 2009, 18:45
The little green bar is called : Murphys Inn


:D

UKBusinessLive
18 Feb 2009, 18:47
The little green bar is called : Murphys Inn


:D

lol :D


https://www.vbulletin.org/forum/external/2009/06/34.gif

TimberFloorAu
19 Feb 2009, 20:25
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
05 Mar 2009, 17:33
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
05 Mar 2009, 18:51
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
06 Mar 2009, 01:25
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&currency_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
06 Mar 2009, 06:04
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
06 Mar 2009, 10:42
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
06 Mar 2009, 16:07
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&currency_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&currency_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
06 Mar 2009, 16:50
Yeah. It works. Thanks a lots for that. I need button for support moderators. Thanks once again.

UKBusinessLive
06 Mar 2009, 16:58
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
14 Mar 2009, 23:43
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
15 Mar 2009, 09:11
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
15 Mar 2009, 17:04
Can I make this so someone clicks to buy someone a drink and can then choice the amount?

thanks

UKBusinessLive
15 Mar 2009, 17:48
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
15 Mar 2009, 18:41
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://www.vbulletin.org/forum/external/2009/03/18.png

You can never have too many beers bought for you :up:

ArnyVee
15 Mar 2009, 19:45
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
15 Mar 2009, 19:53
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&currency_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
15 Mar 2009, 19:54
Fantastic! I can always count on you to have the answers Gerry! :up:

UKBusinessLive
15 Mar 2009, 19:58
Fantastic! I can always count on you to have the answers Gerry! :up:

No worries :D

Ranger375
16 Mar 2009, 11:50
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
16 Mar 2009, 18:38
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
18 Mar 2009, 17:50
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
18 Mar 2009, 18:32
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
22 May 2009, 05:43
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
27 May 2009, 20:23
Congrats on the Advisor status :up:

MrRem
06 Jan 2010, 11:48
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
06 Jan 2010, 23:19
Thanks looks really nice
This mod can be used without payment system?

cagbaazee
16 Jan 2010, 06:03
Will it works fr Vbulletin 4. Do reply please

Hammertime
10 Mar 2010, 16:28
Will it works fr Vbulletin 4. Do reply please

Anyone know?

Hammertime
10 Mar 2010, 17:16
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
10 Mar 2010, 18:25
kkkk LOL -.-

Great idea, hahaha