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)

Trana 12-04-2006 10:37 PM

Quote:

Originally Posted by puregraf (Post 1132030)
i already did this

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

and this

In your admincp, there are two options:

Set donations to test only? (set to no)
Donations System Active? (set to yes)

This script doesn't install the button for you. You need to link to it by modifying your navbar template via admincp.

puregraf 12-04-2006 10:42 PM

yes i understand, but here http://www.puregraffiti.com/graffiti-space/donate.php

there is no donate button inside the donate page, where do they click to donate then?

thank you

Trana 12-04-2006 10:47 PM

In your admincp\paypal donations you need to create a button.

puregraf 12-04-2006 10:52 PM

nevermind, i found a whole new section for this, i didnt see it before.

sorry to waste your time, thank you

sinisterpain 12-04-2006 11:01 PM

You should have a paypal Donation button on the right side in the admin cp. Where you can add a goal, add a button, add a donor etc. if you do not have this then you did not upload all the PHP files. There should be a donation_admin.php file in your forum/admincp folder on your webserver.
Just looked at your page got your button I see

puregraf 12-04-2006 11:34 PM

yes i did, thank you, i had not seen the link on the side bar at all, i didnt know it had created that, and i was only looking under vbulletin options/paypal donations

thanks!

smoknz28 12-05-2006 03:01 AM

Quote:

Originally Posted by sinisterpain (Post 1131308)
The button will be like the one I have on my site. If you wish to use another you can go to your paypal account and go to Merchant services then donations creat a button with the one you wish.

You will need to edit the donation_bits template under paypal donations templates (Admin Cp=>styles&templates=>style manager=>PaypalDonation Templates=>donation_bits).
find:

Code:

<if condition="$vboptions['ipn_test'] == 1">
<form name="donate" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
                        <else />
<form name="donate" action="https://www.paypal.com/cgi-bin/webscr" method="post">
                                </if>
<input type="hidden" name="notify_url" value="$vboptions[notify_url]">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure">

change:
Code:

<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
to the new code you get from the paypal script

Ahhhh, well actually...it helps to go to the control panel and look harder...I didn't know that this hack added it's own menu with all the config info. Duhhh....argh....

I have the button configured as the generic one that comes with the hack for now and made this hack live to my users. When I have more time, I'll work on creating a button in the way you mentioned.

Thanks for all your help! :)

smoknz28 12-06-2006 12:37 PM

Darn....and I thought I was doing so well...

K, I had a member donate through the hack with PayPal. I got an email from PayPal telling the member sent funds....but when I go to the link as a user to view who has donated....his name does not appear. It seems that the hack is not tracking who has donated. I've gone into the cp and checked to see if maybe his info is sitting in there as pending....but nothing in there in regards to him either.

Ideas as to what may be wrong?

Edited....

I looked on my PayPal information on the "Notification of payment received" and it's sending me all the info I would think the hack needs:

Total Amount: $5.00 USD
Currency: U.S. Dollars
Transaction ID: 21H13075454846620
Quantity: 1
Item/Product Name: Donation To The Hideout
Item/Product Number: 90.186.237.158
Buyer: xxxxxx xxxxxxx

cddw.ltd 12-06-2006 01:02 PM

If they've not had the verification page when clicking on the exit button from Paypal (I.E. they get an error page) it doesn't track it correctly.

smoknz28 12-06-2006 07:28 PM

There have been some thoughts from my members on the issue of showing who has donated and the amounts... Their thoughts are that showing who and how much was donated by the members could cause issues. Where those members think they are above the moderators and can disregard rules, etc. Or, those who have given more than others may tend to think they can get away with more than others who have given less or none at all.

Is there any way we can show just those who have given without the amount donated? Then, is there a way we can show just the amount donated, but without the member's name?

Also, I still can't get mine to display who have paid through PayPal....when a member goes into PayPal and donates....I get an email from PayPal alerting me that someone has donated....but this hack is not grabbing that info.

sinisterpain 12-06-2006 09:18 PM

Quote:

Originally Posted by smoknz28 (Post 1133409)
There have been some thoughts from my members on the issue of showing who has donated and the amounts... Their thoughts are that showing who and how much was donated by the members could cause issues. Where those members think they are above the moderators and can disregard rules, etc. Or, those who have given more than others may tend to think they can get away with more than others who have given less or none at all.

Is there any way we can show just those who have given without the amount donated? Then, is there a way we can show just the amount donated, but without the member's name?

Also, I still can't get mine to display who have paid through PayPal....when a member goes into PayPal and donates....I get an email from PayPal alerting me that someone has donated....but this hack is not grabbing that info.

I know the hack grabs that info because mine works just fine.

Please check in your admin cp=>Paypal Donationsfor the following:
1. View all Valid transactions. Is the name listed there.
2. If yes to the above, check your donation settings and make sure you have show donors selected yes.
3. If the answer is no to the above, make sure in your donation settings that you have the url to the ppverify file. You must also have a paypal business account, have turned on IPN in your Paypal account withe the url to your site.

4. Ensure that you have uploaded all the files for this hack to your webserver and to the correct directories. I believe the alldonors.php file on your webserver outputs to the donation_all_donors and donation_all_donors_bits templates.

Lastly, if you do not wish to show who has donated and how much do not activate the show donors but if you make the required template edits to your postbit and member info templates you can show a donor button in their post and user cp.

smoknz28 12-06-2006 11:51 PM

Quote:

Originally Posted by sinisterpain (Post 1133485)
Please check in your admin cp=>Paypal Donations for the following:
1. View all Valid transactions. Is the name listed there.

No.

Quote:

Originally Posted by sinisterpain (Post 1133485)
2. If yes to the above, check your donation settings and make sure you have show donors selected yes.

I turned it off today as I was testing some other features, but is back on.

Quote:

Originally Posted by sinisterpain (Post 1133485)
3. If the answer is no to the above, make sure in your donation settings that you have the url to the ppverify file. You must also have a paypal business account, have turned on IPN in your Paypal account withe the url to your site.

Yes, the url to ppverify.php is correct. I have a Premiere Account and have IPN turned on...however, you told me previously to not put a url in the setting with PayPal's IPN. So, it already was enabled, but not pointing to a notification URL. If I am to point PayPal's IPN Notification URL to my site...would I use my forums url: http://www.f-bodyhideout.com/forums or does this notification URL need to point elsewhere on my server?

Quote:

Originally Posted by sinisterpain (Post 1133485)
4. Ensure that you have uploaded all the files for this hack to your webserver and to the correct directories. I believe the alldonors.php file on your webserver outputs to the donation_all_donors and donation_all_donors_bits templates.

Yes, they are in the correct locations.

sinisterpain 12-07-2006 12:21 AM

Quote:

Yes, the url to ppverify.php is correct. I have a Premiere Account and have IPN turned on...however, you told me previously to not put a url in the setting with PayPal's IPN. So, it already was enabled, but not pointing to a notification URL. If I am to point PayPal's IPN Notification URL to my site...would I use my forums url: http://www.f-bodyhideout.com/forums or does this notification URL need to point elsewhere on my server?
I believe you misunderstood, you do not have to point to the ppverify file but you need to put the URL of your site ie.. http://www.f-bodyhideout.com.
What I did on our site was point directly to the ppverify.PHP file its not required just what i did. So in that case you could put http://www.f-bodyhideout.com/forums/ppverify.php. Up to you.

smoknz28 12-07-2006 12:25 AM

Yea, I definitely misunderstood you.... I went in to PayPal and set it to ppverify.php just in case.

I'll report back to let you know if it worked this round. ;)

Thanks

Dead-Meat 12-07-2006 01:22 PM

I'm trying to get something to work in PayPal Donations 2.0.2, Paypal Donations For vBulletin 3.5.
I've been looking at the php codes from the alldonators.php and created a new php file which I am showing through an iframe.
http://www.gunnersofwar.com/images/donators.jpg
I want to show all donators from the current month and not as it is doing now, from all months. I'm redoing the php file to get the data from the paypalipn table, because that one inserts a date of transaction which I can use.

