vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   PayPal Donations For vBulletin 3.5.0 (https://vborg.vbsupport.ru/showthread.php?t=91567)

Mikecp421 01-27-2006 08:17 PM

forget it I refreshed the ACP numerous times and nothing so I closed it and restarted it and voila, it was there.

Ryan McBain 01-28-2006 03:49 PM

I have a paypal donations link on my home page. I can I connect that to this hack so people get credit for their donations if they use the link on my main page. And when I say main page, I mean my page that is not vbulletin. anyone?

shadowdancer36 01-28-2006 06:48 PM

I'm getting the following error:

Database error in vBulletin 3.5.1:

Invalid SQL:
INSERT INTO pmc_donation_paypalipn (

What would cause this?

Also I don't seem to have any link or images that people can click on to donate money. Did I miss something during the install?

shadowdancer36 01-28-2006 06:50 PM

Quote:

Originally Posted by Ryan McBain
I'm a little lost. Where do I go to set my donation goals?


Where did you find this?

Trana 01-29-2006 05:52 AM

Miss,

I'm finally getting around to installing this on my production site, and remembered that you had a way of editing the install script so it doesn't delete the existing data. In your solution you said to edit the product xml file. I looked all over and cannot find an xml file for installing this system. Is it in the hack zip?

Thanks!

MissKalunji 01-29-2006 11:27 AM

Quote:

Originally Posted by Trana
Miss,

I'm finally getting around to installing this on my production site, and remembered that you had a way of editing the install script so it doesn't delete the existing data. In your solution you said to edit the product xml file. I looked all over and cannot find an xml file for installing this system. Is it in the hack zip?

Thanks!

yes its named : product-ppdonations.xml

delete
Code:

        <codes>
                <code version="2.0.2">
                        <installcode><![CDATA[$db->hide_errors();
$db->query_write("CREATE TABLE ".TABLE_PREFIX."donation_buttons (
        id int(255) NOT NULL auto_increment,
        goalid int(255) NOT NULL default '0',
        amount decimal(10,2) default NULL,
        item_name varchar(127) NOT NULL default '',
        cn varchar(40) NOT NULL default 'Additional Instructions',
        cpp_header_image varchar(255) default NULL,
        cpp_headerback_color varchar(255) default NULL,
        cpp_headerborder_color varchar(255) default NULL,
        cbt varchar(255) NOT NULL default 'Continue Transaction',
        active int(1) NOT NULL default '1',
        description text NOT NULL,
        PRIMARY KEY  (id)
        ) TYPE=MyISAM;
");
$db->query_write("CREATE TABLE ".TABLE_PREFIX."donation_currency_exchange (
        server varchar(255) NOT NULL default 'xe',
        base varchar(255) NOT NULL default 'USD',
        USD varchar(255) NOT NULL default '',
        AUD varchar(255) NOT NULL default '',
        CAD varchar(255) NOT NULL default '',
        EUR varchar(255) NOT NULL default '',
        GBP varchar(255) NOT NULL default '',
        JPY varchar(255) NOT NULL default ''
        ) TYPE=MyISAM
");
$db->query_write("INSERT INTO ".TABLE_PREFIX."donation_currency_exchange (`USD`, `AUD`, `CAD`, `EUR`, `GBP`, `JPY`) VALUES ('1', '1', '1', '1', '1', '1')");
$db->query_write("CREATE TABLE ".TABLE_PREFIX."donation_donors (
        id int(100) NOT NULL auto_increment,
        userid int(255) NOT NULL default '0',
        ip varchar(255) NOT NULL default '',
        total decimal(10,2) NOT NULL default '0.00',
        PRIMARY KEY (id)
        ) TYPE=MyISAM;
");
$db->query_write("CREATE TABLE ".TABLE_PREFIX."donation_goals (
        id int(255) NOT NULL auto_increment,
        title varchar(255) NOT NULL default '',
        description text NOT NULL,
        amount decimal(10,2) NOT NULL default '0.00',
        total_donated decimal(10,2) NOT NULL default '0.00',
        active tinyint(1) NOT NULL default '1',
        PRIMARY KEY (id)
        ) TYPE=MyISAM;
");
$db->query_write("CREATE TABLE ".TABLE_PREFIX."donation_paypalipn (
        txn_id varchar(255) NOT NULL default '',
        userid int(255) default NULL,
        test_ipn tinyint(1) default NULL,
        notify_version decimal(10,1) default NULL,
        verify_sign varchar(255) default NULL,
        first_name varchar(255) default NULL,
        last_name varchar(255) default NULL,
        payer_business_name varchar(255) default NULL,
        address_name varchar(255) default NULL,
        address_street varchar(255) default NULL,
        address_city varchar(255) default NULL,
        address_state varchar(255) default NULL,
        address_zip varchar(255) default NULL,
        address_country varchar(255) default NULL,
        address_status varchar(255) default NULL,
        payer_email varchar(255) default NULL,
        payer_id varchar(255) default NULL,
        payer_status varchar(255) default NULL,
        business varchar(255) default NULL,
        receiver_email varchar(255) default NULL,
        receiver_id varchar(255) default NULL,
        item_name varchar(255) default NULL,
        ip_address varchar(255) default NULL,
        quantity int(255) default NULL,
        invoice varchar(255) default NULL,
        memo varchar(255) default NULL,
        tax decimal(10,2) default NULL,
        option_name1 varchar(255) default NULL,
        option_selection1 varchar(255) default NULL,
        option_name2 varchar(255) default NULL,
        option_selection2 varchar(255) default NULL,
        payment_date varchar(255) default NULL,
        parent_txn_id varchar(255) default NULL,
        txn_type varchar(255) default NULL,
        payment_type varchar(255) default NULL,
        payment_status varchar(255) default NULL,
        pending_reason varchar(255) default NULL,
        reason_code varchar(255) default NULL,
        mc_gross decimal(10,2) default NULL,
        mc_fee decimal(10,2) default NULL,
        mc_currency char(3) default NULL,
        mc_handling decimal(10,2) default NULL,
        mc_shipping decimal(10,2) default NULL,
        settle_amount decimal(10,2) default NULL,
        settle_currency char(3) default NULL,
        exchange_rate decimal(10,4) default NULL,
        case_id varchar(255) default NULL,
        case_type varchar(255) default NULL,
        case_creation_date varchar(255) default NULL,
        valid tinyint(1) NOT NULL default '0',
        PRIMARY KEY  (txn_id)
        ) TYPE=MyISAM;
");
$db->query_write("ALTER TABLE ".TABLE_PREFIX."user ADD donor TINYINT(1) DEFAULT '0' NOT NULL");
$db->query_write("ALTER TABLE ".TABLE_PREFIX."user ADD showdonor TINYINT(1) DEFAULT '1' NOT NULL");
$db->query_write("INSERT INTO " . TABLE_PREFIX . "cron (`cronid`, `nextrun`, `weekday`, `day`, `hour`, `minute`, `filename`, `loglevel`, `title`) VALUES ('', '', '-1', '-1', '0', '15', './includes/cron/donation_currency_exchange.php', '1', 'Donations Currency Exchange Quotes')");
$db->show_errors();]]></installcode>

                </code>
        </codes>

erasing all that wont remove database and re create them....will only reinstall the templates or uninstall when you remove the xml

Trana 01-29-2006 07:32 PM

MissKalunji,

I checked the file that is listed here and it does not contain an xml installer. I am downloading straight from this site. Has the install package changed? The version is Paypal Donations 2.02.

Thanks!

linksysinfo 01-29-2006 11:35 PM

I have added this script to my site, i have a premier account however when i click on donate, there is no donate button to allow me to make any payments.

also there is no paypal column in admincp. i cannot see what is wrong i have followed the instructions to the full.

running vb 3.5.3 and vbadvanced v2.1.0 can anyone help?

linksysinfo 01-29-2006 11:53 PM

Fixed. edited cpnav_paypal_donations.xml to show:

<?xml version="1.0" encoding="ISO-8859-1"?><navgroups product="vbulletin">

then installed script.

MissKalunji 01-29-2006 11:54 PM

yep and add a goal and button for ppl to donate


All times are GMT. The time now is 06:48 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.02374 seconds
  • Memory Usage 1,768KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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