PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Bravo2zero
Regular
Regular


Joined: Nov 28, 2005
Posts: 92
Location: UK

PostPosted: Sun Sep 03, 2006 1:53 pm Reply with quote Back to top

Hi All,

I have brought the NSN groups paypal Block ver 1.6.1
I have it working apart from one or two little errors,

1: when checking in paypal account details of transaction, it shows custom= 123 etc as the user id, i need it to list the username as well but can't work out how to do this, i keep a membership list and need to know what username has paid etc, i can't trace the user id unless going into the database which takes too long.

2: keep getting ipn failure e-mails (approx 9) and testing e-mails (1 only) each time i make a payment, i have set the ipn in paypal to
Only registered users can see links on this board!
Get registered or login to the forums!
as the files in the root i presume this address is correct,

other than that it adds the new member instantly to the groups area for members only and works a treat,

one other thing i have not tried to make a payment as a guest yet, so not sure what will happen there yet,

so anyone who can sort the above help please?

Thanks in advance
B2Z
View user's profile Send private message
fkelly
Moderator


Joined: Aug 30, 2005
Posts: 2204
Location: near Albany NY

PostPosted: Sun Sep 03, 2006 5:16 pm Reply with quote Back to top

I've been trying to get a paypal application, based on the NSN code, going for some time now and can understand the difficulties you are having. I doubt that you are going to find too much help here but I will be interested to see if any experts in this "pop up".

One thing you say strikes me as kind of curious:

Quote:
i can't trace the user id unless going into the database which takes too long.


What takes too long about it? It's a simple query and it's what relational databases are designed for. Select the username where the user-id equals the variable user_id which you get from pp_ipn.php. That kind of lookup goes on hundreds of times in a typical session with PHPnuke and you sure are not stressing the system too much by adding a few.

I don't have the email thing working correctly either. Are you using the sandbox? There's a whole bunch of forums on the paypal development site where you might get better answers.
View user's profile Send private message Visit poster's website
Bravo2zero
Regular
Regular


Joined: Nov 28, 2005
Posts: 92
Location: UK

PostPosted: Sun Sep 03, 2006 6:02 pm Reply with quote Back to top

the help readme file is missing a few important mentions on what to change,

you need to read the pp_ipn.php lines and replace as it says
also edit and replace the block-purchase.php lines where it tells you,

the e-mail has to be entered in both to work ok.

all i want is for the username to show in the paypal account area,

not sure on what you mean by the user id etc in the database, i don't want to go in the database everytime i need to know who's user id = a username.
View user's profile Send private message
Bravo2zero
Regular
Regular


Joined: Nov 28, 2005
Posts: 92
Location: UK

PostPosted: Tue Sep 05, 2006 5:00 am Reply with quote Back to top

to update i have just re read the nukescripts details of the block where you download it from,
and it says that the ipn also removes the user from the groups if the paypal is reveresed or refunded etc, this doe not happen! but saying that i wonder if this is why i get approx 8 IPN failures e-mails which mention refund etc.

i can't believe there is so little support for this download, i know it's not ravens download but hoped i could get some help on this.

thanks in advance

B2Z
View user's profile Send private message
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 914

PostPosted: Tue Sep 05, 2006 1:43 pm Reply with quote Back to top

if this is an nsn product perhaps try to site pm bobmarion or use feedback on his site.
View user's profile Send private message Visit poster's website
fkelly
Moderator


Joined: Aug 30, 2005
Posts: 2204
Location: near Albany NY

PostPosted: Tue Sep 05, 2006 1:56 pm Reply with quote Back to top

I got the download too. It's about $7.00 if I recall correctly. I never expected to get more than $7.00 of support. Just having the programming "template" is worth more than that to me. Paypal support has a lot of forums. Don't get me wrong, I'm hung up with developing an application that uses this too and I've had similar problems and I'd love to see some support but I don't expect to find it at those rates.
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Tue Sep 05, 2006 10:23 pm Reply with quote Back to top

