Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Posts
    15
    Plugin Contributions
    0

    bug image map header...

    Hello!
    Does any of you know how to put an image map on the header?!
    I already have the image map code, but I don't know where I have to paste it ..I'm a little bit confused because the code is HTML and the page in php..

    Any help would be greatly appreciated

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: image map header...

    Quick search for image map, on forums here, reveals
    http://www.zen-cart.com/forum/showthread.php?t=41028

  3. #3
    Join Date
    Jul 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: image map header...

    Quote Originally Posted by misty View Post
    Quick search for image map, on forums here, reveals
    http://www.zen-cart.com/forum/showthread.php?t=41028

    Hello Misty!
    thank you very much! I have read this link but unluckily if I'm not wrong at the end of it doesn't say how to solve the problem.
    I have also tried to follow this one -> http://www.zen-cart.com/forum/showthread.php?t=26072&highlight=image+map
    but I "think" that maybe it was for an older version of zen cart?! because I tried to follow Bunnyip directions but unluckily the layout of my shop changed completly.

    I hope that I will find a way to put the map ..

    (p.s. ...sorry for my english!!!)

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: image map header...

    Are you wanting to replace the whole header with your map?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Jul 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: image map header...

    Quote Originally Posted by Kim View Post
    Are you wanting to replace the whole header with your map?
    Hello Kim! thanks for replying!
    YES!
    here there is my site : http://mademoiselleflo.com/shop

  6. #6
    Join Date
    Jul 2006
    Posts
    15
    Plugin Contributions
    0

    help question Re: image map header...

    I'm sorry to write again! But I really don't know how to solve my problem!!
    I'm worked again on it this morning but I just can't find how to make it work.

    I try to give you more info..maybe someone can help

    Here there is my image map code:

    Code:
    <area shape="rect" coords="457,75,499,106" href="http://mademoiselleflo.com/shop" alt="shop">
      <area shape="rect" coords="500,76,543,106" href="http://mademoiselleflo.com/blog" alt="blog">
      <area shape="rect" coords="542,76,583,106" href="http://mademoiselleflo.com/info.html">
      <area shape="rect" coords="583,76,639,106" href="http://mademoiselleflo.com/contact.html" alt="Contact">
      <area shape="rect" coords="638,76,679,106" href="http://mademoiselleflo.com/press.html" alt="press">
      <area shape="rect" coords="679,76,715,107" href="http://mademoiselleflo.com/fun.html" alt="fun">
      <area shape="rect" coords="715,75,761,106" href="http://mademoiselleflo.com/links.html" alt="links">
      <area shape="circle" coords="56,44,38" href="http://mademoiselleflo.com" alt="index">
    What I done is to change on the includes/templates/custom/common/tpl_header.php

    this line:

    Code:
    <?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>
    with this:

    Code:
    <?php echo zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT, 'name="logo" usemap="#logo"'); ?>
    <map name="logo"><?php echo HEADER_LOGO_IMAGEMAP; ?></map>
    and then added this code to includes/languages/english/custom/header.php

    Code:
    define('HEADER_LOGO_IMAGEMAP', '<area shape="rect" coords="406,75,457,105" 
    
    href="http://mademoiselleflo.com/about.html" alt="about">
      <area shape="rect" coords="457,75,499,106" href="http://mademoiselleflo.com/shop" alt="shop">
      <area shape="rect" coords="500,76,543,106" href="http://mademoiselleflo.com/blog" alt="blog">
      <area shape="rect" coords="542,76,583,106" href="http://mademoiselleflo.com/info.html">
      <area shape="rect" coords="583,76,639,106" href="http://mademoiselleflo.com/contact.html" alt="Contact">
      <area shape="rect" coords="638,76,679,106" href="http://mademoiselleflo.com/press.html" alt="press">
      <area shape="rect" coords="679,76,715,107" href="http://mademoiselleflo.com/fun.html" alt="fun">
      <area shape="rect" coords="715,75,761,106" href="http://mademoiselleflo.com/links.html" alt="links">
      <area shape="circle" coords="56,44,38" href="http://mademoiselleflo.com" alt="index">');

    I made those changes following something that someone else did in the past year.

    Does someone know why it isn't working for me?!

    here there is my site: http://mademoiselleflo.com/shop

    Thank you again! :)
    Last edited by florence; 4 Dec 2006 at 01:12 PM.

 

 

Similar Threads

  1. Image Map Header: Is it possible?
    By Dorothy pcnc in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Oct 2010, 05:25 PM
  2. Image Map to Logo/Header
    By john4803 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Aug 2010, 03:49 PM
  3. Header Image Map
    By joe051864 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Jul 2009, 10:55 AM
  4. Image map in header
    By Beth-katherine in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Jun 2008, 01:21 AM
  5. Image map in header
    By Extence in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Feb 2008, 09:13 PM

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