Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other
Author Message
tonyheth
Client



Joined: Feb 25, 2006
Posts: 8

PostPosted: Sat Feb 25, 2006 4:30 am Reply with quote

Hi guys,

I'm going insane here. I have successfully installed Raven's 76 dist pack (great idea btw) and now want to install nsn's paypal blocks. I have several versions from 1.50 to 1.70 and hit the same prob.

I do the install, get the blocks to appear but they appear without graphics and so no buttons so I'm no further forward.

I've checked that the images are in the image folder etc. Here's the text from the subscribe block - blanked out my paypal address.

Thanks in anticipation.

Tony

Code:
<?php


/********************************************************/
/* NSN PayPal Subscription Intergration                 */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2005 by NukeScripts Network         */
/********************************************************/

if (eregi("block-Subscribe.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

$idofgroup = 2;
$urlforgroup = "http://www.dice2micegold.com"; // Set to the url your new group members will have access to
$ppemail = "myaddress@aol.com"; // Replace with your registered paypal email address
$subtitle = "Dice2Mice Gold Subscription"; // Replace PAYMENT_TITLE with your service title
$tryamount = "5"; // Replace PAYMENT_AMOUNT with the cost of the trial subscription
$payamount = "20"; // Replace PAYMENT_AMOUNT with the cost of the subscription
$curr = "USD"; // Replace CURRENCY_TYPE with your currency type (i.e. USD, MUST be a PayPal supported currency)

global $user, $cookie, $user_prefix, $db, $nukeurl;
if (is_user($user)) {
    cookiedecode($user);
    $username = $cookie[1];
    $uid = $cookie[0];
    $oid = $cookie[0]."-".time();
    $oid = str_pad($oid, 19, "0", STR_PAD_LEFT);
    $oid = "S".$oid;

    $pp_formgen = "\n\n<form target=\"_blank\" action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"POST\">\n";
    $pp_formgen .= "<input type=\"hidden\" name=\"cmd\" value=\"_xclick-subscriptions\">\n";
    $pp_formgen .= "<input type=\"hidden\" name=\"business\" value=\"$ppemail\">\n";
    $pp_formgen .= "<input type=\"hidden\" name=\"item_name\" value=\"$subtitle\">\n";
    $pp_formgen .= "<input type=\"hidden\" name=\"item_number\" value=\"$oid\">\n";
    $pp_formgen .= "<input type=\"hidden\" name=\"no_shipping\" value=\"1\">\n";
    $pp_formgen .= "<input type=\"hidden\" name=\"a1\" value=\"$tryamount\">\n";
    // The next two set the trial subscription term. Default setting is 1 day
    $pp_formgen .= "<input type=\"hidden\" name=\"p1\" value=\"1\">\n"; // This number times t1
    $pp_formgen .= "<input type=\"hidden\" name=\"t1\" value=\"M\">\n"; // Multiplier for p1 D=Days W=Weeks M=Months Y=Years
    $pp_formgen .= "<input type=\"hidden\" name=\"a3\" value=\"$payamount\">\n";
    // The next two set the subscription term. Default setting is 1 day
    $pp_formgen .= "<input type=\"hidden\" name=\"p3\" value=\"1\">\n"; // This number times t3
    $pp_formgen .= "<input type=\"hidden\" name=\"t3\" value=\"Y\">\n"; // Multiplier for p3 D=Days W=Weeks M=Months Y=Years

    $pp_formgen .= "<input type=\"hidden\" name=\"src\" value=\"1\">\n"; // Will payment recur? 1=Yes
    $pp_formgen .= "<input type=\"hidden\" name=\"sra\" value=\"1\">\n"; // Will reattempt? 1=Yes
    $pp_formgen .= "<input type=\"hidden\" name=\"no_note\" value=\"1\">\n"; // DO NOT CHANGE
    $pp_formgen .= "<input type=\"hidden\" name=\"custom\" value=\"$uid\">\n"; // User's id number
    $pp_formgen .= "<input type=\"hidden\" name=\"invoice\" value=\"$oid\">\n"; // Order #
    $pp_formgen .= "<input type=\"hidden\" name=\"on0\" value=\"Group ID\">\n"; // Name of this field
    $pp_formgen .= "<input type=\"hidden\" name=\"os0\" value=\"$idofgroup\">\n"; // Group ID #
    $pp_formgen .= "<input type=\"hidden\" name=\"tax\" value=\"0\">\n"; // DO NOT CHANGE
    $pp_formgen .= "<input type=\"hidden\" name=\"currency_code\" value=\"$curr\">\n";

    $pp_formgen .= "<input type=\"hidden\" name=\"txn_type\" value=\"web_accept\">\n";
    // If you want more then one block/ipn combo you will need to change the name of the ipn.php file
    $pp_formgen .= "<input type=\"hidden\" name=\"notify_url\" value=\"$nukeurl/ps_ipn.php\">\n";
    $pp_formgen .= "<input type=\"image\" SRC=\"images/paysub.png\" height=\"33\" width=\"88\" alt=\"Subscribe via PayPal\" border=\"0\" name=\"submit\">\n";
    $pp_formgen .= "</form>\n\n";
} else {
    $pp_formgen = "<b>PLEASE LOGIN!</b><br><br>";
}
// Replace WHAT_THE_USER_IS_BUYING with the description of the service the user is purchasing
$content = "<CENTER>Subscribe!<br><br>";
$content .= $pp_formgen;
$content .= "</CENTER>";

?>
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sat Feb 25, 2006 5:09 am Reply with quote

ill bet not..
cause ive tried every combination at [ Only registered users can see links on this board! Get registered or login! ] and its not there.
but where's the rest?..i mean index file etc...not installed yet?
 
View user's profile Send private message
tonyheth







PostPosted: Sat Feb 25, 2006 5:17 am Reply with quote

Ok that was quick, too quick - I'm doing a full reinstall first and didn't expect an answer so quickly!!
 
hitwalker







PostPosted: Sat Feb 25, 2006 5:42 am Reply with quote

A reinstall ?
okay im not gonna ask why........ killing me
 
tonyheth







PostPosted: Sat Feb 25, 2006 5:55 am Reply with quote

Because I can mess things up in sooo many ways! lol So decided a clean install is the best way to start. It's all back now.

Cheers

Tony
 
hitwalker







PostPosted: Sat Feb 25, 2006 5:57 am Reply with quote

ok now the paypal.....your almost done........lol
 
tonyheth







PostPosted: Sat Feb 25, 2006 6:00 am Reply with quote

nsnpaypal 1.51-70-79 is installed and a block activated - with no image - hence the prob.
 
hitwalker







PostPosted: Sat Feb 25, 2006 6:03 am Reply with quote

You mean this one?

Life_Membership

PLEASE LOGIN! ?

Are you sure block is set to public ?
 
tonyheth







PostPosted: Sat Feb 25, 2006 6:10 am Reply with quote

Subscribe

Subscribe!

PLEASE LOGIN!


This is the subscription block - set to a public group.

Group gold public unlimited members
 
hitwalker







PostPosted: Sat Feb 25, 2006 6:23 am Reply with quote

well i guess its not based on 3.1
so the block looks like..

Code:



if (eregi("block-Donate.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}


but try this...

Code:
if ( !defined('BLOCK_FILE') ) {

    Header("Location: ../index.php");
    die();
}



i checked your source also and its not showing the code at all,so looks like its not included.
 
tonyheth







PostPosted: Sat Feb 25, 2006 8:30 am Reply with quote

Doesn't seem to have worked.
 
tonyheth







PostPosted: Sun Feb 26, 2006 3:40 am Reply with quote

What do we do now?
 
hitwalker







PostPosted: Sun Feb 26, 2006 6:24 am Reply with quote

well i have no clue....
i dont have a crystal Ball Sad
last option is to ask someone to have a look...
 
tonyheth







PostPosted: Sun Feb 26, 2006 10:17 am Reply with quote

Thanks for your help so far. I also have problems setting up Allopaypal, Nukeroyal esolutions - one has to work sometime!!
 
hitwalker







PostPosted: Sun Feb 26, 2006 10:23 am Reply with quote

yeah but its weird these things give you problems....
if you want this solved you can contact me on my website,or post in ...for hire ...whatever you want to do to solve this.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©