vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   End-User Options - UKBL ~ "Buy Me a Beer" Hack (https://vborg.vbsupport.ru/showthread.php?t=205166)

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

Quote:

Originally Posted by kahethu (Post 1768301)
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

Quote:

Originally Posted by ac1d1dty (Post 1768838)
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

Quote:

Originally Posted by TimberFloorAu (Post 1748231)
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

Quote:

Originally Posted by ArnyVee (Post 1768979)
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

Code:

<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 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

Quote:

Originally Posted by ArnyVee (Post 1768990)
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

Quote:

Originally Posted by Ranger375 (Post 1769530)
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

Quote:

Originally Posted by kahethu (Post 1771258)
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

Code:

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

Quote:

Originally Posted by pnosko31 (Post 1815033)
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

Quote:

Originally Posted by cagbaazee (Post 1957136)
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


All times are GMT. The time now is 01:33 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01259 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete