Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
scorpious
Worker
Worker



Joined: Dec 03, 2005
Posts: 153

PostPosted: Thu Nov 23, 2006 5:25 pm Reply with quote

Hi All

I have done a module, its show ok, however, I am trying to place a paypal Cart Button in it. The paypal code is in plan html code, its inclosed by a <Form> and uses a few <input> lines. The code so far in the module is as follows:

<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/************************************************************************/

if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
die ("You can't access this file directly...");
}

require_once("mainfile.php");
define('INDEX_FILE', true);
$module_name = basename(dirname(__FILE__));
include("header.php");
// Information Here
OpenTable();
echo "<center><fontclass=\"title\"><b>"._CAMPTS."</b></font><br><b>";
echo "<font class=\"content\"><b>"._CAMPPT."</i></font></center>";
CloseTable();

// End Information
include("footer.php");
?>

What would be the best way to complete?

Cheers
Scorp
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Thu Nov 23, 2006 7:50 pm Reply with quote

Are you using a generated button from paypal?
if so...did you choose the encrypted version...?
 
View user's profile Send private message
scorpious







PostPosted: Fri Nov 24, 2006 3:49 am Reply with quote

Hi hitwalker

There are two ways with papal, the first is Buy Now Button, using this allows you to choose encryted version. The other is Pay Pal Shopping Cart, with this it allows 2 buttons Add to Cart and View Basket, you have no option for the encrypted version on this one. It gives you two forms in html.

Can't post the code in here Nuke Sentinel dont like it lol

Cheers Scorp
 
hitwalker







PostPosted: Fri Nov 24, 2006 5:46 am Reply with quote

there are a few ways of doing this...
just put the whole code in the module generator (easier for you)
Only registered users can see links on this board! Get registered or login!

or just include it like ..
include ("paypalpage.html");
 
scorpious







PostPosted: Fri Nov 24, 2006 6:26 am Reply with quote

Hi hitwalker

Great, works like a charme,
I was trying to get the echo" statement to work, but kept getting a blank screen, what it was, I was not placeing the following before the code:
. "<input type=\"hidden\" name=\"add\" value=\"1\">"

I missed out the fullstop

OpenTable();
"<input type=\"hidden\" name=\"add\" value=\"1\">"
CloseTable();

Cheers
Scorp
 
hitwalker







PostPosted: Fri Nov 24, 2006 6:27 am Reply with quote

nice... Wink
good luck...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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 ©