Need Help With script

Discussion in 'PHP' started by deepmob, Jan 15, 2010.

  1. #1
    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
     
    deepmob, Jan 15, 2010 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    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!!!
     
    s_ruben, Jan 15, 2010 IP
  3. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #3
    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 :)
     
    mastermunj, Jan 18, 2010 IP
  4. deepmob

    deepmob Well-Known Member

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #4


    following is the code of randomeimage.html

    <div id=tablewraper align="center">
    <h3>{L_SiteRandImage}</h3>
    {inc_rand_image_list}
    </div>
    
    Code (markup):
     
    deepmob, Mar 30, 2010 IP
  5. ThomasTwen

    ThomasTwen Peon

    Messages:
    113
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
     
    ThomasTwen, Mar 30, 2010 IP