What I need is a way to compair the current month with the month that is stored in the payment_date table. The type of the table is varchar instead of datetime and looks like this: 12:00:00 November 25 2006 PST. I managed to bring this date back to the three letters of the month, but I can't figure out how to only show those results that match the current month. Any help is greatly appreciated.

This is the php code that I created now. (There's probably a lot left from the alldonators.php code that isn't needed, but it currently gets half the job done).
PHP Code:

<?
/*======================================================================*\
|| #################################################################### ||
|| # Paypal Donations for vBulletin 3.5 - Version 2.00                # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2005 The Noble Pagan, Inc. All Rights Reserved.       # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------------------------------------------------------- # ||
|| # This Addon Contributed by DSBoyce8624                            # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| # ---------------------------------------------------------------- # ||
|| #################################################################### ||
\*======================================================================*/



// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

$month = date("M");

echo "<link href=\"donors.css\" rel=\"stylesheet\" type=\"text/css\">";
echo "<center><table>";
echo "<tr><td colspan=2 align=center><a href=\"forums/alldonors.php\" target=\"_top\">Our Donators</a></td></tr>";

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

// ###### Show All Donors ######
$query = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."donation_paypalipn WHERE userid != '0' AND valid != '0' ORDER BY mc_gross DESC");
$num = $vbulletin->db->num_rows($query);
$pic='';
$i = 1;
$p = 1;
while ($row = $vbulletin->db->fetch_array($query)){
    $avatar_row = $vbulletin->db->query_first("SELECT user.showdonor, user.username, user.avatarid, user.avatarrevision, avatar.avatarpath, NOT ISNULL(customavatar.filedata) AS hascustomavatar, customavatar.dateline AS avatardateline
                                                                            FROM ".TABLE_PREFIX."user AS user
                                                                            LEFT JOIN ".TABLE_PREFIX."avatar AS avatar ON(avatar.avatarid = user.avatarid)
                                                                            LEFT JOIN ".TABLE_PREFIX."customavatar AS customavatar ON(customavatar.userid = user.userid)
                                                                            WHERE user.userid = '".$row['userid']."'");
                    
    if ($avatar_row['avatarid']){
        $avatarurl = $avatar_row['avatarpath'];
    } else {
        if ($avatar_row['hascustomavatar']){
            if ($vbulletin->options['usefileavatar']){
                $avatarurl = $vbulletin->options['avatarurl']."/avatar".$row['userid']."_".$avatar_row['avatarrevision'].".gif";
            } else {
                $avatarurl = "image.php?".$session['sessionurl']."u=".$row['userid']."&amp;dateline=".$avatar_row['avatardateline'];
            }
        } else {
            $avatarurl = '';
        }
    }
    $userid = $row['userid'];
    $avatar = '<img src="'.$avatarurl.'" border="0">';
    $username = stripslashes($avatar_row['username']);
    $show_as_donor = $avatar_row['showdonor'];
    $total = number_format($row['mc_gross'], 2, '.', ',');
    $currency = $row['mc_currency'];
    $date = date("M", strtotime($row['payment_date']));
    


echo "<tr><td><font size=\"1\">$username</font></td><td><font size=\"1\">$total $currency $month $date</font></td></tr>";
}
{
echo "</table></center>";
}
/*======================================================================*\
|| #################################################################### ||
|| # alldonors -- Fileversion 2.00                                    # ||
|| # Date Version Finalized -- 03 July 2005                           # ||
|| #################################################################### ||
\*======================================================================*/
?>

This is what it outputs now:
http://www.gunnersofwar.com/images/donators2.jpg

Trana 12-07-2006 02:02 PM

Quote:

Originally Posted by Dead-Meat (Post 1133841)
php file which I am showing through an iframe.

Avoid iframes at all costs. They will cause you major problems when you try to do anything SEO related. You will find links to the frames themselves in search engines.

Dead-Meat 12-07-2006 02:21 PM

Quote:

Originally Posted by Trana (Post 1133863)
Avoid iframes at all costs. They will cause you major problems when you try to do anything SEO related. You will find links to the frames themselves in search engines.

I'd like to do it through a template, but haven't got an idea how to do that yet. Untill then I use iframes

smoknz28 12-08-2006 01:28 AM

Mmmm.....no go still... I again reverified that the files were in their correct locations, ensured IPN is on and set to ppverify.php.

Instant Payment Notification (IPN): On
Instant Payment Notification (IPN) URL: http://www.f-bodyhideout.com/forums/ppverify.php

Maybe one of my other hacks are preventing this from working.....?

sinisterpain 12-08-2006 02:20 AM

Quote:

Originally Posted by smoknz28 (Post 1134242)
Mmmm.....no go still... I again reverified that the files were in their correct locations, ensured IPN is on and set to ppverify.php.

Instant Payment Notification (IPN): On
Instant Payment Notification (IPN) URL: http://www.f-bodyhideout.com/forums/ppverify.php

Maybe one of my other hacks are preventing this from working.....?

Could be wrong but that paypal reminder should not be comming up when you click the donations link. Also if I click on http://www.f-bodyhideout.com/forums/ppverify.php it also comes to that donation reminder. So some how this may be blocking paypal from reading your donations. I also noticed that you do have members and donations dollars showing on your donations page.

smoknz28 12-08-2006 02:25 AM

The reminder is another hack....but it's working corectly as no other users have complained. I'm not coming up with the donation reminder.... It's only to come up after every 1 month a user is on the site.

As for the members who are on my donation's page...I had to manually add them however, there are another 5-6 after them that the program again never picked up after they donated.

sinisterpain 12-08-2006 08:06 PM

Quote:

The reminder is another hack....but it's working corectly as no other users have complained. I'm not coming up with the donation reminder.... It's only to come up after every 1 month a user is on the site.
No offense meant, just telling you when I click on your http://www.f-bodyhideout.com/forums/ppverify.php it comes to that donation reminder page. This file is used for communication with Paypal to verify the info from the donator and should not be going to the reminder. Just trying to tell you what happens.

smoknz28 12-08-2006 11:48 PM

No, no offense taken....

K, I've disabled the auto redirect hack....hopefully this will work.

sinisterpain 12-09-2006 01:57 AM

If that does not work the only things I can think of are:
1. Ensure you have Curl capabilities on your site this is required.
2. Make sure that the ppverify file is in your forum root directory and is properly cmoded.
3. the ppverify file has been corrupted or changed from original.

smoknz28 12-09-2006 02:02 AM

Quote:

Originally Posted by sinisterpain (Post 1134928)
If that does not work the only things I can think of are:
1. Ensure you have Curl capabilities on your site this is required.
2. Make sure that the ppverify file is in your forum root directory and is properly cmoded.
3. the ppverify file has been corrupted or changed from original.

I don't know what Curl capabilities are? How can I ensure this is set on my site?

ppverify.php is the proper location and I've reuploaded it twice. If this is to be chmoded, what should it be set to?

smoknz28 12-09-2006 03:01 AM

I also got this error earlier this evening:

Code:

Database error in vBulletin 3.6.3:

Invalid SQL:
INSERT INTO donation_paypalipn (
                                                                                                                        `txn_id`, `userid`, `test_ipn`, `notify_version`, `verify_sign`,
                                                                                                                        `first_name`, `last_name`, `payer_business_name`, `address_name`,
                                                                                                                        `address_street`, `address_city`, `address_state`, `address_zip`,
                                                                                                                        `address_country`, `address_status`, `payer_email`, `payer_id`,
                                                                                                                        `payer_status`, `business`, `receiver_email`, `receiver_id`,
                                                                                                                        `item_name`, `ip_address`, `quantity`, `invoice`,
                                                                                                                        `memo`, `tax`, `option_name1`, `option_selection1`, `option_name2`,
                                                                                                                        `option_selection2`, `payment_date`, `parent_txn_id`, `txn_type`,
                                                                                                                        `payment_type`, `payment_status`, `pending_reason`, `reason_code`,
                                                                                                                        `mc_gross`, `mc_fee`, `mc_currency`, `mc_handling`, `mc_shipping`,
                                                                                                                        `settle_amount`, `settle_currency`, `exchange_rate`, `case_id`,
                                                                                                                        `case_type`, `case_creation_date`, `valid`
                                                                                                                        ) VALUES (
                                                                                                                        '', '0', '0', '0', '',
                                                                                                                        '', '', '', '',
                                                                                                                        '', '', '', '',
                                                                                                                        '', '', '', '',
                                                                                                                        '', '', '', '',
                                                                                                                        '', '', '0', '',
                                                                                                                        '', '0', '', '', '',
                                                                                                                        '', '', '', '',
                                                                                                                        '', '', '', '',
                                                                                                                        '0', '0', '', '0', '0',
                                                                                                                        '0', '', '0', '',
                                                                                                                        '', '', '0'
                                                                                                                        );;

MySQL Error  : Duplicate entry '' for key 1 Error Number : 1062
Date        : Friday, December 8th 2006 @ 08:18:58 PM
Script      : http://www.f-bodyhideout.com/forums/ppverify.php
Referrer    :
IP Address  : xx.xx.xx.xxx.xx
Username    : Unregistered
Classname    : vB_Database


sinisterpain 12-09-2006 12:10 PM

Thats is from someone going to the donation page and testing the paypal donationation button without actually making a donation. It appears that it will work correctly when you get a new donation. Let me know how it turns out.

Also its not a good idea to post someones IP address please edit your post

smoknz28 12-09-2006 02:01 PM

Doh! Edited the ip....thanks.

I'll post up with how things go when I receive another donation.

chkdgate 12-11-2006 08:55 AM

I already have a donate.php file on my forum's root folder as it belongs to my ICash mod. How can I work around this when installing my donate.php file for this paypal hack without overwriting ICash?

chkdgate 12-11-2006 10:14 PM

^^Anyone?

sinisterpain 12-12-2006 12:38 AM

Quote:

Originally Posted by chkdgate (Post 1136220)
I already have a donate.php file on my forum's root folder as it belongs to my ICash mod. How can I work around this when installing my donate.php file for this paypal hack without overwriting ICash?

I do not know anything about ICash so I can not comment. The paypal hack uses a hook to the donate.php file for WOL uaers on line so you would have to edit the XML file and change it to something else before you installed it.

chkdgate 12-12-2006 03:58 AM

Quote:

Originally Posted by sinisterpain (Post 1136764)
I do not know anything about ICash so I can not comment. The paypal hack uses a hook to the donate.php file for WOL uaers on line so you would have to edit the XML file and change it to something else before you installed it.

Thank you for the reply. How would I get started on this?

chkdgate 12-14-2006 08:24 AM

I want to use this button. Where do I place it?

chkdgate 12-14-2006 07:17 PM

I'm getting these messages in my admin cp:

sinisterpain 12-14-2006 08:51 PM

Quote:

Originally Posted by chkdgate (Post 1138353)
I want to use this button. Where do I place it?

I already posted here regards to changing buttons.

As far as the modifyoptions, all you need to do is compare the new with the old template add the paypal info to the updated modify options template.

chkdgate 12-15-2006 12:32 AM

Quote:

Originally Posted by sinisterpain (Post 1138733)
I already posted here regards to changing buttons.

As far as the modifyoptions, all you need to do is compare the new with the old template add the paypal info to the updated modify options template.

Thank you for the button mod help. It worked well and I appreciate it. Unfortunately I'm a little lost on the modify options template and I'm quite unsure on what I should edit.

sinisterpain 12-15-2006 02:59 AM

All you need to do is compare the new with the old template, copy the paypal hack edits from the old file to the new file or revert the template and add in the changes made by the paypal hack.

chkdgate 12-15-2006 04:49 AM

I think I just did it right. So far no problems. Thank you sinisterpain! Booyakasha..respek.:cool:

ldwebtech 12-23-2006 10:35 AM

Anyone Have This Paypal Hack for VB 3.6.4

sinisterpain 12-23-2006 11:39 AM

yes, but if you do not read through the threads you will not install this properly as you do not use the authors install.

Ranger187 12-30-2006 03:40 PM

Anyone get this error when you click on the ppverify.php?

MySQL Error : Duplicate entry '' for key 1 Error Number : 1062
Date : Friday, December 29th 2006 @ 04:25:48 PM
Script :


All times are GMT. The time now is 10:49 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.03447 seconds
  • Memory Usage 1,920KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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