The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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 |
#2
|
||||
|
||||
![]()
Try using bbuserinfo instead of post. i.e.
Hello, my email address is $bbuserinfo['field1']. |
#3
|
||||
|
||||
![]()
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. ![]() |
#4
|
||||
|
||||
![]()
Anyone ?
|
#5
|
||||
|
||||
![]()
How to use forms in templates ?
|
#6
|
||||
|
||||
![]()
can you show the code that you are currently using
|
#7
|
||||
|
||||
![]()
<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. |
#8
|
||||
|
||||
![]()
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.
|
#9
|
||||
|
||||
![]()
Sorry, I posted that before the td cell. Even if I add it, still doesn`t work.
|
#10
|
||||
|
||||
![]()
So what's the full code, including the opening form tag?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|