Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...
Author Message
BamBamPSK
Regular
Regular


Joined: Nov 11, 2003
Posts: 61

PostPosted: Thu Jan 08, 2004 6:01 pm Reply with quote

1. i have a game server block on the right side of my sight and i also have a PayPal donations block on my site...i would like to have both items in 1 block.( IS THIS POSSIBLE?)

2. A picture of the day block with random quotes (AGAIN POSSIBLE?)

if any one could help me out please let me know this will all go into my web site @ Only registered users can see links on this board! Get registered or login!

_________________
Image

Last edited by BamBamPSK on Sat Jan 10, 2004 2:54 am; edited 3 times in total 
View user's profile Send private message
BamBamPSK
PostPosted: Fri Jan 09, 2004 3:29 pm Reply with quote

Well i am trying to get some help.....i am not good with php i dont know how to do these things i am trying to better my site so please can some one help?


Last edited by BamBamPSK on Sat Jan 10, 2004 2:55 am; edited 1 time in total 
BamBamPSK
PostPosted: Fri Jan 09, 2004 11:05 pm Reply with quote

OK here is the code for both blocks i would like to see in the same block.

THIS is for the donations block
Code:
<?php


/****************************************************************************/
/* PHP-NUKE: Web Portal System                                              */
/* ===========================                                              */
/*                                                                          */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)             */
/* http://phpnuke.org                                                       */
/*                                                                          */
/* This program is free software. You can redistribute it and/or modify     */
/* it under the terms of the GNU General Public License as published by     */
/* the Free Software Foundation; either version 2 of the License.           */
/*                                                                          */
/* Donations block to accept money thru PayPal.                             */
/*                                                                          */
/* Scott Rubin - phpnuke id: scottr - http://www.ierealtor.com - 1/2003     */
/* email: Only registered users can see links on this board! Get registered or login!                                             */
/*                                                                          */
/* This assumes you have already setup an account with PayPal.              */
/* Just change $paypal_email below to your PayPal email address.            */
/*                                                                          */
/*++++***********************************************************************/

if (eregi("block-Donations.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

# Block to accept money thru PayPal

/*******************************************************************/
/* change $paypal_email value to be your paypal email address      */
/* change $top_msg value to display text above the paypal image    */
/* change $bottom_msg value to display text below the paypal image */
/*******************************************************************/
$paypal_email="yourname@your-domain.com";
$top_msg = "";
$bottom_msg = "";

$content = "<br><center>";
$content .= "$top_msg";
$content .= "<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">";
$content .= "<input type=\"hidden\" name=\"cmd\" value=\"_xclick\">";
$content .= "<input type=\"hidden\" name=\"business\" value=\"$paypal_email\">";
$content .= "<input type=\"image\" src=\"https://www.paypal.com/images/x-click-but04.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">";
$content .= "</form>";
$content .= "$bottom_msg";
$content .= "</center><br>";
?>


THIS is for the gameserver block

Code:
<?php


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

$serverpath .= $_SERVER['SERVER_NAME'];
if (strstr($_SERVER['SCRIPT_NAME'], "admin.php") OR strstr($_SERVER['SCRIPT_NAME'], "index.php")) {
$serverpath .= substr($_SERVER['SCRIPT_NAME'], 0, strlen($_SERVER['SCRIPT_NAME'])-20);
} else {
$serverpath .= substr($_SERVER['SCRIPT_NAME'], 0, strlen($_SERVER['SCRIPT_NAME'])-12);
}


$content = file_get_contents ("http://".$serverpath."/modules.php?name=GameServers&do=block");

?>


if some one could make what i want from that it would be great thanks
I would like both of these items in the same block side by side


I have the complete .zip files for both these blocks so if you need those let me know
 
BamBamPSK
PostPosted: Sat Jan 10, 2004 9:37 pm Reply with quote

can no one help me with this?
 
fury
Worker
Worker


Joined: Sep 09, 2003
Posts: 165

PostPosted: Sat Jan 10, 2004 11:35 pm Reply with quote

patience grasshopper someone will help
 
View user's profile Send private message
BamBamPSK
PostPosted: Thu Jan 15, 2004 1:13 pm Reply with quote

no one can do this i guess oh well thanks anyway
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Thu Jan 15, 2004 1:58 pm Reply with quote

This is the first time I saw this post - sorry. You can do this, I'm sure.

Just stack them all in 1 block.
Make sure that this code is only in there once, at the top.
Code:
if (eregi("block-Donations.php",$PHP_SELF)) { 

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

Make sure that all references to $content, after the first one, are like this:
$content .=
instead of
$content =

as that would reset it each time.
 
View user's profile Send private message
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Wed Apr 28, 2004 6:51 am Reply with quote

Raven my block after adding this code shows like this

Code:
"; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= "$bottom_msg"; $content .= "


"; ?>
 
View user's profile Send private message Visit poster's website
BamBamPSK
PostPosted: Sat May 01, 2004 8:00 am Reply with quote

thanks
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...

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 ©