Friday, 07 December 2007

Joomla 1.5 Main Menu Images Module

This module enables you to create a main menu with images only. 

Following the success of the original version of Main Menu Images module for Joomla 1.0, this version is a hack of the 1.5 menu module, which allows images in menus without any text.

Download

Please Register and Login to download.

Installation

To install the module, simple go to Extensions Install / Uninstall, choose the file you have downloaded above and click on the Upload File and Install button. 

Compatibility

This module has been written for Joomla 1.5 and thus supports Joomla 1.5 natively.

Configuration

Configuration of the module is done via Extensions > Module Manager. Click on the Joomla 1.5 Main Menu Images item. You will need to enter the images for the menu item when creating the actual menu items. The only configuration necessary at the module level will be the menu to display, and the normal module parameters such as position and ordering. There is also an option which allows you to hide the bullets. The only layout supported by this module is the List layout. Legacy layouts are not supported.

Example Setup

Configuration happens in three steps.

1. Upload the images you want to use to the stories folder via the Media Manager

Joomla Media Manager

 

 

 

 

 

 

 

2. Click on the menu which you want to replace with main menu images

Joomla Images Menu

joomla menus

3. Choose the picture you want to diplay from the images you have uploaded in the Menu Image parameter

joomla menu item image

 4. In the Module Parameters (Extensions > Module Manager > JoomlaMain Menu Images) choose the menu you want to display in the module.

joomla module manager

 The end result after you do this for each menu item is the following:

Screenshot 

joomla main menu images screenshot

 Please do vote for us or write a small review on the Joomla Extensions site if you like this module:

http://extensions.joomla.org/extensions/core-enhancements/menu-systems/image-menus/3675/details

Hover Images

The module now supports easy configuration of the hover images. We are know including a javascript file which when enabled, will enable hover images.

The images possible are now:

1. Normal Image

2. Hover Image

3. Active Image

4. Active Hover Image

To enable the menu you need to add the following lines to the <head> section of the index.php of the template you are using.

<?php
  $document = &JFactory::getDocument();
  $document->addScript( 'modules/mod_j15mainmenuimages/imgchange.js' );
 ?>

Now in the same folder where there is your original image, you need to create the additional three versions of the image, and give them the exact following names:

1. Normal image: image.jpg

2. Hover image: image-hover.jpg

3. Active image: image-active.jpg

4. Active hover: image-active-hover.jpg

If you don't want any one of the images, simply create the image with that name, but put the normal image. This ensures that there isn't any error.  The menu style must be list, and if you want active highlighting, Full Active Highlighting must be on in the paramters of the module.

Change Background On Mouse Over

Changing the image when passing the mouse over the image is not strictly possible (currently). However, to achieve a similar effect, it is possible to change the background of the image using CSS.

The following is an example:

li.item55:hover {
  img:url(/images/stories/otherbackground.jpg); }

The above entry in the stylesheet will create an effect on the li with class "item55" will achieve the on mouse over background effect. You'd need to create an entry in the stylesheet for each menu item which you want this effect on. 

Do you like this module? - Buy me a beer (€3)

If you liked this module, please consider buying me a beer Cool Every drop counts! No guarantees that any donations will be spent on new development rather than beer, though every effort will be made to spend all donations on new developments Smile

Please use the Donate button on the bottom right to donate via Paypal.

Support

Please post to the forums of you need help in configuring the module.

 

 

Comments
Search RSS
sfinx  - active state   |Registered |2008-05-14 14:04:31
Is it possible to assign hover and active state wit this module? I cant figure
it out...
sylvain  - don't arrive to use it   |88.182.224.xxx |2008-06-01 21:21:20
Hello,
Can someone help me ... where do we have to insert images and declare
them in the module
MrWhy  - gap between images   |79.208.96.xxx |2008-06-08 13:39:09
Hello,

i have a little problem... there is always a little gap between 2 images
i thnik more or less 2px how can i fix this??

