vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - PayPal Easy Donate - vB 3.6 (https://vborg.vbsupport.ru/showthread.php?t=123181)

Drix 05-28-2007 05:35 PM

Quote:

Originally Posted by tommykjensen (Post 1256078)
I just upgraded to the latest version. But now the paypal image appears here

Attachment 64812


instead of at the top.

Attachment 64813

Yeah, i noticed that as well. Looks weird, so i changed it to navbar..

Billspaintball 05-28-2007 08:38 PM

Quote:

Originally Posted by tommykjensen (Post 1256172)
Ok. Think I will use the navbar link option instead then. The button look out of place there.


What is that hook called? Can you also tell me what to look for in the XML file so I can see how to do this because I think I want to use that for my simple global announcement hack as that position is exactly where I want it.

The hook location is called
Code:

$template_hook[navbar_buttons_left]
Its all done by this plugin

PHP Code:

        <plugin active="1" executionorder="5">
            <
title>Bills Paypal Insert Link</title>
            <
hookname>global_start</hookname>
            <
phpcode><![CDATA[
            if (
$vbulletin->options['billspp_displaylink'] == "0" )
            {eval(
'$template_hook[navbar_buttons_left] .= "' fetch_template('billspp_navinsert') . '";');}
            if (
$vbulletin->options['billspp_displaylink'] == "1" )
            {eval(
'$template_hook[navbar_buttons_left] .= "' fetch_template('billspp_buttoninsert') . '";');}
    ]]></
phpcode>
        </
plugin


txsbmw 05-29-2007 12:05 AM

Is there anyway to add a comments field to this that will get processed. For example on the donation page have a comments field in the form where the user can type why they are donating or leave comments etc.. that will get processed with the payment, so when we receive the payment via paypal and the e-mail they send out it shows the comments on why they are giving the donation, etc... should they choose to leave any?

Hope I made sense, lol.

Billspaintball 05-29-2007 02:18 AM

Quote:

Originally Posted by txsbmw (Post 1256541)
Is there anyway to add a comments field to this that will get processed. For example on the donation page have a comments field in the form where the user can type why they are donating or leave comments etc.. that will get processed with the payment, so when we receive the payment via paypal and the e-mail they send out it shows the comments on why they are giving the donation, etc... should they choose to leave any?

Hope I made sense, lol.

Yes that makes sense :)

Its not a hard thing to do, just another field in the submit form really.
Its a good idea and I will make it a CP option in the next update.

DementedMindz 05-29-2007 02:39 AM

Quote:

Originally Posted by txsbmw (Post 1256541)
Is there anyway to add a comments field to this that will get processed. For example on the donation page have a comments field in the form where the user can type why they are donating or leave comments etc.. that will get processed with the payment, so when we receive the payment via paypal and the e-mail they send out it shows the comments on why they are giving the donation, etc... should they choose to leave any?

Hope I made sense, lol.

Quote:

Originally Posted by Billspaintball (Post 1256595)
Yes that makes sense :)

Its not a hard thing to do, just another field in the submit form really.
Its a good idea and I will make it a CP option in the next update.

yeah Ill stick with my old version or hopefully you can shut it off in admincp cause that ain't needed since it can be done when they send the donation via paypal. my thoughts would be why waste time coding that when other more important things can be added donation goals, who donated, etc.

tommykjensen 05-29-2007 04:03 AM

Quote:

Originally Posted by Billspaintball (Post 1256455)
The hook location is called
Code:

$template_hook[navbar_buttons_left]
Its all done by this plugin

PHP Code:

        <plugin active="1" executionorder="5">
            <
title>Bills Paypal Insert Link</title>
            <
hookname>global_start</hookname>
            <
phpcode><![CDATA[
            if (
$vbulletin->options['billspp_displaylink'] == "0" )
            {eval(
'$template_hook[navbar_buttons_left] .= "' fetch_template('billspp_navinsert') . '";');}
            if (
$vbulletin->options['billspp_displaylink'] == "1" )
            {eval(
'$template_hook[navbar_buttons_left] .= "' fetch_template('billspp_buttoninsert') . '";');}
    ]]></
phpcode>
        </
plugin



Thanks.

txsbmw 05-29-2007 09:42 AM

Quote:

Originally Posted by Billspaintball (Post 1256595)
Yes that makes sense :)

Its not a hard thing to do, just another field in the submit form really.
Its a good idea and I will make it a CP option in the next update.

I didn't think it was, but I cannot get it to work. I went to paypal and did generate button so I could compare the HTML code given. Found
Code:

<input type="hidden" name="cn" value="Comments">
and added it to the template. Changed it to a none hidden field, but when I filled it in and clicked donate it didn't show up on paypal (where it shows what you donated and asks you to log in or choose a payment option). Obviously I could not go past that step because you cannot pay yourself :D And it has been so long since I have created a paypal form to use on a website that my mind is going blank when it comes to this, lol.

So any ideas on how to get it to work until you can release your next version? Thanks in advance!

Billspaintball 05-29-2007 10:33 AM

Quote:

Originally Posted by txsbmw (Post 1256766)
I didn't think it was, but I cannot get it to work. I went to paypal and did generate button so I could compare the HTML code given. Found
Code:

<input type="hidden" name="cn" value="Comments">
and added it to the template. Changed it to a none hidden field, but when I filled it in and clicked donate it didn't show up on paypal (where it shows what you donated and asks you to log in or choose a payment option). Obviously I could not go past that step because you cannot pay yourself :D And it has been so long since I have created a paypal form to use on a website that my mind is going blank when it comes to this, lol.

So any ideas on how to get it to work until you can release your next version? Thanks in advance!

I think it would be best to use the PayPal 'memo' variable.

Something lke

<input type="textarea" name="memo" rows="5" cols="40" value="" />

Riccardo83 05-29-2007 08:05 PM

hi guys, one question. my paypal donation link redirects to the german paypal. my account is in germany, but shouldnt it be possible to have the english interface running because most of my visitors are english speaking?

http://alizee-forum.com/billspaypal.php?

Billspaintball 05-29-2007 11:30 PM

Quote:

Originally Posted by Riccardo83 (Post 1257101)
my account is in germany, but shouldnt it be possible to have the english interface running because most of my visitors are english speaking?

http://alizee-forum.com/billspaypal.php?

Im not sure If PayPal allow you to change your language when you register to a specific country or not.
A Way around it may be to set up another PayPal account under PayPal UK, or just PayPal.com and select Euro as your default currency there.


All times are GMT. The time now is 11:13 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.01551 seconds
  • Memory Usage 1,773KB
  • 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
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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