Author |
Message |
BamBamPSK
Regular
Joined: Nov 11, 2003
Posts: 61
|
Posted:
Thu Jan 08, 2004 6:01 pm |
|
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 @ www.pskclan.net |
_________________
Last edited by BamBamPSK on Sat Jan 10, 2004 2:54 am; edited 3 times in total |
|
|
|
BamBamPSK
|
Posted:
Fri Jan 09, 2004 3:29 pm |
|
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
|
Posted:
Fri Jan 09, 2004 11:05 pm |
|
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: scottr2@earthlink.net */
/* */
/* 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
|
Posted:
Sat Jan 10, 2004 9:37 pm |
|
can no one help me with this? |
|
|
|
|
fury
Worker
Joined: Sep 09, 2003
Posts: 165
|
Posted:
Sat Jan 10, 2004 11:35 pm |
|
patience grasshopper someone will help |
|
|
|
|
BamBamPSK
|
Posted:
Thu Jan 15, 2004 1:13 pm |
|
no one can do this i guess oh well thanks anyway |
|
|
|
|
Raven
Site Admin/Owner
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Thu Jan 15, 2004 1:58 pm |
|
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. |
|
|
|
|
blith
Client
Joined: Jul 18, 2003
Posts: 977
|
Posted:
Wed Apr 28, 2004 6:51 am |
|
Raven my block after adding this code shows like this
Code:"; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= "$bottom_msg"; $content .= "
"; ?>
|
|
|
|
|
|
BamBamPSK
|
Posted:
Sat May 01, 2004 8:00 am |
|
|
|
|
|