PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  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
BamBamPSK
Regular
Regular


Joined: Nov 11, 2003
Posts: 61

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

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 to the forums!


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
Regular
Regular


Joined: Nov 11, 2003
Posts: 61

PostPosted: Fri Jan 09, 2004 3:29 pm Reply with quote Back to top

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
View user's profile Send private message
BamBamPSK
Regular
Regular


Joined: Nov 11, 2003
Posts: 61

PostPosted: Fri Jan 09, 2004 11:05 pm Reply with quote Back to top

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 to the forums!
                                             */
/*                                                                          */
/* 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
View user's profile Send private message
BamBamPSK
Regular
Regular


Joined: Nov 11, 2003
Posts: 61

PostPosted: Sat Jan 10, 2004 9:37 pm Reply with quote Back to top

can no one help me with this?
View user's profile Send private message
fury
Worker
Worker


Joined: Sep 09, 2003
Posts: 165

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

patience grasshopper someone will help
View user's profile Send private message
BamBamPSK
Regular
Regular


Joined: Nov 11, 2003
Posts: 61

PostPosted: Thu Jan 15, 2004 1:13 pm Reply with quote Back to top

no one can do this i guess oh well thanks anyway
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
blith
Client


Joined: Jul 18, 2003
Posts: 977

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

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
Regular
Regular


Joined: Nov 11, 2003
Posts: 61

PostPosted: Sat May 01, 2004 8:00 am Reply with quote Back to top

thanks
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-2011 by Raven

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 Modified by the RavenNuke™ Team ::

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

zerosum