Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: Sep 20 2009 05:03 PM
    • Views: 1569


    * * * * *
    0 Ratings

    Adjusting the number of Recent Images

    How to adjust the number of images displayed with the default hook.

    Posted by AndyF on Sep 20 2009 05:03 PM
    Some board owners may prefer to have less (or more) images displayed with the built in Recent Gallery Images hook. This is easy to achieve.

    Connect via FTP.

    Open /hooks/boardIndexGalleryImages_(some big number).php

    Around line 53 or so...

    		$img_list->getListingData( array(
    											'st'		   => 0,
    											'show'		 => 6,
    											'approve'	  => 1,
    											'sort_key'	 => 'i.idate',
    											'album'		=> 0,
    											'category'	 => 0,
    											'allow_cats'   => $allow_cats,
    											'allow_albums' => $allow_albums,
    								)	);

    See the 'show' => 6, line ? , change the 6 to what you require, taking care not to disturb anything else and save the change.

    :)
    Powered by Tutorials 1.3.1 © 2012, by Michael McCune