vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Buy Me A Beer Mod? (https://vborg.vbsupport.ru/showthread.php?t=200433)

Reycer 01-02-2009 03:37 PM

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.

UKBusinessLive 01-02-2009 04:01 PM

1 Attachment(s)
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:cool:

And i'll be able to buy you a beer ;)

CodingMonkey 01-03-2009 02:18 AM

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.

KevinL 01-03-2009 02:54 AM

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.

CodingMonkey 01-03-2009 05:19 AM

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. :p

Taragon 01-03-2009 06:37 AM

Very interesting. Thank you :)

UKBusinessLive 01-03-2009 07:29 AM

1 Attachment(s)
Quote:

Originally Posted by CodingMonkey (Post 1700047)
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. :p

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

Rene Kriest 01-03-2009 01:08 PM

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. :)

Reycer 01-03-2009 01:30 PM

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.

CodingMonkey 01-03-2009 01:55 PM

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


All times are GMT. The time now is 05:24 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.02000 seconds
  • Memory Usage 1,739KB
  • 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_html_printable
  • (2)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
  • (10)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