Hi friends, I need help with Advance Image hosting script I wand to display randome images on the show.php page do somebody know how to do it? This script already have randome.php page and the code is <? /* +-------------------------------------------------------------------------- | Advanced Image Hosting Script v2.2 | ======================================== | by Stephen Yabziz | (c) 2005 YABSoft Services | http://www.yabsoft.com | ======================================== | Web: http://www.yabsoft.com | Email: ywyhnchina@163.com +--------------------------------------------------------------------------- | | > Script written by Stephen Yabziz | > Date started: 14th February 2004 | +-------------------------------------------------------------------------- */ define("IN_RANDOM",1); include "includes/inc.php"; require_once("header.php"); $template->set_filenames(array( 'body' => 'randomimages.html') ); showRandImages(30,5); $template->pparse('body'); include "footer.php"; ?> PHP: with this code its display 30 images I want to display only 5. this code contain header and footer and I only want the randome image in show.php page they also have a html page of randome.html I am also giving the code of that page too <div id=tablewraper align="center"> <h3>{L_SiteRandImage}</h3> {inc_rand_image_list} </div> Code (markup): can somebody help me with this thanks
Where are the images?? I mean the directory name, or is these in one directory, are the images names in database e.t.c..... explain in detail and I will try to help you!!!
deepmob, from where the images are picked? what does randomimages.html do? showRandImages function is written with what purpose? Help us know above details to help you overcome situation quick and easy
following is the code of randomeimage.html <div id=tablewraper align="center"> <h3>{L_SiteRandImage}</h3> {inc_rand_image_list} </div> Code (markup):
It seems that some of your code is missing - but I suspect the following line fetches the images: showRandImages(30,5); Try to use showRandImages(5,5); If that doesn't work, look for a php file in which the function showRandImages is declared. Otherwise we can't help.