Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
sqzdog
Involved
Involved


Joined: Sep 22, 2003
Posts: 252

PostPosted: Mon Sep 04, 2006 5:51 pm Reply with quote

I created a center block with a banner ad image in it. I want people to be able to click the image to take them to the clients site. Here's the code I am using:

Quote:
<?php

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

$content .= "<center><img src=\"http://fluvannaonline.com/Advertising/morace.jpg\" WIDTH=980 HEIGHT=111 BORDER=0></center>";

?>
 
View user's profile Send private message Send e-mail
straytalk
New Member
New Member


Joined: Aug 13, 2006
Posts: 14

PostPosted: Mon Sep 04, 2006 10:22 pm Reply with quote

just make it a hyperlink, that should do it if I'm not mistaken.

Code:
<?php


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

$content .= "<center><a href=\"www.yourclientsite.com\"><img src=\"http://fluvannaonline.com/Advertising/morace.jpg\" WIDTH=980 HEIGHT=111 BORDER=0></a></center>";

?>
 
View user's profile Send private message
sqzdog
PostPosted: Tue Sep 05, 2006 6:59 am Reply with quote

This is what I get when I try to click the image now:

The requested URL /luxuryvirginiahomes.com was not found on this server.
 
straytalk
PostPosted: Tue Sep 05, 2006 12:52 pm Reply with quote

its thinking that you are trying to access a directory on your server hence the / in front, be sure to put Only registered users can see links on this board! Get registered or login! in front so it knows its a seperate site and not a local location
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

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 ©