Advert/Image related block Help

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Advert/Image related block Help
maccala
CZ Newbie
maccala has been a member for over 17 year's 17 Year Member
Gender: Male
Status: Offline
Joined: May 10, 2007
0.00 posts per day
Posts: 1
Points: 0
   
Hi guys,

Im currently working on [ Register or login to view links on this board. ]

You see the blocks I have in place that our ads,

Well can you telll me how to change the picture and the hyperlink....

Here is the code at the moment...


<?php
if (eregi("block-Angelo.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$ufurl = "http://www.gocomics.com/espanol/condorito/";
$content = "ufurl: $ufurl<br>";
$imagefile = "";
if (!($textfile = fopen( "$ufurl", "r"))) {
$content .= "$ufurl<br> could not be opened<br>";
die();
}
while (!feof($textfile)) {
$line = fgets($textfile, 1500);
if (eregi( ".*<IMG .*SRC=\"(.*)\">.*", $line, $out)) {
//if (eregi( ".*<center> <img src=".=\"(.*)\">.*", $line, $out)) {
$imagefile = $out[1];
break;
}
}
fclose($textfile);
$content = "<p align=center>";
$content .= "<A HREF=\"http://www.gocomics.com/espanol/condorito\" target=\"_blank\"><IMG SRC=\"$imagefile\" alt=\"Condorito\"></A>";
?>


Can you tell me which bits to change so I could link it back to my homepage...

And put in this image - [ Register or login to view links on this board. ]

Hope you can help guys



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum