Results 1 to 10 of 19

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Blank sidebox not behaving as expected

    I have installed the blank sidebox template in my override folder and it seems to display the logo correctly but it doesn't seem to accept the clickable URL that I have defined in the tpl.logo_sidebox.php

    It shows the image and it also shows a marker under the image for some reason.
    Neither Firefox nor IE 8 show this misterious anchor.

    I have attached a snapshot

    Is there something I'm doing wrong to define a link for that image?
    If I turn off the sidebox is goes away but if I rename the tpl.logo_sidebox.php file it still shows.

    The url is www.karatjewellers.ca

    Can anyone help please?
    Attached Images Attached Images  

  2. #2
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Blank sidebox not behaving as expected

    Quote Originally Posted by Rob905 View Post
    I have installed the blank sidebox template in my override folder and it seems to display the logo correctly but it doesn't seem to accept the clickable URL that I have defined in the tpl.logo_sidebox.php

    It shows the image and it also shows a marker under the image for some reason.
    Neither Firefox nor IE 8 show this misterious anchor.

    I have attached a snapshot

    Is there something I'm doing wrong to define a link for that image?
    If I turn off the sidebox is goes away but if I rename the tpl.logo_sidebox.php file it still shows.

    The url is www.karatjewellers.ca

    Can anyone help please?
    I'm not sure why, but I found the solution in blank_sidebox_defines.php in the language/english folder.
    If that is where the info is stored, what is the purpose of the tpl. file in the sidebox folder for the override template?

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Blank sidebox not behaving as expected

    I have installed the blank sidebox template in my override folder and it seems to display the logo correctly but it doesn't seem to accept the clickable URL that I have defined in the tpl.logo_sidebox.php
    I clicked it and was taken to http ://www.rotarywatches.com/uk/index.aspx
    It shows the image and it also shows a marker under the image for some reason.
    Neither Firefox nor IE 8 show this misterious anchor.
    OK I give - - What browser do you see this in??? I know the 2 that do not show it

    I do see a set of <p> tags might try posting ALL of the code you have entered for this

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Blank sidebox not behaving as expected

    I'm seeing the red-X-in-a-box in IE7 and 8.

    The actual logo is called rotary_logo.gif.

    The red X image is called rorary_logo.gif. I'd find that and remove it from your code.

    You can enter code in either of the 2 files with that mod.

  5. #5
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Blank sidebox not behaving as expected

    Quote Originally Posted by kobra View Post
    I clicked it and was taken to http ://www.rotarywatches.com/uk/index.aspx

    OK I give - - What browser do you see this in??? I know the 2 that do not show it

    I do see a set of <p> tags might try posting ALL of the code you have entered for this
    I'm using Safari in Mac OS X 10.5.7

    Here is the code for the logo_sidebox_defines.php file.

    <?php
    /**
    * blank sidebox definitions - text for inclusion in a new blank sidebox
    *
    * @package templateSystem
    * @copyright 2007 Kuroi Web Design
    * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
    */

    define('BOX_HEADING_BLANK_SIDEBOX', 'Only available at Karat Jewellers');
    define('TEXT_BLANK_SIDEBOX', '<img src="../../../../images/rotary_logo.gif" />');

    ?>

    and here is the full code from the tpl_logo_sidebox.php file.

    <?php
    /**
    * blank sidebox - allows a blank sidebox to be added to your site
    *
    * @package templateSystem
    * @copyright 2007 Kuroi Web Design
    * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
    */

    $content = '';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

    // Replace the text and HTML tags between the apostophes on lines 19 and 20.
    // Use as many or as few lines using this model as you need for your custom content.
    // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
    // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
    $content .= '<p>'<img src="<a href="www.rotarywatches.com" title="Rotary Watches" target="_blank">../../../../images/rotary_logo.gif</a>" />'</p>';

    $content .= '</div>';
    ?>

    Thanks folks.

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Blank sidebox not behaving as expected

    Your image source can't be a link, it needs to be an address, either a path to a location on your site, or an http URL.

    If you want it to be clickable, the link should be wrapped around the image.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

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

    Default Re: Blank sidebox not behaving as expected

    Correct syntax is:

    <a href="the_url_"><img src="path_to_image/image_name.jpg /></a>"
    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.

  8. #8
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Blank sidebox not behaving as expected

    Quote Originally Posted by kuroi View Post
    Your image source can't be a link, it needs to be an address, either a path to a location on your site, or an http URL.

    If you want it to be clickable, the link should be wrapped around the image.
    Aside from that I noticed there was a "<" missing.

    Thanks for all the help. Making the picture an address fixed it.

    Robert

  9. #9
    Join Date
    Sep 2007
    Location
    Niagara Falls, Ontario
    Posts
    377
    Plugin Contributions
    0

    Default Re: Blank sidebox not behaving as expected

    Quote Originally Posted by Rob905 View Post
    Aside from that I noticed there was a "<" missing.

    Thanks for all the help. Making the picture an address fixed it.

    Robert
    Spoke to soon. I was looking at the site in Firefox :-(
    In Safari the issue is still there.
    I took the links out of the tpl file and just put it in the logo_sidebox_defines.php file like this:

    define('TEXT_BLANK_SIDEBOX', '<a href="www.rotarywatches.com"><img src="http://karatjewellers.ca/zencart/images/rotary_logo.gif /><a/>');

    I seem to be missing a closing " somewhere but if I put it where I think it should go the entire site stops loading.

 

 

Similar Threads

  1. Login link not behaving
    By cycleaware in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Apr 2010, 06:37 AM
  2. storepickup not behaving as needed
    By BassFace in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 5 Jan 2010, 12:45 AM
  3. Background Color not behaving :(
    By TheBuz in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Apr 2009, 11:07 PM
  4. Email address exporter not behaving suddenly
    By dbrewster in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 19 May 2008, 11:02 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