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)

TimberFloorAu 02-12-2009 09:56 PM

Notes:

rename your image url to coincide with image uploaded:

thus
Code:

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

Quote:

Originally Posted by TimberFloorAu (Post 1742308)
Notes:

rename your image url to coincide with image uploaded:

thus
Code:

<!--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 02-12-2009 10:07 PM

Quote:

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

1 Attachment(s)
Quote:

Originally Posted by UKBusinessLive (Post 1742311)
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

Quote:

Originally Posted by UKBusinessLive (Post 1742318)
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/notic...y-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

Quote:

Originally Posted by TimberFloorAu (Post 1742326)
Question has already been asked in this thread.

http://www.yobromofo.com/forum/notic...y-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

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

Code:

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


All times are GMT. The time now is 02:07 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.01571 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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