Zen Cart Logo
Forums / All Other Contributions/Addons / CSS Dropdown menu for the header- With Categories!

CSS Dropdown menu for the header- With Categories!

Views: 615,624

Results 761 to 780 of 2,344
14 Jan 2008, 11:31 AM
#761
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

CSS Dropdown menu for the header- With Categories!

saher.alsous:

Hi there...

could anyone tell me what is the solution for the header bar when it goes up on firefox?

i installed the menu and it worked very great, but i had the header of my website where you can find Home Log In, going up,, so i just want to fix it , i looked over here and i was lost, honestly.

can you give me a link to the solution or tell me how to do it??

best regards

saher

Link please?

14 Jan 2008, 11:32 AM
#762
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: CSS Dropdown menu for the header- With Categories!

maraud:

How do you add categories? Is it done in one of the files that are uploaded or from the admin side?

You add categories and product in the admin, you've already added categories called "Product 1", and "Product 2", and then you've already added two subcategories, called "Product A", and "Product B".

14 Jan 2008, 11:42 AM
#763
d1driftbiz avatar

d1driftbiz

New Zenner

Join Date:
Oct 2007
Posts:
25
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

saher.alsous:

change the Z-index of the menu to be lower than the image, or the z-index of the image to be above 1000

where do i change the z-index? i have been looking through the header files and cant seem to see anything??

thanks! :smile:

14 Jan 2008, 2:27 PM
#764
shelshell avatar

shelshell

New Zenner

Join Date:
Jan 2008
Posts:
14
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Thanks Jade, that fixed it. The only thing I'm seeing now is a green background behind the dropdown menu...and only in IE. Which section of the stylesheet to change to fix this?

15 Jan 2008, 6:03 AM
#765
saher_alsous avatar

saher_alsous

New Zenner

Join Date:
Jun 2007
Location:
Palestine
Posts:
55
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

d1driftbiz:

where do i change the z-index? i have been looking through the header files and cant seem to see anything??

thanks! :smile:

its in the CSS file of the menu...

15 Jan 2008, 6:04 AM
#766
saher_alsous avatar

saher_alsous

New Zenner

Join Date:
Jun 2007
Location:
Palestine
Posts:
55
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

jettrue:

Link please?

its http://www.alsousbros.com

with IE it works fine, but with FF2 its not!

thank you so much

saher

15 Jan 2008, 11:10 AM
#767
d1driftbiz avatar

d1driftbiz

New Zenner

Join Date:
Oct 2007
Posts:
25
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

saher.alsous:

its in the CSS file of the menu...

Thanks Saher. That has worked perfectly!! The Advice is much appreciated!!!

:smartalec:

15 Jan 2008, 3:14 PM
#768
marksu avatar

marksu

Zen Follower

Join Date:
Nov 2007
Posts:
260
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

How do I add a new menu drop down link.

I like to use the ezpages to create own drop down link on header menu.

Home | Categories | LinkGroup1| | **LinkGroup2 **| ...

Clicking on LinkGroup1link it would show dropdown like

Printing
Graphical design
Other

I have opened tpl_drop_menu.php but not quite sure how to proceed.
It is OK to have it static even though dynamics menu creating would be better.

Hopefully also making possible to add even more links drop down.

Note. I dont want ezpages to be inside Information dropdown.

marksu

15 Jan 2008, 4:02 PM
#769
marksu avatar

marksu

Zen Follower

Join Date:
Nov 2007
Posts:
260
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

addition to last post>

I understand following sub menu and level2 thing and the idea is to make a list.

I can add my own static link to ezpage instead of zen_href_link...
So I kind of get how to make a static menu now.

How about is it simple to clone ezpages_drop_menu.php file and edit it so it displayes only certain ezpages using certain Chapter number?

Could it be simple as just editing the SQL query?

15 Jan 2008, 4:53 PM
#770
marksu avatar

marksu

Zen Follower

Join Date:
Nov 2007
Posts:
260
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

The solution was simple to make dynamic drop down link on header which uses ezpages pages of certain group.


Copy the ezpages_drop_menu.php to make own custom one.


**SOLUTION A **

Edit following line>
$page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_header = 1 order by header_sort_order, pages_title");

TO LINE

$page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where **toc_chapter = 1 and** status_header = 1 order by header_sort_order, pages_title");


Then it displayes only ezpage links of group 1.

To make it even better, more general add a variable to the line.


**SOLUTION B **

$page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where toc_chapter = " . **$chapNumber **. " and status_header = 1 order by header_sort_order, pages_title");

Now when you are calling for copy of ezpages_drop_menu2.php or what ever name you gave it, you can before that give a value to the variable.
This way you can create multiple menu drop down links using same code.

If you want even better than this you can edit the code that if $chapNumber is not defined then it is not used in where clause.


**SOLUTION C **

If ($chapNumber != ""){
$page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where toc_chapter = " . $chapNumber . " and status_header = 1 order by header_sort_order, pages_title");
} else

{
$page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_header = 1 order by header_sort_order, pages_title");
}


CODE IS TESTED AND IT WORKS

You would then use following code to make the drop down link in tpl_drop_menu.php file.

<?php $chapNumber = "1"; require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu2.php'); ?>

Well your desision if you want to edit existing ezpages_drop_menu.php file or make a copy. I prefer a copy in case you update module you could accidently loose the editing. Well maybe module creator could integrate it to the main code.:cool:

Possible make even some improvements to my code.

marksu

15 Jan 2008, 8:55 PM
#771
marksu avatar

marksu

Zen Follower

Join Date:
Nov 2007
Posts:
260
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Now the title names dont display correctly after installed multiple language ezpages module.

