Change top menu position


Author Message
Ben

Posted: 6/22/2010
Quote message 

Hi

It's a pretty simple php hack to make the template do this.

In sitename/templates/<yourtemplate>/html/mod_mainmenu/default.php, on line 120 you should find the following code

if (isset($attribs['name']) && $attribs['name'] == 'user3') {


Replace that entire line with these 3 lines:


$allowedPositions = array('user3', 'banner1','banner6');
if (isset($attribs['name']) && array_values($attribs['name'],$allowedPositions) !== false)
{


The original code checks to see that you're loading the module in position user3. The code I've put in checks to see if the module is being loaded in position user3, banner1 or banner6.

So, if you use that code (always backup first), put your banner in user3, put your menu in banner1 and it should all work.
 
brent

Posted: 2/2/2011
Quote message 

Ben,
I found that this worked perfectly in Artisteer 2.5 and very simple to implement. However, with Artisteer 3 it does not work completely. I noticed that with Artisteer 3 it makes the appropriate module positions but the main menu loses its background and tab color and becomes transparent. Using the method you described here I did away with the header, placed my main menu in the banner1 position and then placed a rotating image module in the user3 position. This gives the appearance of a flash header without having to use flash.

Do you or anyone here have a workaround or an update to this that will work with Artisteer 3 templates? Being able to place the main menu in another module position such as banner1 or just being able to utilize the header position to place any module there should be something that Artisteer does.

Thanks

 
hitko

Posted: 2/6/2011
Quote message 

Ok, brent, I found source of bug for myself and fixed it. Here is the solution:
in /html/mod_menu/default.php

where it is
echo '<ul class="art-menu"' . $tag . '>';
change it to
echo '<div class="art-nav-center"><ul class="art-menu"' . $tag . '>';


and the 1st
echo '</ul></div>';
change to
echo '</ul></div>';
and this is it. Worket for me, at least.
 
Aleks Shamles

Posted: 2/24/2021
Quote message 

Lorsque nous achetons des médicaments, un pourcentage élevé du coût que nous payons pour la marque. Même chose dans toute autre industrie commerciale. J'achète des médicaments https://pharmaciemg.fr/tablette/zovirax/ en ligne sans ordonnance. Vous pouvez vérifier la composition sur le site. Mais n'oubliez pas de consulter votre médecin.