Classified Ads on Frontpage

There are only 3 classifieds appear on front page, and to see the others by clicking "Next" button. How can i change it so there are MORE than 3 classifieds are shown on front page ? Cool

Quote · 20 Jan 2009

Recheck this:

templates\base\scripts\BxBaseIndex.php

function getBlockCode_Classifieds()

line ~1100

$iResPerPage = (int)getParam("max_blogs_on_home");

change to any another value

Quote · 20 Jan 2009

You can try this it works for me:
/templates/base/scripts/BxBaseIndex.php

find:
$oClassifieds = new BxDolClassifieds();
$oClassifieds->UseDefaultCF();
if( $iTotalNum ) {
$iResPerPage = (int)getParam("max_blogs_on_home");
$iTotalPages = ceil( $iTotalNum / $iResPerPage );
$page = (int)$_REQUEST['classifieds_page'];

if( $page < 1 or $mode == 'rand' )
$page = 1;
if( $page > $iTotalPages )
$page = $iTotalPages;
$sqlLimitFrom = ( $page - 1 ) * $iResPerPage;

Change/add:
$oClassifieds = new BxDolClassifieds();
$oClassifieds->UseDefaultCF();
if( $iTotalNum ) {
$iResPerPage = (int)getParam("max_blogs_on_home");
$iTotalPages = ceil( $iTotalNum / $iResPerPage );
$page = (int)$_REQUEST['classifieds_page'];

if( $page < 1 or $mode == 'rand' )
$page = 1;
if( $page > $iTotalPages )
$page = $iTotalPages;
$sqlLimitFrom = ( $page - 1 ) * $iResPerPage = 3;

author: gameutopia

There are none so blind as those that will not see.
Quote · 20 Jan 2009

oh, i c2, so i just change $iResPerPage = 3; iito the amount i want ? Great!! Thanks for your help :)))

Quote · 20 Jan 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.