Unfortunately, it could happen to any of us. Life can get in the way sometimes... I seem to recall that with CNBYA 5.0... (ok, don't get folks started and stay on topic...)
View user's profile Send private message Visit poster's website
pnclthnmstsh
Hangin' Around


Joined: Oct 23, 2005
Posts: 46
Location: Portland, Or

PostPosted: Wed Sep 13, 2006 5:11 am Reply with quote Back to top

I have the same problems. Since I knew my IPN was working fine I fixed the annoying 9 emails by commenting out this line in the XX_ipn.php files.

mail($nuke_config['adminmail'], "IPN Failure", $req2, "From: ".$nuke_config['adminmail']."\r\n");

Not a fix by any means, it just stops failure emails.
View user's profile Send private message Visit poster's website Yahoo Messenger
fkelly
Moderator


Joined: Aug 30, 2005
Posts: 2204
Location: near Albany NY

PostPosted: Wed Sep 13, 2006 8:52 am Reply with quote Back to top

One problem that I came across in testing the NSN scripts is shown in the following lines of code:

Code:
if($livefeed > 0) {
  // post back to PayPal system to validate
  $header  = "POST /cgi-bin/webscr HTTP/1.0\r\n";
  $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
  $header .= 'Content-Length: ' . strlen($req) . "\r\n\r\n";
  $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);
} else {
  // post back to PayPal Sandbox system to validate, used for testing IPN
   
  $header  = "POST /cgi-bin/webscr HTTP/1.0\r\n";
  $header .= "Host:
Only registered users can see links on this board!
Get registered or login to the forums!

  $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
  $header .= 'Content-Length: ' . strlen($req) . "\r\n\r\n";
  $fp = fsockopen ('www.sandbox.paypal.com', 80, $errno, $errstr, 30);
}

In the second group where you are posting back to the sandbox I believe that you may need the Host statement. See this thread in the paypal forums:

Only registered users can see links on this board!
Get registered or login to the forums!


If this is true you may need the same type of thing when you move from sandbox to real but that's a bridge I'll cross when I get there.

Generally, as far as I can see, the NSN scripts just take the suggested PAYPAL sample code and add an update of NSN groups to it. It's too bad that this code is "paid" because if it was open source we could quote it more freely and maybe make improvements more freely too.

For instance, it would be a good idea to build some kind of logging capability into the pp_ipn.php file from the outset. I'm currently pondering whether to make it a mysql database table log or just a text file. Without this it's hard to even be sure if the program is executing successfully much less track down problems.
[/code]
View user's profile Send private message Visit poster's website
leo51
Worker
Worker


Joined: Sep 09, 2004
Posts: 105
Location: Canada

PostPosted: Mon Sep 18, 2006 10:09 pm Reply with quote Back to top

jaded wrote:
if this is an nsn product perhaps try to site pm bobmarion or use feedback on his site.


Sorry, to ask but which of the nuke support site is really his?
View user's profile Send private message Visit poster's website MSN Messenger
pnclthnmstsh
Hangin' Around


Joined: Oct 23, 2005
Posts: 46
Location: Portland, Or

PostPosted: Mon Sep 18, 2006 10:28 pm Reply with quote Back to top

I don't think he has one. Which is incredibly sad since paying for the scripts is easily found. I haven't tried to contact him directly for support yet but hopefully that kind of support makes up for the lack of peer to peer, or open forum support for those who paid for NSN scripts. NSN Scripts really should have a support forum since they offer so many downloads and they are an icon in the Nuke world, as well they should have a private forum for those of us who have paid for scripts to get support on issues like this.

Just my opinion, but I really can see why some sites would opt to be just a "get what you want and go" kinda site.
View user's profile Send private message Visit poster's website Yahoo Messenger
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4868

PostPosted: Tue Sep 19, 2006 4:16 am Reply with quote Back to top

fkelly I may be wrong but in other scripts that use paypal the 'host' should be
Only registered users can see links on this board!
Get registered or login to the forums!
unless you are testing it, in which case it should be as shown in your post.

Having said that, the sandbox should perform as the normal paypal except that money is never transferred - hmm, a conondrum.
View user's profile Send private message Send e-mail Visit poster's website
persona_non_grata



Joined:
Posts: 0

PostPosted: Tue Sep 19, 2006 5:39 am Reply with quote Back to top

mmmm, a few things...
nsn scripts support maybe hard to find ,but there are reasons for that,also when bob took the forum offline.
as for contacting bob by mail.....well thats because he gets (like many others) tons of mail,sorted out by the system and with some look he finds it...
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum