Random image for php nuke 7.0 install errrors

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Random image for php nuke 7.0 install errrors
panky
CZ Newbie
panky has been a member for over 19 year's 19 Year Member
malta.gif
Occupation: Senior Caretaker Almondbury High School
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Jan 09, 2005
0.00 posts per day
Posts: 3
Points: 195
  MSN Messenger 
Ok so i read the notes. i scratch my head i install the block.

i get the image header but no images. now im new to this. and find it hard. so im sorry to have to ask .

what am i doing wrong ?ame: Random Image Block
Made By: Telli
E-mail: [ Register or login to view links on this board. ]
Home Page: [ Register or login to view links on this board. ]
================================
Installation help:

1. Open the block and add your images

Upload:

html/blocks/block-Random_Image.php----->root/blocks/
================================

Log into your admin panel and activate it :-)


If you have any problems post them in my forums. [ Register or login to view links on this board. ]

Enjoy :-)
Telli


any comments or suggestions please email them to [ Register or login to view links on this board. ]


this is my bloke file after i have messed with it ?

<?php
/********************************************************/
/* Random Image Block */
/* Version 1.0.0 8-02-04 */
/* By: Telli (telli@codezwiz.com) */
/* [ Register or login to view links on this board. ] */
/* Copyright © 2001-2004 by Codezwiz */
/********************************************************/
if( eregi( "block-Random_Image.php",$PHP_SELF ) ) {
Header( "Location: index.php" );
die();
}
function Seed() {
list($usec, $sec) = explode(' ', microtime());
return (float) $sec + ((float) $usec * 100000);
}

//Add your image in this format <img src= you can also use links.
function ImageShow($whichimage) {
switch($whichimage)
{
case 1:
return "<img>www.the-self-preservation-society.co.uk/pics/Almondburyhighschool.gif<?img>";
break;
case 2:
return "<!---ADD IMAGE #2 HERE----->";
break;
case 3:
return "<!---ADD IMAGE #3 HERE----->";
break;
case 4:
return "<!---ADD IMAGE #4 HERE----->";
break;
case 5:
return "<!---ADD IMAGE #5 HERE----->";
break;
case 6:
return "<!---ADD IMAGE #6 HERE----->";
break;
case 7:
return "<!---ADD IMAGE #7 HERE----->";
break;
case 8:
return "<!---ADD IMAGE #8 HERE----->";
break;
case 9:
return "<!---ADD IMAGE #9 HERE----->";
break;
case 10:
return "<!---ADD IMAGE #10 HERE----->";
break;
case 11:
return "<!---ADD IMAGE #11 HERE----->";
break;
case 12:
return "<!---ADD IMAGE #12 HERE----->";
break;
case 13:
return "<!---ADD IMAGE #13 HERE----->";
break;
case 14:
return "<!---ADD IMAGE #14 HERE----->";
break;
case 15:
return "<!---ADD IMAGE #15 HERE----->";
break;

}
}

srand(Seed());
$randimage = rand(1,15);

$show = "<table width=\"100%\">\n<tr>\n<td align=center>\n";
$show = $show . ImageShow($randimage);
$show = $show . "</td>\n</tr>\n</table>\n";
$content = $show;
?>


thanks peter




_________________


[ Register or login to view links on this board.]
Back to top Reply with quote
#2   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Add your image in this format <img src= you can also use links

change the question mark in your img closing tag.




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#3   re: Random image for php nuke 7.0 install errrors
panky
CZ Newbie
panky has been a member for over 19 year's 19 Year Member
malta.gif
Occupation: Senior Caretaker Almondbury High School
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Jan 09, 2005
0.00 posts per day
Posts: 3
Points: 195
  MSN Messenger 
Thank you for your help, i changed it , after making an image file so i can scale my images to be all the same. but still get no image

<img>www.the-self-preservation-society.co.uk/blocks/images/Almondburyhighschool.jpg</img>




_________________


[ Register or login to view links on this board.]
Back to top Reply with quote
#4   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
return "<img src=folder_on_your_server_where_you_store_pics/Almondburyhighschool.gif";

Thats what the line should look like. Store the images on your server. And also delete or comment out any unused of these lines

case 15:
return "<!---ADD IMAGE #15 HERE----->";
break;

It worked perfect for me doing this icon_biggrin.gif




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#5   re: Random image for php nuke 7.0 install errrors
panky
CZ Newbie
panky has been a member for over 19 year's 19 Year Member
malta.gif
Occupation: Senior Caretaker Almondbury High School
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Jan 09, 2005
0.00 posts per day
Posts: 3
Points: 195
  MSN Messenger 
Thanks mate. got it going now. helps if i actually name the image file correctly...........i used a capital I and not lower case............ icon_redface.gif




_________________


[ Register or login to view links on this board.]
Back to top Reply with quote
#6   re: Random image for php nuke 7.0 install errrors
Ghost_Hunter
CZ Super Newbie
 Codezwiz Site Donator
Ghost_Hunter has been a member for over 19 year's 19 Year Member
usa.gif georgia.gif
Occupation: Writer, paranormal Investigator
Gender: Female
Website:
Status: Offline
Joined: Feb 17, 2005
0.01 posts per day
Posts: 83
Points: 2,651
   
Hi, I have a different problem with the random image block. When I ativate it, it doesn't show, but changes the layout of my theme. Any suggestions? I would really love to use this block. As an added note, great site!

Ghost_Hunter



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