Members: 16,996
Threads: 38,866
Posts: 159,475
Online: 38

Newest Member: Kl_broka@rediffmail.com


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 14.04.2006, 23:55   #21 (permalink)
Baby Mamber
 
Join Date: Apr 2006
Posts: 2
jon_s is on a distinguished road
Default Re: Main Menu Image hack

Great hack - worked for me straight off. A small issue however: the images appear with a c5 px gap between them which does not appear susceptible to fixing in the css. Any ideas where this spacing is defined?

Thank you for the fix again.
jon_s is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 20.04.2006, 19:49   #22 (permalink)
Baby Mamber
 
Join Date: Mar 2005
Posts: 14
ablewave is on a distinguished road
Default Re: Main Menu Image hack

Quote:
Originally Posted by jon_s
Great hack - worked for me straight off. A small issue however: the images appear with a c5 px gap between them which does not appear susceptible to fixing in the css. Any ideas where this spacing is defined?

Thank you for the fix again.
I have the same problem - did you find a fix? I noticed that it places some spans in there, but that doesn't seem to be the problem?
ablewave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20.04.2006, 21:02   #23 (permalink)
Baby Mamber
 
Join Date: Apr 2006
Posts: 2
jon_s is on a distinguished road
Default Re: Main Menu Image hack

Have to admit that, after hours of fruitless googling, I gave up and reverted to a text-based menu. If I can work out a fix I will post it here.
jon_s is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20.04.2006, 21:42   #24 (permalink)
Baby Mamber
 
Join Date: Mar 2005
Posts: 14
ablewave is on a distinguished road
Default Re: Main Menu Image hack

Hi there, thanks for the quick reply. This worked for me:
Code:
a.mainlevel img {
	text-decoration: none;
	margin: 0;
	border: 0;
	margin-right: -4px;
}
That managed to pull everything together tightly. I'd prefer to actually "solve" the problem, but this was good enough for a quick fix!
ablewave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24.04.2006, 02:38   #25 (permalink)
Baby Mamber
 
Join Date: Apr 2006
Posts: 2
socrat888 is on a distinguished road
Default Re: Main Menu Image hack

Yeah Great hack
__________________
www.secret-casino-files.com Know what others don't know
socrat888 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05.05.2006, 12:24   #26 (permalink)
Baby Mamber
 
Join Date: May 2006
Posts: 1
simonok is on a distinguished road
Default Re: Main Menu Image hack

Got it working, why don't they build this into the system, its madness.

Also the rollover bit isnt complient code, so would be nice to have just plain rollover images, with no other features at all that are complient.

Or a rollover using <ul><li> and css so all the button states could be in 1 image.

That said I love you chaps for doing this hack.

simon
simonok is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.06.2006, 13:13   #27 (permalink)
Baby Mamber
 
Join Date: Jun 2005
Posts: 1
ilop is on a distinguished road
Default main menu rollover image +joomfish

thanks...really great!!!

...for all using joomfish and wanna use Dynamic Drive DOM Image Rollover like Chuck did described above...

Now take the code from chuck enhanced by mage but change

PHP Code:
$image '<img src="'$mosConfig_live_site .'/images/stories/'$menu_image .'" border="0" alt="'$mitem->name .'"/>'
to

PHP Code:
$image '<img src="'$mosConfig_live_site .'/images/stories/'$mitem->name .'.gif" srcover="'$mosConfig_live_site .'/images/stories/'$mitem->name .'2.gif" border="0" alt="'$mitem->name .'"/>'
If you using png or jpg instead of gif you also have to change the extension in this line twice.

The menu item name is the name of the image!!! and the rollover is is the name of the image add "2". In joomfish translate the menu items and put also the images in images/stories, for example:

english
menu item name: news
picture in images/stories: news.gif (normal), news2.gif (over)
german translate in joomfish:
menu item name: neues
picture in images/stories: neues.gif (normal), neues2.gif (over)

gerry
ilop is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.06.2006, 07:22   #28 (permalink)
Baby Mamber
 
Join Date: Jun 2006
Posts: 2
afandi is on a distinguished road
Default Re: Main Menu Image hack

oh yea!, xjumpers84

I'm also got that problem
even when i replacing the hack codes into the line; my menu item [sub-menu] does not appear anymore
I don't know why?
afandi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10.07.2006, 07:25   #29 (permalink)
Baby Mamber
 
Join Date: Jul 2006
Location: New Zealand
Posts: 15
vinnydarat is on a distinguished road
Default Re: Main Menu Image hack

hey cool, worked perfectly for me.

cheers
__________________
Vince Warnock
VDub Design, WiredNZ, Tearitup
vinnydarat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07.02.2007, 01:29   #30 (permalink)
Baby Mamber
 
Join Date: Feb 2007
Posts: 2
andi.martin is on a distinguished road
Default Re: Main Menu Image hack

Quote:
Originally Posted by ablewave View Post
Hi there, thanks for the quick reply. This worked for me:
Code:
a.mainlevel img {
	text-decoration: none;
	margin: 0;
	border: 0;
	margin-right: -4px;
}
That managed to pull everything together tightly. I'd prefer to actually "solve" the problem, but this was good enough for a quick fix!
I believe i've sussed your problem.

I copied and pasted my page source into a new dreamweaver document, clicked on the space and got quite a surprise.

This is the output of my source, anyone else with the problem want to confirm they have the same?

So, the menu begins with a fairly standard table opening:

Code:
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td nowrap="nowrap">
And for each menu item it writes....

Code:
<span class="mainlevel-nav">  </span>
<a href="index.php?option=com_frontpage&amp;Itemid=28" class="mainlevel-nav" >
<img src="http://www.mydomain.com/images/stories/mnu1.gif" border="0" alt="Home blank"/> 
<a href="index.php?option=com_frontpage&amp;Itemid=28" class="mainlevel-nav" >
</a>
So yeah, that's your bug. Too many link tags.

I guess it was missed as the output was across one long line.

Anyway, am off to bed now, if anyone wants to find a fix while i'm sleeping, feel free, otherwise I guess i'll post it once I check it tomorrow.
andi.martin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 12:06.

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