Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
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

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! ] */
/* */
/* 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: 17088

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

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
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.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

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 ©