Results 1 to 10 of 201

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Logo Sidebox Help

    Quote Originally Posted by vivek_advsol View Post
    Hi Friends,

    I m new to Zencart. I wanna add new sidebox menu. how can i do it.

    Thanks
    Vivek
    What type of "sidebox menu"?

  2. #2
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    I have got my image in the box but no link what am I doing wrong.

  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Logo Sidebox Help

    Quote Originally Posted by bkeaton View Post
    I have got my image in the box but no link what am I doing wrong.
    have you configured includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

    in order to handle the link?



    Code:
    // Link Option - uncomment this if you intend to use the logo as a link
    
    //$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT) . '</a>';
    
    //comment this out if you use the above link option.
    $logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT);

  4. #4
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    Quote Originally Posted by clydejones View Post
    have you configured includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

    in order to handle the link?



    Code:
    // Link Option - uncomment this if you intend to use the logo as a link
    
    //$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT) . '</a>';
    
    //comment this out if you use the above link option.
    $logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT);
    This what I have in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php
    Code:
    <?php
    //
    //Contribution: Logo Sidebox
    //Author: Clyde Jones (http://mysticmountainnaturals.com/testsite)
    //Version:  1.1
    //Updated: 8/21/2008
    //License: under the GPL - See attached License for info.
    //Based on: Blank Sidebox by Judi Cox - www.MommaMuse.com
    //Support:  Only given via the forums, please. (http://www.zen-cart.com/forum/showthread.php?t=57694)
    //  --------------------------------------------------
    //  zen-cart Open Source E-commerce                                      
    //  Copyright (c) 2003-2006 The zen-cart developers                           
    //  http://www.zen-cart.com/index.php                                    
    //  Portions Copyright (c) 2003 osCommerce                               
    //  --------------------------------------------------
    // $Id: tpl_logo_sidebox.php,v 1.1 8/21/2008
    //  --------------------------------------------------
    //
    // Link Option - uncomment this if you intend to use the logo as a link
    //$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT) . '</a>';
    
    //comment this out if you use the above link option.
    $logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT); 
    
      $content = '';
        $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    
      $content .=  $logoimage;
    
      $content .= '</div>';
    ?>

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Logo Sidebox Help

    Quote Originally Posted by bkeaton View Post
    This what I have in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php
    Code:
    <?php
    //
    //Contribution: Logo Sidebox
    //Author: Clyde Jones (http://mysticmountainnaturals.com/testsite)
    //Version:  1.1
    //Updated: 8/21/2008
    //License: under the GPL - See attached License for info.
    //Based on: Blank Sidebox by Judi Cox - www.MommaMuse.com
    //Support:  Only given via the forums, please. (http://www.zen-cart.com/forum/showthread.php?t=57694)
    //  --------------------------------------------------
    //  zen-cart Open Source E-commerce                                      
    //  Copyright (c) 2003-2006 The zen-cart developers                           
    //  http://www.zen-cart.com/index.php                                    
    //  Portions Copyright (c) 2003 osCommerce                               
    //  --------------------------------------------------
    // $Id: tpl_logo_sidebox.php,v 1.1 8/21/2008
    //  --------------------------------------------------
    //
    // Link Option - uncomment this if you intend to use the logo as a link
    //$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT) . '</a>';
    
    //comment this out if you use the above link option.
    $logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT); 
    
      $content = '';
        $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    
      $content .=  $logoimage;
    
      $content .= '</div>';
    ?>
    it should look like this:

    Code:
    //
    // Link Option - uncomment this if you intend to use the logo as a link
    $logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT) . '</a>';
    
    //comment this out if you use the above link option.
    // $logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT); 
    
      $content = '';
        $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    
      $content .=  $logoimage;
    
      $content .= '</div>';
    ?>

  6. #6
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    I have got it working thank you. Also is it possible to have it open as an seperate window?

  7. #7
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    I want to add 2 to 3 or more images with url how can I do that and how to meake the link to open up as a seperate window?

 

 

Similar Threads

  1. Center Logo Sidebox, Live Help?
    By gee38l in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Dec 2008, 07:46 PM
  2. Replies: 1
    Last Post: 8 Dec 2008, 05:18 PM
  3. Replies: 0
    Last Post: 5 Nov 2007, 02:27 AM
  4. How do I center the Live Help logo in sidebox?
    By vivaraquel in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Jul 2007, 09:23 AM
  5. Center Logo In sidebox, trust logo ?
    By [email protected] in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Feb 2007, 05:35 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