Thank You
dattard  - gap between images   |Registered |2008-06-09 05:27:29
You should be able to change the CSS of your template to remove this.
joomlacques  - same question   |Registered |2008-06-10 04:12:37
where do you insert the images!!!
dattard  - insert images - from menu   |Registered |2008-06-10 05:41:45
The images are inserted as per standard Joomla functionality i.e. in the menu
items. When creating a new menu item, it is possible to create an image for the
item. This is the image used by the module above. For Joomla 1.5, this will be
from the Menus menu.
Daniel  - Active state + hover   |84.174.68.xxx |2008-06-10 08:38:10
As sfinx already asked, are there hover and active states possible ?!
nthhai  - Thanks   |Registered |2008-07-25 05:33:26
Thanks
Matt  - How to?   |86.140.14.xxx |2008-08-01 09:28:53
Is there a detailed instructions on using this mod? im trying to create a image
only menu at the top of teh screen running horizontally
nuwud  - Text menu removal?   |Registered |2008-08-13 15:27:31
Hi,

You guys really hooked it up with this module; thanks!

So, how do I make
the text menu go away? I changed the css, but the basic text link is still
there, although invisible.

It is also above the images, creating a gap.

-ok, I
fixed the gap by playing with a margin in my css. Just need to get rid of
invisible text links now.

-I figured it out, the display tag in my css just
needed to be commented out. Thanks, you make a great sounding board.
DART  - Text menu removal   |Registered |2008-08-14 08:22:50
Great to know everything is fixed
nuwud  - Got another issue with borders   |75.56.223.xxx |2008-08-23 21:22:34
Hi, I can't seem to get the link border to go away in my css. Any clues? I
already tried setting the border width to 0px or none. Didn't work.
nuwud  - Border   |75.56.223.xxx |2008-08-24 15:56:50
I think I tracked it down to the a:link and li css becuase there are two other
images in my template (pdf and print buttons) that also have the border issue.
There isn't supposed to be any border. I used a css tool for my firefox browser
and it displays this: It may just be my template. The url is:
http://www.notionsofemotions.net

Any suggestions on how to make it go away?
nuwud  - link to css tool img   |75.56.223.xxx |2008-08-24 15:58:06
http://notionsofemotions.net/cssproblem.jpg

Forum didn't accept my img tag.
nuwud  - I fingered it out again   |Registered |2008-08-24 20:07:48
img {
border: none;
} was the code needed.
DART  - IMG Border   |SAdministrator |2008-08-25 15:08:37
Good to know you figured it out. I suggest you try out FireBug for sorting out
your CSS problems, though your tool seems nice too.
syams  - good idea   |Registered |2008-08-29 21:22:33
i think this a good idea
thanks
haitho37  - thanks   |Registered |2008-09-19 14:27:01
he
kweiland   |67.201.139.xxx |2008-09-30 19:15:22
can these images somehow utilize the mouse rollover option?
cullyh  - Can you make it a horizontal l   |Registered |2008-11-20 16:03:23
This is working great. Is there an easy way to make it a horizontal layout as
opposed to vertical. I need my images/nav to be side by side.
Thanks
sabaaqahmad   |Registered |2008-12-19 04:33:04
This is working great. Is there an easy way to make it a horizontal layout as
opposed to vertical. I need my images/nav to be side by side.
Thanks
DART  - Horizontal Menus   |SAdministrator |2008-12-26 16:35:33
Horizontal menus are now supported, by modifying the code such that it supports
Legacy - Horizontal main menu.
Harinder  - Hozirontal Menus     |202.134.235.xxx |2009-01-10 10:33:44
Did not follow :

"Horizontal menus are now supported, by modifying the code
such that it supports
Legacy - Horizontal main menu."

Do I need to modify
something ? I am not expert enough to modify module code.
DART  - Horizontal menus   |Administrator |2009-01-10 11:00:57
Sorry, meants the parameters ... change the parameters to Legacy - Horizontal.
Obviously you'll need legacy mode enabled.
Harinder  - Worked !     |202.134.235.xxx |2009-01-10 14:55:38
Thanks Dart ! Got the Horz menu.

There is a gap between the images.


Noticed a "cellspacing="1" in the legacy.php in the installed
folder. Made that to "0" still the gap persists. Also saw img
border="0" in the page source.

