Results 1 to 1 of 1

Thread: Customising the outlook of Top/Popular Images!

  1. #1
    Join Date
    May 2005
    Location
    China & France
    Posts
    6,492

    Default Customising the outlook of Top/Popular Images!

    By default, top and popular images are listed vertically on the left and right side of index page. But you may need the following customization.

    Know how it works:
    PHP Code:
    showTopImages($totalimages_to_show,$columns_to_list); 
    PHP Code:
    showPopularImages($totalimages_to_show,$columns_to_list); 
    Customization One:
    You want to show TWO or more collumns vertically:
    The below example will show 10 images listed vertically for 2 columns, i.e.:every column contains 5 images.
    PHP Code:
    showTopImages(10,2); 


    Customization Two:

    You want to make the images listed horizontally:
    The below example will show 10 images listed horizontally for 2 rows, i.e.:every row contains 5 images.
    PHP Code:
     showTopImages(10,5); 
    Finish the customization
    According to the above API, you can edit index.php to change showPopularImages(); and showTopImages();

    You may also need change the location of these two sections at skin/default/index.body.html:
    {inc_popular_image_list} will hold the Popular images list
    {inc_top_image_list} will hold the Topimages list

    Customization Three:
    You may want to show Popular or Top images on show.php or other page?

    All you need do is to insert the showPopularImages();or showTopImages();
    to the show.php or other PHP script file. And placing {inc_popular_image_list} or {inc_top_image_list} into the skin/default/show.html or other corresponding template files.

    Customization Four:
    You may want to show new uplaoded images on index page:
    insert the below code into index.php,
    PHP Code:
    showNewImages(); 
    and insert
    HTML Code:
    {inc_new_image_list}
    into skin/default/index.body.html.
    Last edited by yabsoft; 06-05-2008 at 04:54 PM.

Similar Threads

  1. Bandwidth monitor on the images
    By sales@xisto.com in forum Bug Reports
    Replies: 5
    Last Post: 11-01-2007, 05:53 PM
  2. BUG reporting images
    By vaggos13 in forum Bug Reports
    Replies: 4
    Last Post: 10-11-2007, 07:51 PM
  3. all images in one directory? please answer
    By marcin554 in forum Troubleshooting And Problems
    Replies: 1
    Last Post: 02-18-2007, 06:32 AM
  4. Conversion of Bmp files to Jpeg images.
    By sales@xisto.com in forum Troubleshooting And Problems
    Replies: 1
    Last Post: 10-15-2006, 03:52 PM
  5. Member images not showing up
    By profezor in forum Troubleshooting And Problems
    Replies: 0
    Last Post: 11-11-2005, 08:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •