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)

DementedMindz 09-23-2006 09:09 AM

glad it worked I wasnt sure if thats the one you ment. your arcade you need to do that in your navbar too

corsacant 09-23-2006 10:00 AM

I've had a quick tinker of the navbar now.

DementedMindz 09-23-2006 10:01 AM

lol yeah you have to do that but you can also add them files in your vbadvanced settings Header Replacements,Navbar Replacements

silurius 09-25-2006 06:17 PM

Hi Bill. Great hack, clicked Install. Seems to be working just fine for my needs.

One suggestion: would it be feasible to add a feature so that this tool collects userid's who have landed back at /forum/billspaypal_donated.php?

Alternatively, does anyone here know how I might turn on some kind of reporting feature for a PayPal Premiere or Business account? I've taken payments for auctions and the like before, but I need to expose my donations to the site owner so as to continue to maintain trust etc.

DementedMindz 09-25-2006 08:00 PM

there will be a new features like that in the future right now bill just had a kid and hes with family so as soon as he has time im sure it will be out.

silurius 09-25-2006 08:27 PM

Quote:

Originally Posted by DementedMindz
there will be a new features like that in the future right now bill just had a kid and hes with family so as soon as he has time im sure it will be out.

Totally understood! No pressure.

Would appreciate any feedback or insight on the second question (PayPal reporting or the like) if anyone has any.

My use case is: I don't own the site, but I do all administration and most moderation. In order to make the site owner feel better I need to keep things as transparent as possible, and with a minimal amount of extra work to make it so.

Kopland 09-26-2006 01:58 AM

I wanted to be able to display this as a block on my vbPortal front page, so I took some of the code from the billspaypal.php file and did the following.
  1. In the vbPortal Control Panel, expand the "Block Layouts" tab and click on "Default Side Blocks".
  2. Click on the "Add New Block" button, choose PHP block type. I put in "Online Donation" for my Block Title, "Right" for my Default Column, and "Yes" for Templates.
  3. Add the following code to the Content box:
    PHP Code:

    $DonationMsg="Thank you for donating.  Every little bit helps to maintain the site and its upkeep costs.";
    $navbits construct_navbits(array('' => 'Donations'));
    $country $vbulletin->options['billspp_currency'];
    $email $vbulletin->options['billspp_email'];
    $payfor $vbulletin->options['billspp_payfor']." From: "$vbulletin->userinfo['username'];
    $buttontype $vbulletin->options['billspp_showverify'];

    if (
    $country == "0") {$currency "AUD"$currencylong "Australian Dollars"$cursym "$";}
    if (
    $country == "1") {$currency "CAD"$currencylong "Canadian Dollars"$cursym "$";}
    if (
    $country == "2") {$currency "EUR"$currencylong "Euro"$cursym "€";}
    if (
    $country == "3") {$currency "GBP"$currencylong "Pounds Sterling"$cursym "?";}
    if (
    $country == "4") {$currency "JPY"$currencylong "Japanese Yen"$cursym "?";}
    if (
    $country == "5") {$currency "USD"$currencylong "U.S. Dollars"$cursym "$";}

    if (
    $buttontype == "2") {$buttontype "$stylevar[imgdir_misc]/paypal_verified_donate.gif";}
    else {
    $buttontype "$stylevar[imgdir_misc]/paypal_donate.gif";}


    echo 
    $DonationMsg;

    echo 
    "<br /><br />
    <form action=\"https://www.paypal.com/cgi-bin/webscr\" target=\"_blank\" method=\"post\">
        <div align=\"left\">
        <strong>Currency</strong>: 
    $currency - $currencylong<br /><br />
        <strong>Amount</strong>: 
    $cursym
        <input type=\"text\" name=\"amount\" size=\"6\" value=\"
    $vboptions[billspp_defaultamount]\" />
        <input type=\"hidden\" name=\"cmd\" value=\"_xclick\" />
        <input type=\"hidden\" name=\"business\" value=\"
    $email\" />
        <input type=\"hidden\" name=\"item_name\" value=\"
    $payfor\" />
        <input type=\"hidden\" name=\"no_note\" value=\"1\" />
        <input type=\"hidden\" name=\"currency_code\" value=\"
    $currency\" />
        <input type=\"hidden\" name=\"tax\" value=\"0\" />
        <input type=\"hidden\" name=\"return\" value=\"
    $vboptions[bburl]/billspaypal_donated.php\" />
       </div>
        <br />
      <div align=\"left\">
       <span class=\"smallfont\">Please enter your donation amount above, then click on the Donate button below.</span></div>
        <br />
       <div align=\"center\"><input type=\"image\" src=\"
    $buttontype\" alt=\"Give Securely With Any Major Credit Card Through PayPal!\" title=\"Give Securely With Any Major Credit Card Through PayPal!\" />
        <br />
        <br />
      </div>
     </form>
    "


  4. Click Save

Voil?! The block has been created! Now all you have to do is insert the block into your desired module and your Donations block should show up beautifully! I'm pretty new at this, so I don't know if all the code that is in there is required, but that worked for me. You can see it at www.kopland.net (new site, not sure what I'll do with it yet, lol)

Billspaintball, if I need to add anything to the top to help give credit to you, just lemme know what I need to add and I'll make sure to do it. :)

morrow 10-01-2006 10:19 PM

I imported the vbAdvanced module but it still doesn't show up. Any ideas?

DementedMindz 10-01-2006 10:32 PM

Is it turned on?

smoknz28 10-01-2006 10:57 PM

Anyone got this working under vB 3.6.1 yet?

Thanks


All times are GMT. The time now is 03:45 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.01316 seconds
  • Memory Usage 1,763KB
  • 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)bbcode_php_printable
  • (1)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