PDA

View Full Version : [AIH v2.1] Customising the outlook of Top/Popular Images!


yabsoft
04-22-2008, 05:21 PM
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:
showTopImages($totalimages_to_show,$columns_to_lis t);

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.
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.
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,
showNewImages(); and insert
{inc_new_image_list}into skin/default/index.body.html.