Dave Baker
04-04-2008, 10:36 AM
Hi,
The new version of the plugin available in our download area.
Has been implemented functionality to display map with markers in categories.
Also, now names of the fields(zip, address, state etc...) in the bulb of markers will corresponded to the names of field in the directory and they will not be displayed if there's no information in the filed.
There's new hook in the index.php. If you did not implement any changes in the index.php file, you can just replace file in your directory with the file from the pack. If you do not want to replace file,
***open index.php in your directory and find code:***
$esynSmarty->assign('listings', $listings);
if (ESYN_MOD_REWRITE)
{
if($category['id']>0 && $config->get('use_html_path'))
{
$url = $config->get('base').$config->get('dir').$category['path'].'_%1.html';
}
elseif($category['id']==0)
{
$url = $config->get('base').$config->get('dir').'index%1.html';
}
else
{
$url = $config->get('base').$config->get('dir').$category['path'].'/index%1.html';
}
}
else
{
$url = $config->get('base').$config->get('dir').'index.php?category='.$category['id'];
}
$esynSmarty->assign('url', $url);
/** get related categories **/
if ($config->get('related'))
{
$related_categories = $esynCategory->getRelated($id);
$related_categories = $related_categories ? $gDirLayout->printCategories($related_categories) : '';
$esynSmarty->assign('related_categories', $related_categories);
}
***Before add***
esynConfig::startHook("afterGetListingList");
***Save file***
The new version of the plugin available in our download area.
Has been implemented functionality to display map with markers in categories.
Also, now names of the fields(zip, address, state etc...) in the bulb of markers will corresponded to the names of field in the directory and they will not be displayed if there's no information in the filed.
There's new hook in the index.php. If you did not implement any changes in the index.php file, you can just replace file in your directory with the file from the pack. If you do not want to replace file,
***open index.php in your directory and find code:***
$esynSmarty->assign('listings', $listings);
if (ESYN_MOD_REWRITE)
{
if($category['id']>0 && $config->get('use_html_path'))
{
$url = $config->get('base').$config->get('dir').$category['path'].'_%1.html';
}
elseif($category['id']==0)
{
$url = $config->get('base').$config->get('dir').'index%1.html';
}
else
{
$url = $config->get('base').$config->get('dir').$category['path'].'/index%1.html';
}
}
else
{
$url = $config->get('base').$config->get('dir').'index.php?category='.$category['id'];
}
$esynSmarty->assign('url', $url);
/** get related categories **/
if ($config->get('related'))
{
$related_categories = $esynCategory->getRelated($id);
$related_categories = $related_categories ? $gDirLayout->printCategories($related_categories) : '';
$esynSmarty->assign('related_categories', $related_categories);
}
***Before add***
esynConfig::startHook("afterGetListingList");
***Save file***