PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Sun Nov 02, 2003 8:54 am Reply with quote Back to top

I have edited the sample block code to display a .gif as well as a link to a client's web site. So far the following code works fine on my site (www.porcupinepc.com/forums) Now, what i would like to do is add another banner and so on . (have multipe client's banners displayed) How is this done?

Joe



<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/*
Only registered users can see links on this board!
Get registered or login to the forums!
*/
/* */
/* 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. */
/************************************************************************/

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

$content = "<br><center><a href=\"http://www.martinandcindys.com/\" target=\"_blank\">";
$content .= "<img src=\"http://www.porcupinepc.com/martincindy.gif\" <br><br></center>";

?>
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Raven
Site Admin/Owner


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

PostPosted: Sun Nov 02, 2003 12:55 pm Reply with quote Back to top

Joe, I assume you are familiar with html. Instead of doing it that way, use the WHEREDOC syntax so you do not have to quote or escape anything. Just create your html code the way you normally would. Then, make your block like this
Code:
<?php
if (eregi("block-BLOBK_NAME.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content = <<<_HTML_
PUT YOUR RAW HTML/JAVASCRIPT CODE HERE
_HTML_;
?>

Make sure there is absolutely nothing except a carriage return after the _HTML_ and _HTML_; tags.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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