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)

UKBusinessLive 02-13-2009 08:01 PM

Quote:

Originally Posted by TandyServices (Post 1743210)
Yea we tried that too.. Didn't work either though... Any other suggestions? Thanks for the fast reply :)

Are you installing the Multichoice add on??? Have you already added the first one (Buy me a Beer) ? for it to work in multichoice you need to install both zip files ;)

TandyServices 02-13-2009 08:05 PM

Yes we did that. The first one worked perfect, but when we added the multiple choice the images didnt show anymore. We went through all your directions twice and everything is as it should be...

UKBusinessLive 02-13-2009 08:06 PM

Quote:

Originally Posted by TandyServices (Post 1743219)
Yes we did that. The first one worked perfect, but when we added the multiple choice the images didnt show anymore. We went through all your directions twice and everything is as it should be...

bear with me i'll check the code :confused:

TandyServices 02-13-2009 08:08 PM

Thanks :) We did too though lol.. Two of us on it for over an hour now :p
Should it be of any help, this is the full part of what we had.. maybe we overlooked something.


Code:


<if condition="is_member_of($bbuserinfo, 2, 5, 6, 7, 9, 10, 11, 13)">
<if condition="$post['field31']">
<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]" border="0"/>
</if></if>


UKBusinessLive 02-13-2009 08:19 PM

Quote:

Originally Posted by TandyServices (Post 1743222)
Thanks :) We did too though lol.. Two of us on it for over an hour now :p

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

TandyServices 02-13-2009 08:32 PM

Quote:

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

Thanks but didn't work... Still have red x's. :confused:

UKBusinessLive 02-13-2009 08:34 PM

type me out an url to one of your images, if it works it will show me the image ;)

Reycer 02-13-2009 10:33 PM

UK LIVE: Any thoughts on my problem?

UKBusinessLive 02-14-2009 12:27 AM

Quote:

Originally Posted by mdelcour (Post 1743317)
UK LIVE: Any thoughts on my problem?

Its important to make su
rte that the urls of your images are valid ;) I'm still looking at his problem

Jeff G 02-14-2009 02:35 AM

very cool mod!! Installed nice & easy, might have to install the multi one :)


All times are GMT. The time now is 10:49 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.01099 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
  • (9)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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