How to reduce the gap to zero and also
size the images ?
Harinder  - Images are not links     |202.134.235.xxx |2009-01-10 15:27:05
Also noticed the images are not links ! when I select "Legacy
Horizontal" .. the img tag is not nested inside the ga> tag
DART   |Administrator |2009-01-10 18:26:34
Check your CSS, I think you should be able to sort most of your problems through
the CSS. Not sure about the link though ... should be ok. However, please if you
still have problems get in touch via the Contact Us, you're one of the first
testers of the Horizontal menu, so expect some problems. We'll make sure you'll
be fine though
vgarmy  - Blank screen   |85.224.155.xxx |2009-02-06 06:36:21
Dosen't work, get a blank screen, HELP
fepia  - roll over   |79.89.130.xxx |2009-04-28 15:47:55
Hi,

First thank you for your work, but I have a little probleme...

All is
working but the exemple CSS code for roll over don't work.

What's
img:url..... ?
I tried background-image but didn't work to, althought
:

li.item1:hover{
border: solid 10px;
}

work....

it maybe conflit between
CSS classes but I change or delete menu classes one by one without success.

Is
there a solution?
Mac  - Premium Theme   |98.111.171.xxx |2009-05-20 13:37:15
I am using the Genre theme from JoomlaXTC. By default the theme is set to use
either moomenu or suckerfish for the mainmenu. I have tried commenting out the
code for both, and publishing this module to "mainmenu" with no success.
What am I missing? I can't supply a link, as I'm building this site locally.
DART   |Administrator |2009-05-20 13:59:09
Leave the code there, and instead of commenting out the code, unpublish the menu
modules from the Modules, and leave the Main Menu Images Module only published.
However, if you are commenting the code, none of them will work I'm guessing ...
Mac   |98.111.174.xxx |2009-05-20 14:42:36
Thanks for your speedy reply. I uncommented out all code (actually just replaced
my edited file with the stock one), and unpublished the menu modules. No such
luck. Thinking that I missed something, I unpublished ALL modules, yet the
standard main menu at the top is still displayed. When I go into my template
manager to preview it, it appears that area is labeled, "[submenu
outline]" although that is not one of the positions available for the
module. In addition, the Main Menu Images Module is displaying and functioning
correctly when I publish it to the Right, horizontally. I know it's hard to
diagnose without me providing a link, but any help is appreciated.
DART   |Administrator |2009-05-20 15:52:18
I guess the template author is not using standard Joomla functionality then!
Best to get in touch with them to see whether the menus can be switched off.
DestructiveDreaming  - Single character of space appearing between each i   |24.192.85.xxx |2009-08-20 01:13:21
I'm trying to display my images in Legacy horizontal, and for some reason
between the images there is a single character of whitespace -- I can't get them
to display flush against each other, which is necessary for my layout to work. I
saw the other posts about spacing, but they seemed to address different issues.
Do you guys know what the problem might be?
kellysmith  - Menu Items from Dreamweaver don't work in Joomla     |75.142.252.xxx |2009-08-20 19:28:59
I created a Nav Bar with Dreamweaver and coming here made me realize why it
isn't working. How to I get the 5 main large buttons in the middle of this site
to be full-fledged rollover like in regular html with Down, Up, Over and
Over-Down modes? Is that not possible in Joomla
1.5?

http://66.147.242.193/~osirenoc/

Right now they all go to the same page
but don't worry about that. That will change. I just want the 4 versions of each
button to do their magic like regular html.

Thanks
Kelly
DART   |Administrator |2009-08-21 07:33:51
The regular Joomla menus don't do that, and neither does our extension. You
would have to find another extension which can do that.
Charles888   |213.46.17.xxx |2009-08-23 18:03:08
The plugin for webimages can't be found after installation and there is no image
in the menu's. Is this a plugin for 1.0 or for 1.5?
E.g. I have no option "
Unique ItemID= No/Yes".
knigherrant   |115.72.236.xxx |2009-09-17 05:42:50
surender   |115.252.45.xxx |2009-11-10 21:42:28
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Tuesday, 27 October 2009 )