Members: 16,816
Threads: 38,946
Posts: 160,349
Online: 207

Newest Member: Dirk Ahlemeyer


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 07.02.2007, 10:31   #31 (permalink)
Baby Mamber
 
Join Date: Feb 2007
Posts: 2
andi.martin is on a distinguished road
Default Re: Main Menu Image hack

Problem solved.

Ok, turns out that the extra <a href="..."> wasn't causing the problem, it was the spaces between the tags.

If you wish to remove the extra link tag...

Find
Code:
                     } else {
                                    $txt .= $image .'' . $txt;
And add a
Code:
;//
just after
Code:
."
and before
Code:
.$txt
NB - I have no idea as to the importance of this line, therefore, if all your other menus break, don't blame me! :p

The extra spacing was fixed by removing all the spaces from between the tags, try searching for " <" and " >".

Hope someone else finds this useful.

Cheers for the hack all!
andi.martin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 06.03.2007, 19:07   #32 (permalink)
Baby Mamber
 
Join Date: Jan 2005
Posts: 10
ssdesign is on a distinguished road
Default Re: Main Menu Image hack

wow, two years since I posted this thread and still its alive

Good to see so many people found it useful.
__________________
::form follows function::
my portfolio | {G2}-Generative Graphics
ssdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20.09.2007, 12:21   #33 (permalink)
Baby Mamber
 
Join Date: Sep 2007
Posts: 8
alexander88 is on a distinguished road
Default Re: Main Menu Image hack

I hope you are right, because I think so too. After all, let’s wait for other opinions and see.

----------------------------------------

http://www.eltsin.kiev.ua
http://www.platon.kiev.ua
http://www.chernyshevskiy.kiev.ua
http://www.all-bulgakov.kiev.ua
http://www.freid.kiev.ua
http://www.vysotskiy.kiev.ua
http://www.dapkunaite.kiev.ua
http://www.karamzina.kiev.ua
alexander88 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.12.2007, 18:08   #34 (permalink)
Baby Mamber
 
Join Date: Dec 2007
Posts: 2
Alekos_CY is on a distinguished road
Default Re: Main Menu Image hack

Well spend a few hours but its not working with me. i am using joomla ver 1.0.13

can anyone help?

1. The images are shown over the actual buttons of the existing menu. when i move the mouse i see the original menu below changing colours but the actual icons do not have the link on them.
2. the blank option does not work.

I also think that the number of line the script is suppose to go at is different on my version

Can anyone help?
Alekos_CY is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07.02.2008, 16:59   #35 (permalink)
Baby Mamber
 
Join Date: Feb 2008
Posts: 1
Kyeema is on a distinguished road
Talking Re: Main Menu Image hack

Hi there...

Thanks for the great input here, unfortunately I didn't get it to work with Dynamic Drive DOM Image Rollover (I fear, I simply included the js file wrongly - I'm new to Web-Design ), so I simply took the image mouseover and mouseout effects from mambo ("Advanced" register in the insert image popup for content items) and got it to work without...

You simply replace the "$image="-Line in Chucks Post with the following and can forget about including the JS file...

$image = '<img src="'. mamboCore::get('mosConfig_live_site') .'/images/stories/'. $mitem->name .'.gif" onmouseover="this.src=\''. mamboCore::get('mosConfig_live_site') .'/images/stories/'. $mitem->name .'_over.gif\'" onmouseout="this.src=\''. mamboCore::get('mosConfig_live_site') .'/images/stories/'. $mitem->name .'.gif\'" border="0" alt="'. $mitem->name .'"/>';


So the menu item name is the name of the image und for over-images filenames add "_over"... (thanks Gerry!)

Was just a bit tricky coz of the quotation marks, but it works fine on: "www.kleintierordination.com" (not allowed to post urls yet)...

Kyeema

Quote:
Originally Posted by chucktrukk View Post
Well, I was wrong. That didn't work. But this is how I hacked it. Below the code is how I got it to work.

Lines 83-111:
PHP Code:
            default:    // formerly case 2
            // open in parent window
            
$txt '<a href="'$mitem->link .'" class="'$menuclass .'" '$id .'>';
        }

        if ( 
$params->get'menu_images' ) ) {
            
$menu_params = new stdClass();
            
$menu_params =& new mosParameters$mitem->params );
            
$menu_image $menu_params->def'menu_image', -);
            if ( ( 
$menu_image <> '-1' ) && $menu_image ) {
                
$image '<img src="'$mosConfig_live_site .'/images/stories/'$menu_image .'" border="0" alt="'$mitem->name .'" srcover="'$mosConfig_live_site .'/images/stories/'$mitem->name .'"/>';
                if ( 
$params->get'menu_images_align' ) ) {
                    
$txt $image;
                } else {
                    
//$txt = $image .' '. $txt;
                    
$txt $txt .' '$image;
                }
            }
        }
        
        if (
$level 0)
            
$txt.= $mitem->name;
            
$txt.='</a>';
            return 
$txt;
            break;

First I went to Dynamic Drive DOM Image Rollover and installed their script. Very easy.

The only extra step involved is renaming your menus to the new rollover image, such as home_over.gif. I wanted my submenus to stay as text links, so at the bottom, I added "if level is greater than 0, then show the text".

The website is www.radministries.com/discipleship/index.php. I didn't design the website, another designer did. I am just porting it over to Mambo for them. I am still in the process with it, so if you see anything that could be tweaked on it, please let me know.

Chuck
Kyeema is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 29.04.2008, 10:44   #36 (permalink)
Baby Mamber
 
ecctao's Avatar
 
Join Date: Oct 2007
Posts: 21
ecctao is on a distinguished road
Send a message via MSN to ecctao
Default Re: Main Menu Image hack

Really What's I need ,trying!
__________________
Colorfull LED display LED screen LED panel
ecctao is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.mambers.com/template-discussions/26417-main-menu-image-hack.html
Posted By For Type Date
Menu con immagini This thread Refback 01.03.2008 13:21
Menu con immagini This thread Refback 01.03.2008 12:46

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to add new menu item in Main Menu Max Kaar Mambo 4.5 Installation and Upgrades 8 06.09.2006 03:02
Main Menu Hack... Anyone have an idea about this? Thanks! meek Module 'How Do I' Questions 1 27.02.2005 00:41
Interaction between main menu and top menu?? mirrie36 Mambo 4.5.1 'How Do I' Questions 0 22.02.2005 17:54
3 Level deep Main menu thomas9 Mambo 4.5.1 'How Do I' Questions 4 14.12.2004 23:33
linking direct from main menu to main body mikeh1980 Mambo 4.5 'How Do I' Questions 7 17.06.2004 15:52


All times are GMT +2. The time now is 10:27.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.