View Full Version : How Do I - Increase the default number of ads displayed
June 6th, 2008, 07:20 AM
How can I increase this default number?
I'd like 20 to be the default number of ads shown.
June 6th, 2008, 07:34 AM
I think I sorted it by adding this to showcat.php is this ok?
// Init some variables
$perpage = 24;
June 6th, 2008, 07:46 AM
There is no specific setting for this. You would need to edit showcat.php and add the line in bold where noted.
Your perpage if one is not set is determined by the number of thumbnail colums you have.
if ( empty($perpage)) $perpage = 20;
if ( isset($perpage) && is_numeric($perpage) )
if ( $perpage != $cpperpage )
@setcookie( "cpperpage", $perpage, time()+2592000 );
$page = 1;
June 6th, 2008, 08:01 AM
Thanks Chuck worked like a charm.
June 6th, 2008, 08:02 AM
Glad to be of help you have a wonderful weekend.
July 21st, 2008, 06:19 AM
I have NO file in the NAME showcat.php where can find it ?
July 21st, 2008, 10:26 AM
If your using Classifieds you would indeed have a showcat.php file and that is what this discussion here is about our classifieds product.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.