Jump to content

Featured Replies

Posted
Is it possible to change how many images appear in the recent gallery hook on the forum homepage? Right now its showing 6 but I only want 4
  • Administrators

Yes go to System Settings > IPS Apps > Invision Community Pages.

 

Scroll down to Index Settings: Last 5, Random 5, and Stats and change it there.

  • Administrators

Apparently that setting doesn't control the recent image hook. I could have sworn it did.

 

Looks like you have to edit the hook file php to change it.

Brent, you need to edit this file - /hooks/boardIndexGalleryImages_really long string of numbers.php

 

Find this bit -

 

$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,
) );

Edit

 

'show' => 6,

to display the number of images you want.

 

I hope this helps!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...