Help with random image block - image will show path link

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Help with random image block - image will show path link
roundie
CZ Newbie
roundie has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jun 06, 2005
0.00 posts per day
Posts: 1
Points: 61
   
Hi

I have created a block to show my randomimage.php. Let me show you the code and explain the problem

-----------

<?php
if (eregi("block-randomphoto.php", $_SERVER['SCRIPT_NAME'])) {
Header("Location: index.html");
die();
}
ob_start();
//include("http://www.wuxilife.com/modules.php?op=modload&name=gallery&file=index&include=block-random.php");
include("modules/gallery/block-random.php");
$output = ob_get_contents();
ob_end_clean();
$content .= $output;
?>

--------

As you can see I have include block-random.php and it shows ok.. no poblem there.. but I would rather have include the above line (but it will say no content).. The reason is that if I call the path I get the link on the image as the path.. if I get it via the [ Register or login to view links on this board. ] then I get the link into the phpnuke system.

How can I fix it? what is the correct coding?

Hope the above makes sense. I am a newbie.. so any help would be appriciated.

PHPnuke 7.7 and the gallery I use is Menalto 1.5



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