View Full Version : Browse Menu Horizontal
scottishbullet
09-23-2005, 12:53 AM
Maybe I missed this somewhere but how do I get the browse module to display horizontally?
Thanks,
CJP
scottishbullet
10-23-2005, 10:13 AM
anyone?
Hi there,
This is pretty easy to achieve actually. Open and modify the HTML inside /modules/mod_hp_browse.php to rearrange the menu items. Assuming that you know the basics of HTML, this should be rather simple.
Regards,
Hi there,
This is pretty easy to achieve actually. Open and modify the HTML inside /modules/mod_hp_browse.php to rearrange the menu items. Assuming that you know the basics of HTML, this should be rather simple.
Regards,
I was curious about this too. When I open the PHP file, I can't make heads or tails of the code. Not really sure what I'd have to do to change the menu format.
Mostly, I see stuff like this:
\nWHERE p.published='1' AND p.approved='1' AND p.id='".$id.
:(
jholstein
07-14-2006, 10:01 AM
The following is the code from the mosets menu module revised to display horizontally. It also has code that replaces the TEXT links with IMAGE links (just replace the url to your own custom images)....copy all of the below code and paste it over all of the old code in the mod_mt_menu.php file.
*************************************************
<?php
/**
* Mosets Tree Main Menu
*
* @package Mambo Tree 1.5
* @copyright (C) 2005 Mosets Consulting
* @url http://www.Mosets.com/
* @author Lee Cher Yeong <mtree@mosets.com>
**/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
# Get params
$limit_toplist = $params->get( 'limit_toplist', 0 );
$show_home = $params->get( 'show_home', 0 );
$show_browse = $params->get( 'show_browse', 1 );
$show_addlisting = $params->get( 'show_addlisting', 1 );
$show_addcategory = $params->get( 'show_addcategory', 1 );
$show_mylisting = $params->get( 'show_mylisting', 1 );
$show_newlisting = $params->get( 'show_newlisting', 1 );
$show_featuredlisting = $params->get( 'show_featuredlisting', 1 );
$show_popularlisting = $params->get( 'show_popularlisting', 1 );
$show_mostratedlisting = $params->get( 'show_mostratedlisting', 1 );
$show_topratedlisting = $params->get( 'show_topratedlisting', 1 );
$show_mostreviewedlisting = $params->get( 'show_mostreviewedlisting', 1 );
$moduleclass_sfx = $params->get( 'moduleclass_sfx' );
$linksclass = $params->get( 'linksclass', 'mainlevel' );
$show_addlisting_force = $params->get( 'show_addlisting_force', 0 );
# Include the config file
require( $mosConfig_absolute_path.'/administrator/components/com_mtree/config.mtree.php' );
# Include the language file. Default is English
if ($mt_language=='') $mt_language='english';
include_once('components/com_mtree/language/'.$mt_language.'.php');
if ( !isset($_MT_LANG) ) $_MT_LANG =& new mtLanguage();
# Get Itemid, determine if the HP component is published
$database->setQuery("SELECT id FROM #__menu"
. "\nWHERE link='index.php?option=com_mtree'"
. "\nAND published='1'"
. "\nLIMIT 1");
$Itemid = $database->loadResult();
# Detect whether cat_id / link_id present
$cat_id = trim( mosGetParam( $_REQUEST, 'cat_id', 0 ) );
$link_id = trim( mosGetParam( $_REQUEST, 'link_id', '' ) );
// Get Link's category
if ( $link_id > 0 && $cat_id == 0 ) {
$mtLink = new mtLinks( $database );
$mtLink->load( $link_id );
$cat_id = $mtLink->cat_id;
}
if ( $limit_toplist == 0 ) {
$toplist_cat_id = 0;
} else {
if ( $cat_id > 0 ) {
$toplist_cat_id = $cat_id;
} else {
$cat_id = 0;
$toplist_cat_id = 0;
}
}
# Check if this category allow link submission
if ( $show_addlisting_force ) {
$cat_allow_submission = 1;
} else {
$database->setQuery( "SELECT cat_allow_submission FROM #__mt_cats WHERE cat_id = $cat_id LIMIT 1" );
$cat_allow_submission = $database->loadResult();
}
?>
<?php
//}
?>
<table width="100%" border="0">
<?php
if ($show_home) {
?>
<tr>
<td> <div align="center"><a href="<?php echo sefRelToAbs("index.php"); ?>" class="<?php echo $linksclass ?>"><?php echo $_MT_LANG->HOME; ?></a>
</div></td>
<?php
}
if ($show_browse) {
?>
<td><div align="center"><a href="<?php echo sefRelToAbs("index.php?option=com_mtree&Itemid=$Itemid"); ?>" class="<?php echo $linksclass ?>"><?php echo "<img src=\"http://www.rcreader.com/images/link_graphics/main_button.gif\" />" ?></a></div></td>
<?php
}
if ($show_addlisting && $cat_allow_submission) {
?>
<td><div align="center"><a href="<?php echo sefRelToAbs("index.php?option=com_mtree&task=addlisting&cat_id=".$cat_id."&Itemid=$Itemid"); ?>" class="<?php echo $linksclass ?>"><?php echo $_MT_LANG->ADD_LISTING; ?></a></div></td>
<?php
}
if ($show_addcategory) {
?>
<td><div align="center"><a href="<?php echo sefRelToAbs("index.php?option=com_mtree&task=addcategory&cat_id=".$cat_id."&Itemid=$Itemid"); ?>" class="<?php echo $linksclass ?>"><?php echo $_MT_LANG->ADD_CATEGORY; ?></a></div></td>
<?php
}
if ($show_mylisting) {
?>
<td><div align="center"><a href="<?php echo sefRelToAbs("index.php?option=com_mtree&task=mylisting&Itemid=$Itemid"); ?>" class="<?php echo $linksclass ?>"><?php echo "<img src=\"http://www.rcreader.com/images/link_graphics/my_listing_button.gif\" />" ?></a></div></td>
<?php
}
if ($show_newlisting) {
?>
<td><div align="center"><a href="<?php echo sefRelToAbs("index.php?option=com_mtree&task=listnew&cat_id=".$toplist_cat_id."&Itemid=$Itemid"); ?>" class="<?php echo $linksclass ?>"><?php echo "<img src=\"http://www.rcreader.com/images/link_graphics/new_listing_button.gif\" />" ?></a></div></td>
<?php
}
if ($show_featuredlisting) {
?>
<td><div align="center"><a href="<?php echo sefRelToAbs("index.php?option=com_mtree&task=listfeatured&cat_id=".$toplist_cat_id."&Itemid=$Itemid"); ?>" class="<?php echo $linksclass ?>"><?php echo "<img src=\"http://www.rcreader.com/images/link_graphics/featured_listing_button.gif\" />" ?></a></div></td>
<?php
}
if ($show_popularlisting) {
?>
<td><div align="center"><a href="<?php echo sefRelToAbs("index.php?option=com_mtree&task=listpopular&cat_id=".$toplist_cat_id."&Itemid=$Itemid"); ?>" class="<?php echo $linksclass ?>"><?php echo "<img src=\"http://www.rcreader.com/images/link_graphics/popular_listing_button.gif\" />" ?></a></div></td>
<?php
}
if ($show_mostratedlisting) {
?>
<td><div align="center"><a href="<?php echo sefRelToAbs("index.php?option=com_mtree&task=listmostrated&cat_id=".$toplist_cat_id."&Itemid=$Itemid"); ?>" class="<?php echo $linksclass ?>"><?php echo $_MT_LANG->MOST_RATED_LISTING; ?></a></div></td>
<?php
}
if ($show_topratedlisting) {
?>
<td><div align="center"><a href="<?php echo sefRelToAbs("index.php?option=com_mtree&task=listtoprated&cat_id=".$toplist_cat_id."&Itemid=$Itemid"); ?>" class="<?php echo $linksclass ?>"><?php echo "<img src=\"http://www.rcreader.com/images/link_graphics/top_rated_button.gif\" />" ?></a></div></td>
<?php
}
if ($show_mostreviewedlisting) {
?>
<td><div align="center"><a href="<?php echo sefRelToAbs("index.php?option=com_mtree&task=listmostreview&cat_id=".$toplist_cat_id."&Itemid=$Itemid"); ?>" class="<?php echo $linksclass ?>"><?php echo $_MT_LANG->MOST_REVIEWED_LISTING; ?></a></div></td>
</tr>
<?php } ?>
</table>
<p> </p><p> </p>
metekavruk
10-01-2007, 06:34 PM
Hi,
I also need browse module to display horizontally. Please give a solution for hot property not mosets tree.
Cheers,
Mete :eek:
metekavruk
10-13-2007, 09:15 PM
This is my site to see browse module
property in alanya
http://www.real-estate.satopropertyturkey.com
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.