Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 66
  1. #21
    Join Date
    Jun 2010
    Posts
    38
    Plugin Contributions
    0

    Default Re: Ezpages Improved Menus support

    Trying to install this now and I want to use .png files instead of .gif.

    I am trying to edit 'image_titles_defines' but the file is blank...

    Any ideas?

    EDIT: Apparently, the older download link contains a blank file and the newer one has one with code!

    I'll be on my way now, thanks!
    Last edited by Keezee; 6 Aug 2011 at 07:03 PM.

  2. #22
    Join Date
    Jun 2010
    Posts
    38
    Plugin Contributions
    0

    Default Re: Ezpages Improved Menus support

    Hello again,

    It works perfectly, thanks-a-million!

    Just for the sake of other slow people, like me... The 'ez-page id' is a number (the number '2' in my case) and NOT the title of the link such as 'Product Catalogs' or something.

    Other addons have you name the image whatever the text for the link is, but this one is much easier. My image is named 'ezpside2.png' instead of 'ezpsideProduct_Catalogs.png'

    Thanks again!

  3. #23
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Ezpages Improved Menus support

    [FONT=Verdana]Glenn,

    Again, love the flexibility, got one question. Any easy way to add the
    [/FONT][FONT=Verdana]onmouseover event to images?
    [/FONT]

  4. #24
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Ezpages Improved Menus support

    Perhaps if you knew javascript there would be:)

    If you want the same change to happen to all links on hover (not an individual image being swapped), you could make the image partly transparent and apply CSS to give it a border, background, etc. that can change on hover or visited states. It would take a relatively minor code change to give each link an id so that it can be addressed individually in the stylesheet and be fully CSS-manageable.

  5. #25
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Ezpages Improved Menus support

    Looks like I will try to add an id to each link, I like being able to have 100% control via the stylesheet.

  6. #26
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Ezpages Improved Menus support

    In tpl_ezpages_bar_header.php, add after the <a

    id="ezpagesTopLink' . $var_linksList[$i]['id'] . '

    to this line
    PHP Code:
        echo '<li><a href="' $var_linksList[$i]['link'] . '"' active_page_class($var_linksList[$i]['id'],$var_linksList[$i]['altURL']) . '>' text_image_sub($var_linksList[$i]['name'], 'ezphead' $var_linksList[$i]['id']/*, '', EZPAGES_TOP_ICONS*/) . '</a>' . (($i $n and EZPAGES_SEPARATOR_HEADER)? '<span class="separator">' EZPAGES_SEPARATOR_HEADER '</span>' '') . '</li>' "\n"
    to get
    PHP Code:
        echo '<li><a id="ezpagesTopLink' $var_linksList[$i]['id'] . ' href="' $var_linksList[$i]['link'] . '"' active_page_class($var_linksList[$i]['id'],$var_linksList[$i]['altURL']) . '>' text_image_sub($var_linksList[$i]['name'], 'ezphead' $var_linksList[$i]['id']/*, '', EZPAGES_TOP_ICONS*/) . '</a>' . (($i $n and EZPAGES_SEPARATOR_HEADER)? '<span class="separator">' EZPAGES_SEPARATOR_HEADER '</span>' '') . '</li>' "\n"

  7. #27
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Ezpages Improved Menus support

    Correction to use the current file version instead of the new unreleased version:

    In tpl_ezpages_bar_header.php, add before the ' . active_page_class(

    id="ezpagesTopLink' . $var_linksList[$i]['id'] . '"'

    to this line
    PHP Code:
        echo '<li><a href="' $var_linksList[$i]['link'] . '"' active_page_class($var_linksList[$i]['id'],$var_linksList[$i]['altURL']) . '>' title_image_exists($var_linksList[$i]['name'], 'ezphead' $var_linksList[$i]['id']) . '</a>' . (($i $n and EZPAGES_SEPARATOR_HEADER)? '<span class="separator">' EZPAGES_SEPARATOR_HEADER '</span>' '') . '</li>' "\n"
    to get
    PHP Code:
        echo '<li><a href="' $var_linksList[$i]['link'] . '" id="ezpagesTopLink' $var_linksList[$i]['id'] . '"' active_page_class($var_linksList[$i]['id'],$var_linksList[$i]['altURL']) . '>' title_image_exists($var_linksList[$i]['name'], 'ezphead' $var_linksList[$i]['id']) . '</a>' . (($i $n and EZPAGES_SEPARATOR_HEADER)? '<span class="separator">' EZPAGES_SEPARATOR_HEADER '</span>' '') . '</li>' "\n"
    I will add this as an additional enhancement to an improvement I recently made in the features.

  8. #28
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Ezpages Improved Menus support

    The feature improvement I mentioned is discussed in this thread, for those who are interested.
    It allows an image to be added before or after the text rather than simply substituted for the text, if desired. This can be used for icons. The link id feature described above would also allow for this kind of icon to be added as a background, so there are multiple possibilities. I would appreciate feedback on which ones people find most useful and easiest.

  9. #29
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Ezpages Improved Menus support

    Awesome, great work & mod as always!

    I used the link id feature, very easy and flexible. I made all my changes via CSS.

    And simply adjusting padding allowed me to include an icon to the background image before text, after text & both before and after.

    In my opinion the link id feature would work for both situations!

    Thanks again Glenn!

    Only tested in FF and still a template in progress but you can see in action here.

    Home link has an icon before text & Review link has an icon after text.

  10. #30
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Ezpages Improved Menus support

    Thanks for posting the example! That's a nice use of the hover and current page highlighting, as well as the icons.

    The background location for icons is more flexible (before or after text at will, as opposed to a global setting for before or after). On the other hand, its flexibility means that every link may need to be individually fine-tuned instead of letting the foreground images automatically make the space they need...
    Last edited by gjh42; 7 Sep 2011 at 03:43 AM.

 

 
Page 3 of 7 FirstFirst 12345 ... LastLast

Similar Threads

  1. EZ-Page Improved TOC [support]
    By gjh42 in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 14 Sep 2011, 04:44 PM
  2. Improved Stylesheet Calls support thread
    By gjh42 in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 7 Dec 2010, 11:37 PM
  3. AAARRRGGG!!! EZpages edit for header and footer menus
    By jtlswan in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 9 Apr 2010, 05:02 AM
  4. toolbar(menus and options like ezpages) not showing in the admin page?
    By sricharankatrue in forum General Questions
    Replies: 1
    Last Post: 19 Aug 2009, 02:14 AM
  5. toolbar(All Menus and options like ezpages) not showing in admin page?
    By sricharankatrue in forum Basic Configuration
    Replies: 0
    Last Post: 18 Aug 2009, 07:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR