Author Topic: Maximum of 30 images per page, can this be changed to more  (Read 2798 times)

0 Members and 1 Guest are viewing this topic.

Offline propertysnaps

  • Newbie
  • *
  • Posts: 14
    • View Profile
Maximum of 30 images per page, can this be changed to more
« on: August 04, 2007, 05:05:09 AM »
Hi,
I have set my cells and rows to 10 X 4 but the maximum per page it will show is 30.

Is there a  way to make this more,

Which file do I change?

Thanks
Vince

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Maximum of 30 images per page, can this be changed to more
« Reply #1 on: August 04, 2007, 06:06:12 AM »
From includes/page_header.php file,

Quote
//-----------------------------------------------------
//--- Set Paging Vars ---------------------------------
//-----------------------------------------------------
if (isset($HTTP_POST_VARS['setperpage'])) {
  $setperpage = intval($HTTP_POST_VARS['setperpage']);
  if ($setperpage) {
    $site_sess->set_session_var("perpage", $setperpage);
    $session_info['perpage'] = $setperpage;
  }
}

if (isset($session_info['perpage'])) {
  $perpage = $session_info['perpage'];
}
else {
  $perpage = ceil($config['default_image_rows'] * $config['image_cells']);
}

Default image rows (ACP - > setting) multiple by image cells config (ACP - > setting). If not please for calculate, change bold arg (no advise to do but can). ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?