John
April 19, 2012, 11:05 AM
Hi there,
We have fixed the maps issue when switching between listing types under recently added page which is good,
but this fix requires small changes in single PHP file, here the instructions:
1. open the following file for edit: /includes/classes/rlListings.class.php
2. find the following code (function), code line ~1020:
function ajaxloadRecentlyAdded( $key = false )
{
global $_response, $config, $pInfo, $rlSmarty;
if ( !$key )
return $_response;
/* get listings */
$listings = $this -> getRecentlyAdded(0, $config['listings_per_page'], $key);
$rlSmarty -> assign_by_ref('listings', $listings);
$pInfo['calc'] = $this -> calc;
$_SESSION['recently_added_type'] = $key;
$rlSmarty -> assign_by_ref('requested_type', $key);
$rlSmarty -> assign_by_ref('lt_key', $key);
$pInfo['current'] = 1;
$rlSmarty -> assign_by_ref('pInfo', $pInfo);
$tpl = 'blocks' . RL_DS . 'recently.tpl';
$_response -> assign( 'area_'. str_replace('_', '', $key), 'innerHTML', $rlSmarty -> fetch( $tpl, null, null, false ) );
$_response -> script('flFavoritesHandler()');
return $_response;
}
3. Replace code with
function ajaxloadRecentlyAdded( $key = false )
{
global $_response, $config, $pInfo, $rlSmarty, $rlHook, $lra_listings, $requested_key;
if ( !$key )
return $_response;
$requested_key = $key;
/* get listings */
$lra_listings = $this -> getRecentlyAdded(0, $config['listings_per_page'], $key);
$rlSmarty -> assign_by_ref('listings', $lra_listings);
$pInfo['calc'] = $this -> calc;
$_SESSION['recently_added_type'] = $key;
$rlSmarty -> assign_by_ref('requested_type', $key);
$rlSmarty -> assign_by_ref('lt_key', $key);
$pInfo['current'] = 1;
$rlSmarty -> assign_by_ref('pInfo', $pInfo);
$rlHook -> load('ajaxRecentlyAddedLoadPre');
$tpl = 'blocks' . RL_DS . 'recently.tpl';
$_response -> assign( 'area_'. str_replace('_', '', $key), 'innerHTML', $rlSmarty -> fetch( $tpl, null, null, false ) );
$_response -> script('flFavoritesHandler()');
$rlHook -> load('ajaxRecentlyAddedLoadPost');
return $_response;
}
That's all!
Reply this thread if you have any problems with patch.
John
We have fixed the maps issue when switching between listing types under recently added page which is good,
but this fix requires small changes in single PHP file, here the instructions:
1. open the following file for edit: /includes/classes/rlListings.class.php
2. find the following code (function), code line ~1020:
function ajaxloadRecentlyAdded( $key = false )
{
global $_response, $config, $pInfo, $rlSmarty;
if ( !$key )
return $_response;
/* get listings */
$listings = $this -> getRecentlyAdded(0, $config['listings_per_page'], $key);
$rlSmarty -> assign_by_ref('listings', $listings);
$pInfo['calc'] = $this -> calc;
$_SESSION['recently_added_type'] = $key;
$rlSmarty -> assign_by_ref('requested_type', $key);
$rlSmarty -> assign_by_ref('lt_key', $key);
$pInfo['current'] = 1;
$rlSmarty -> assign_by_ref('pInfo', $pInfo);
$tpl = 'blocks' . RL_DS . 'recently.tpl';
$_response -> assign( 'area_'. str_replace('_', '', $key), 'innerHTML', $rlSmarty -> fetch( $tpl, null, null, false ) );
$_response -> script('flFavoritesHandler()');
return $_response;
}
3. Replace code with
function ajaxloadRecentlyAdded( $key = false )
{
global $_response, $config, $pInfo, $rlSmarty, $rlHook, $lra_listings, $requested_key;
if ( !$key )
return $_response;
$requested_key = $key;
/* get listings */
$lra_listings = $this -> getRecentlyAdded(0, $config['listings_per_page'], $key);
$rlSmarty -> assign_by_ref('listings', $lra_listings);
$pInfo['calc'] = $this -> calc;
$_SESSION['recently_added_type'] = $key;
$rlSmarty -> assign_by_ref('requested_type', $key);
$rlSmarty -> assign_by_ref('lt_key', $key);
$pInfo['current'] = 1;
$rlSmarty -> assign_by_ref('pInfo', $pInfo);
$rlHook -> load('ajaxRecentlyAddedLoadPre');
$tpl = 'blocks' . RL_DS . 'recently.tpl';
$_response -> assign( 'area_'. str_replace('_', '', $key), 'innerHTML', $rlSmarty -> fetch( $tpl, null, null, false ) );
$_response -> script('flFavoritesHandler()');
$rlHook -> load('ajaxRecentlyAddedLoadPost');
return $_response;
}
That's all!
Reply this thread if you have any problems with patch.
John