Jump to content


Tutorial info Visit support topic

  • Added on: Sep 29 2009 09:47 AM
  • Views: 765
 


Adjusting the number of Recent Images

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

Posted by AndyF on Sep 29 2009 09:47 AM
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.5.1 © 2013, by Michael McCune