I added message to multiple languge ezpages thread in hope for solution.

I hope you could also go over to that thread and help out.
It is better to keep discussion to one thread only so reply on that thread.

The other thread
http://www.zen-cart.com/forum/showthread.php?p=490562#post490562

I mage above shows the main title (array string) problem.

marksu

16 Jan 2008, 5:36 PM
#772
bsteinagel avatar

bsteinagel

Zen Follower

Join Date:
Sep 2007
Location:
Neenah, WI
Posts:
112
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Hello,

Is it possible to remove the "Zen Cart: The Art of E-Commerce" image that is displayed in the top left corner of my site? It appeared after I installed v1.4 of the CSS Horizontal Dropdown Menu into Zen-Cart v1.3.7. I looked inside the Sideboxes Controller and Layout Boxes Controller within admin and didn't see anything that would turn that image off.

Here's a link to my site: http://www.basphoto.com

Thanks for any help anyone can provide.

Brad

16 Jan 2008, 5:50 PM
#773
bsteinagel avatar

bsteinagel

Zen Follower

Join Date:
Sep 2007
Location:
Neenah, WI
Posts:
112
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Hello,

In addition to the post above, I also wanted to know if there was a way to modify the top-level links within the menu. I changed the "Categories" box of the menu to read "Gallery". Currently, if a customer were to click on "Gallery" they would be taken to the site map. How do I modify this so that they can be taken to a page that has links to all my image galleries?

Please click on the word Gallery within the menu of my website to see what I mean. Here's the link: http://www.basphoto.com

16 Jan 2008, 6:11 PM
#774
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

bsteinagel:

Is it possible to remove the "Zen Cart: The Art of E-Commerce" image

I believe that one is turned off via the banner manager in the admin.

Admin-> Tools -> Banner Manager --- set the color of the green status boxes to red.

Your question about changing the link of the drop Menu answered here:

Open up this file -> includes/templates/Your_template/common/tpl_drop_menu.php

find the site_map part and change the link to:

<a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>">


<a href="YourDesiredLink.com/desiredLink">
16 Jan 2008, 7:15 PM
#775
bsteinagel avatar

bsteinagel

Zen Follower

Join Date:
Sep 2007
Location:
Neenah, WI
Posts:
112
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Thank you very much rainthebat. Your solution for the top-level link worked perfectly! However, I still cannot get the zen cart logo to disappear from the top left corner. I did check the layout boxes controller and the banner manager as you suggested and all the appropriate status boxes were red.

Brad

16 Jan 2008, 7:23 PM
#776
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Hi Brad,

I was just guessing banner without actually looking into it. There are two ways to get rid of that, one is to open up the style sheet and set the value logo to not display:

#logo{display:none}

This option would allow you to display a logo easily in the future if you so required, by simply removing this statement.

The second way is to remove everything that the <div "logo"> tag contains, and the tag itself from includes/templates/Your_Template/common/tpl_header.php

I would recommend the first way to have least impact if you are not familiar with editing the php files.

16 Jan 2008, 8:17 PM
#777
bsteinagel avatar

bsteinagel

Zen Follower

Join Date:
Sep 2007
Location:
Neenah, WI
Posts:
112
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Worked perfectly. Thanks rainthebat!

18 Jan 2008, 7:49 PM
#778
marksu avatar

marksu

Zen Follower

Join Date:
Nov 2007
Posts:
260
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Well allmost all problems solved.
Seems like this module is not compatible with Multi-Language Support for EZ-Pages module.

The problem is that ezpages_drop_menu.php uses the original ezpages_drop_menu.php database table to get ezpage data.

Instead it should use the zen_ezpages_content table that is used on
Multi-Language Support for EZ-Pages module.

Any change anyone have solved the issue?

marksu

18 Jan 2008, 8:08 PM
#779
marksu avatar

marksu

Zen Follower

Join Date:
Nov 2007
Posts:
260
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Well never mind.

I made the changes my self it was mutch simpler than I thought.

Not sure if anyone care as not mutch communication hre but if somebody need solution here it is.

It is based on my earlier design which enables to add ezpaged filtering which groups they belong.

It would be even better code if it could outomatically check if multi languge expages module is installed instead of using comments character. Wen I dont know how to do it so this will do.

// --------------------

If ($chapNumber != ""){

// USE THIS IS MULTI-LANGUGE EZPAGES MODULE NOT INSTALLED
// $page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where toc_chapter = " . $chapNumber . " and status_header = 1 order by header_sort_order, pages_title");

// USE THIS IS MULTI-LANGUGE EZPAGES MODULE IS INSTALLED
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where toc_chapter = " . $chapNumber . " and e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_header = 1
and header_sort_order > 0
order by header_sort_order, pages_title");
// end of modification

} else

{
// USE THIS IS MULTI-LANGUGE EZPAGES MODULE NOT INSTALLED
$page_query = $db->Execute("select * from " . TABLE_EZPAGES . " where status_header = 1 order by header_sort_order, pages_title");

// USE THIS IS MULTI-LANGUGE EZPAGES MODULE IS INSTALLED
// query modified for multi-language support
$page_query = $db->Execute("select e.pages_id, e.page_open_new_window, e.page_is_ssl, e.alt_url, e.alt_url_external, et.pages_title
from " . TABLE_EZPAGES . " e, " . TABLE_EZPAGES_TEXT . " et
where e.pages_id = et.pages_id
and et.languages_id = '" . (int)$_SESSION['languages_id'] . "'
and status_header = 1
and header_sort_order > 0
order by header_sort_order, pages_title");
// end of modification
}
// --------------------

marksu