Page 12 of 21 FirstFirst ... 21011121314 ... LastLast
Results 111 to 120 of 201
  1. #111
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,504
    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?

  2. #112
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,504
    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?

  3. #113
    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 it working thank you. Also is it possible to have it open as an seperate window?
    Quote Originally Posted by bkeaton View Post
    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?
    Both of these topics are discussed somewhere in this thread (I just don't remember exactly where)

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

    Default Re: Logo Sidebox Help

    I am trying to put two different images and the link but its stills showing 1 here is the code for that.

    <?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: logo_sidebox_defines.php,v 1.1 8/21/2008

    define('BOX_HEADING_LOGO_SIDEBOX', 'Follow us on these sites');
    define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '35');
    define('LOGO_SIDEBOX_IMAGE', 'twitter_logo_header.png');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Follow us on Twitter');

    //this is optional if you want to use the logo as a link
    //replace your_link.com with the link you choose
    define('LOGO_SIDEBOX_LINK', 'http://twitter.com/MorrisGiftShop');

    define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '35');
    define('LOGO_SIDEBOX_IMAGE', 'facebooklogo.jpg');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Follow us on Facebook');

    //this is optional if you want to use the logo as a link
    //replace your_link.com with the link you choose
    define('LOGO_SIDEBOX_LINK', 'http://facebook.com/MorrisGiftShop');


    ?>

  5. #115
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,504
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    Quote Originally Posted by clydejones View Post
    While the contrib was designed for only one logo, its easy enough to edit the following files to include multiple logos.

    open includes/languages/english/extra_definitions/logo_sidebox_defines.php

    below the default define statements just add additional define statements for your other logos.


    define('LOGO_SIDEBOX1_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX1_IMAGE_HEIGHT', '125');
    define('LOGO_SIDEBOX1_IMAGE', 'test_logo1.jpg');
    define('LOGO_SIDEBOX1_IMAGE_TEXT', 'My Logo1');

    //this is optional if you want to use the logo as a link
    //replace your_link.com with the link you choose
    define('LOGO_SIDEBOX1_LINK', 'http://your_link.com/');

    define('LOGO_SIDEBOX2_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX2_IMAGE_HEIGHT', '125');
    define('LOGO_SIDEBOX2_IMAGE', 'test_logo2.jpg');
    define('LOGO_SIDEBOX2_IMAGE_TEXT', 'My Logo2');

    //this is optional if you want to use the logo as a link
    //replace your_link.com with the link you choose
    define('LOGO_SIDEBOX2_LINK', 'http://your_link.com/');

    now open includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

    add the following statements

    // Link Option - uncomment this if you intend to use the logo as a link
    //$logoimage1 = '<a href="' . LOGO_SIDEBOX1_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT) . '</a>';

    //comment this out if you use the above link option.
    //$logoimage1 = zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT);

    // Link Option - uncomment this if you intend to use the logo as a link
    //$logoimage2 = '<a href="' . LOGO_SIDEBOX2_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT) . '</a>';

    //comment this out if you use the above link option.
    //$logoimage2 = zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT);

    // $content .= '<br />' . $logoimage1;
    // $content .= '<br />' . $logoimage2;

    Hope this helps.
    Clyde I have done this but I have a problem on my site http://www.morrisgiftshop.biz the left column the box says "Follow us on these sites" it is showing doubles of the information box instead the images and links how can I fix this?

  6. #116
    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 am trying to put two different images and the link but its stills showing 1 here is the code for that.

    <?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: logo_sidebox_defines.php,v 1.1 8/21/2008

    define('BOX_HEADING_LOGO_SIDEBOX', 'Follow us on these sites');
    define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '35');
    define('LOGO_SIDEBOX_IMAGE', 'twitter_logo_header.png');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Follow us on Twitter');

    //this is optional if you want to use the logo as a link
    //replace your_link.com with the link you choose
    define('LOGO_SIDEBOX_LINK', 'http://twitter.com/MorrisGiftShop');

    define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '35');
    define('LOGO_SIDEBOX_IMAGE', 'facebooklogo.jpg');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Follow us on Facebook');

    //this is optional if you want to use the logo as a link
    //replace your_link.com with the link you choose
    define('LOGO_SIDEBOX_LINK', 'http://facebook.com/MorrisGiftShop');


    ?>
    You need to rename your second image defines to:

    LOGO_SIDEBOX1_IMAGE

    without doing this you will only display one image instead of two.

  7. #117
    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
    Clyde I have done this but I have a problem on my site http://www.morrisgiftshop.biz the left column the box says "Follow us on these sites" it is showing doubles of the information box instead the images and links how can I fix this?
    without seeing the actual tpl_logo_sidebox.php you are using I'm not in a position to offer any useful advice.

  8. #118
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,504
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    Clyde here is my tpl_logo_sidebox.php

    <?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
    //$logoimage1 = '<a href="' . LOGO_SIDEBOX1_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT) . '</a>';

    //comment this out if you use the above link option.
    //$logoimage1 = zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT);

    // Link Option - uncomment this if you intend to use the logo as a link
    //$logoimage2 = '<a href="' . LOGO_SIDEBOX2_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT) . '</a>';

    //comment this out if you use the above link option.
    //$logoimage2 = zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT);

    // $content .= '<br />' . $logoimage1;
    // $content .= '<br />' . $logoimage2;

    ?>

    what am I doing wrong?

  9. #119
    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
    Clyde here is my tpl_logo_sidebox.php

    <?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
    //$logoimage1 = '<a href="' . LOGO_SIDEBOX1_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT) . '</a>';

    //comment this out if you use the above link option.
    //$logoimage1 = zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT);

    // Link Option - uncomment this if you intend to use the logo as a link
    //$logoimage2 = '<a href="' . LOGO_SIDEBOX2_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT) . '</a>';

    //comment this out if you use the above link option.
    //$logoimage2 = zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT);

    // $content .= '<br />' . $logoimage1;
    // $content .= '<br />' . $logoimage2;

    ?>

    what am I doing wrong?
    Looks like you forgot to include the content divs and you commented out the area that would display the images:


    Try this:

    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
    $logoimage1 '<a href="' LOGO_SIDEBOX1_LINK '">' zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' LOGO_SIDEBOX1_IMAGELOGO_SIDEBOX1_IMAGE_TEXTLOGO_SIDEBOX1_IMAGE_WIDTHLOGO_SIDEBOX1_IMAGE_HEIGHT) . '</a>';

    //comment this out if you use the above link option.
    //$logoimage1 = zen_image($template->get_template_dir(LOGO_SIDEBOX1_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX1_IMAGE, LOGO_SIDEBOX1_IMAGE_TEXT, LOGO_SIDEBOX1_IMAGE_WIDTH, LOGO_SIDEBOX1_IMAGE_HEIGHT);

    // Link Option - uncomment this if you intend to use the logo as a link
    $logoimage2 '<a href="' LOGO_SIDEBOX2_LINK '">' zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' LOGO_SIDEBOX2_IMAGELOGO_SIDEBOX2_IMAGE_TEXTLOGO_SIDEBOX2_IMAGE_WIDTHLOGO_SIDEBOX2_IMAGE_HEIGHT) . '</a>';

    //comment this out if you use the above link option.
    //$logoimage2 = zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT, LOGO_SIDEBOX2_IMAGE_WIDTH, LOGO_SIDEBOX2_IMAGE_HEIGHT);

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


     
    $content .= '<br />' $logoimage1;
     
    $content .= '<br />' $logoimage2;

      
    $content .= '</div>';


    ?>

  10. #120
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,504
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    Thanks I got it working. Now I have several questions is there a way to center the images and spread the image spacing because they are so close together?

 

 
Page 12 of 21 FirstFirst ... 21011121314 ... LastLast

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

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