vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Paypal button per member (https://vborg.vbsupport.ru/showthread.php?t=136588)

t3nt3tion 01-15-2007 02:32 PM

Paypal button per member
 
I want someones help. I`ve added a profilefield in vB, where a user can add his paypal email.Now I want to display a Donate button in the users postbit ( doesn`t matter : legacy or new ), so if a browsing member goes on the forum, he can donate to that user. I`ve tried to use $post[fieldx], but when I click on the button, it doesn`t work. I think this is similar to vBulletins hack, for hack posting coders. I would need something like that, or at least this small thing. How can I use a value from a field ? Can forms be used in templates directly ?

Regards

RedTyger 01-15-2007 02:36 PM

Try using bbuserinfo instead of post. i.e.

Hello, my email address is $bbuserinfo['field1'].

t3nt3tion 01-15-2007 02:37 PM

Trying it now. One moment..

Nope. When I click the button it redirects me to :

You did not select any posts to which the action you picked can be applied.


I have vbSEO installed. Would that cause this. ?

Ok, the text is getting parsed, I can see the email in the source code, but it`s not redirecting me to paypal. :(

t3nt3tion 01-16-2007 04:22 PM

Anyone ?

t3nt3tion 01-18-2007 03:42 PM

How to use forms in templates ?

Staxed 01-18-2007 04:11 PM

can you show the code that you are currently using

t3nt3tion 01-18-2007 04:17 PM

<if condition="$post['field5']">

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="$bbuserinfo[field5]">
<input type="hidden" name="page_style" value="PayPal">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

</if>

I added that in the postbit template, so I can show a paypal donate button. My problem is that when I click the button it`s taking me to a page : inlinemod.php

If I look in the source code, I can see the field being change with my option, but it`s not redirecting me to the right page.

RedTyger 01-18-2007 04:47 PM

There's no opening tag for the form if that's the exact code you're using, so it's probably merging with the inlinemod form.

t3nt3tion 01-18-2007 05:26 PM

Sorry, I posted that before the td cell. Even if I add it, still doesn`t work.

RedTyger 01-18-2007 07:51 PM

So what's the full code, including the opening form tag?


All times are GMT. The time now is 12:54 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.01198 seconds
  • Memory Usage 1,723KB
  • 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
  • (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