Thread: End-User Options - UKBL ~ "Buy Me a Beer" Hack
View Single Post
  #66  
Old 02-13-2009, 08:19 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TandyServices View Post
Thanks We did too though lol.. Two of us on it for over an hour now
Try this James

you have the condition at the start which looks like this

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

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

Code:
</if>
Try that and let me know

Make it like this one below

Code:
<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
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01107 seconds
  • Memory Usage 1,777KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete