Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2009, 03:37 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Buy Me A Beer Mod?

Before I came over to Vbulletin I used to run a "Snitz" forum. Although they are not as updated as Vbulletin is, they have some pretty cool mods, one is "Buy Me a Beer" mod. After Googling that mod, I can find that several other forums have this particular mod as well. That is, all except for VBulletin. I was wondering if anyone knew of a Vbulletin "Buy Me A Beer" mod or would be willing to create one. I myself have absolutely no PHP coding experience and have tried but I can't quite create the mod.

Anyways, I was just hoping someone would want to take this one on. It seems that there are quite a few Vbulletin forum admins that would like to see this mod.
Reply With Quote
  #2  
Old 01-02-2009, 04:01 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been looking for something like this also, not sure if anything can be adapted for Vbulletin. I've uploaded 2 zips of the above mod one for SMF and another which was for Wordpress, can anyone have a look see if they can adapt it for VBulletin.

Would make a great mod to get members to join

And i'll be able to buy you a beer
Attached Files
File Type: zip buy-me-beer_14.zip (18.4 KB, 9 views)
File Type: zip buy-me-beer_14.zip.zip (18.5 KB, 6 views)
Reply With Quote
  #3  
Old 01-03-2009, 02:18 AM
CodingMonkey CodingMonkey is offline
 
Join Date: Sep 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you please explain how the "Buy Me A Beer" mod works? I don't feel like googling it right now .. but probably can code it. Let me know.
Reply With Quote
  #4  
Old 01-03-2009, 02:54 AM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds kinda cool hahah

Quote:
Introduction
Allows users to reward other users for their posts by buying them a beer (or at least donating enough money via Paypal to buy one).

Where the user has entered their paypal address, A 'beer glass' icon appear in the poster information area of users posts. The alt text when hovering over the icon states 'Buy Me A Beer Through Paypal' [must be logged in to see] and when clicked takes the user to the paypal page.
Reply With Quote
  #5  
Old 01-03-2009, 05:19 AM
CodingMonkey CodingMonkey is offline
 
Join Date: Sep 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't sound too hard..
So basically it's donating money to other users with a paypal entered in their user profile field?
Seems it would be something like this ...
HTML Code:
<if condition="$post[fieldX] 
                      && $post[userid] != $bbuserinfo[userid] 
                      && $show['member']">
<a href="$paypal_addr_with_email"><img 
      src="/path/to/beer.gif" border="0" alt='Buy me a beer through PayPal' 
      /></a>
</if>
That's the main code right there.. just have to have a profile field for it.
Reply With Quote
  #6  
Old 01-03-2009, 06:37 AM
Taragon's Avatar
Taragon Taragon is offline
 
Join Date: Sep 2007
Location: The Netherlands
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very interesting. Thank you
Reply With Quote
  #7  
Old 01-03-2009, 07:29 AM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CodingMonkey View Post
Doesn't sound too hard..
So basically it's donating money to other users with a paypal entered in their user profile field?
Seems it would be something like this ...
HTML Code:
<if condition="$post[fieldX] 
                      && $post[userid] != $bbuserinfo[userid] 
                      && $show['member']">
<a href="$paypal_addr_with_email"><img 
      src="/path/to/beer.gif" border="0" alt='Buy me a beer through PayPal' 
      /></a>
</if>
That's the main code right there.. just have to have a profile field for it.
Thats super CodingMonkey, i don't suppose you want to release this as a mod???

i've uploaded the beer.gif and coffee.gif (for those that don't drink ) for their postbit

*I'll buy you a beer
Reply With Quote
  #8  
Old 01-03-2009, 01:08 PM
Rene Kriest Rene Kriest is offline
 
Join Date: Jun 2008
Location: Germany ./. Reality
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

CodingMonkey, you really underestimate the importance and consequences of such a simple and maybe trivial addon. It was such a large hit in the blogging scene. Love it or hate it, but this is really the next big thing people are keen on.

I bet one beer that this addon would make you MotM in no time - at least.
Reply With Quote
  #9  
Old 01-03-2009, 01:30 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool. Thanks guys. Can't wait to implement this. I have been looking for this in Vbulletin for a VERY LONG TIME! Thanks again. UKBusinessLive: I am also uploading to my site a "Root Beer" because we have users that don't drink.
Reply With Quote
  #10  
Old 01-03-2009, 01:55 PM
CodingMonkey CodingMonkey is offline
 
Join Date: Sep 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll install it on Wordpress and see what I can make of it. (Or snitz for that matter)
I'm sure it's not that hard. Not even vBulletin challenges me with all it's classes and such.. =)

UKBusinessLive: I'd be happy to release it as a mod. Have nothing else to code besides a forum software (about 5% complete cause I'm lazy luls.)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:16 AM.


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.07071 seconds
  • Memory Usage 2,279KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete