Page 7 of 21 FirstFirst ... 5678917 ... LastLast
Results 61 to 70 of 201
  1. #61

    Default Re: Logo Sidebox Help

    For some reason, I cannot get my image to show. I made sure everything was spelled correctly. I checked paths to make sure everything coincided. I also changed paths as a test putting the jpg in same directory, still a no go. I must be missing something really simple!

    I am running 1.38 of Zen Cart.

    Here is what I currently have:
    http://www.crochetgarden.com (lower left, last box on left), has red X.

    Here is what I have in my file:

    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: logo_sidebox_defines.php,v 1.1 8/21/2008
    
    define('BOX_HEADING_LOGO_SIDEBOX', 'Member Of');
    define('LOGO_SIDEBOX_IMAGE_WIDTH', '100');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '102');
    define('LOGO_SIDEBOX_IMAGE', 'cgoa.jpg');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Member of CGOA');
    
    //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://www.crochet.org/');
    
    ?>
    And, here is the link for the image:
    http://www.crochetgarden.com/include...USTOM/cgoa.jpg

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

    Default Re: Logo Sidebox Help

    Quote Originally Posted by Elarya View Post
    For some reason, I cannot get my image to show. I made sure everything was spelled correctly. I checked paths to make sure everything coincided. I also changed paths as a test putting the jpg in same directory, still a no go. I must be missing something really simple!

    I am running 1.38 of Zen Cart.

    Here is what I currently have:
    http://www.crochetgarden.com (lower left, last box on left), has red X.

    Here is what I have in my file:

    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: logo_sidebox_defines.php,v 1.1 8/21/2008
    
    define('BOX_HEADING_LOGO_SIDEBOX', 'Member Of');
    define('LOGO_SIDEBOX_IMAGE_WIDTH', '100');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '102');
    define('LOGO_SIDEBOX_IMAGE', 'cgoa.jpg');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Member of CGOA');
    
    //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://www.crochet.org/');
    
    ?>
    And, here is the link for the image:
    http://www.crochetgarden.com/include...USTOM/cgoa.jpg
    The image needs to be placed in
    includes/templates/CUSTOM/images/cgoa.jpg

  3. #63

    Default Re: Logo Sidebox Help

    Thank you Thank you!! It is now working :)

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

    Default Re: Logo Sidebox Help

    Quote Originally Posted by Elarya View Post
    Thank you Thank you!! It is now working :)
    Glad it working

  5. #65
    Join Date
    Jul 2008
    Posts
    238
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    how do i add mutiple logos in my logo sidebox with hyperlinks for each?, because im an authorized dealer for a couple companies and id like to have them in my sidebox.

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

    Default Re: Logo Sidebox Help

    Quote Originally Posted by rickiesdiscount View Post
    how do i add mutiple logos in my logo sidebox with hyperlinks for each?, because im an authorized dealer for a couple companies and id like to have them in my sidebox.
    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.

  7. #67
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    258
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    Clyde,
    I'd like to add a second logo sidebox. I am currently using one to display a link to my tag previewer. I'd like to add a second for announcements, upcoming shows, vacations, etc. What do I call the files for the second sidebox & what do I need to add/change in the stylesheet to accomplish this?

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

    Default Re: Logo Sidebox Help

    Quote Originally Posted by gizmo_girl View Post
    Clyde,
    I'd like to add a second logo sidebox. I am currently using one to display a link to my tag previewer. I'd like to add a second for announcements, upcoming shows, vacations, etc. What do I call the files for the second sidebox & what do I need to add/change in the stylesheet to accomplish this?
    rename the files as indicated(highlighted

    includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo_sidebox_one_defines.php
    includes/modules/sideboxes/YOUR_TEMPLATE/logo_sidebox_one.php
    includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox_one.php

    For logo_sidebox_one_defines.php make the following changes

    Code:
    define('BOX_HEADING_LOGO_SIDEBOX1', '');
    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/');
    for logo_sidebox_one.php make the following changes
    Code:
      if ($show_logo_sidebox == true) {
          require($template->get_template_dir('tpl_logo_sidebox_one.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox_one.php');
          $title =  BOX_HEADING_LOGO_SIDEBOX;
    for tpl_logo_sidebox_one.php make the following changes

    Code:
    / 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);
    
    $content .= $logoimage1;
    You shouldn't have to make any changes to your stylesheet.css

  9. #69
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    258
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    Clyde, I have the logo_sidebox_one showing up in my layout boxes controller, so it appears as though I have at least uploaded the files correctly. I activated the box, but it doesn't show up on the site. I cannot seem to find what I've done wrong. I've looked over the files again & again, but I have to still be missing something...Ideas?

    Here's what I have for the php files...


    logo_sidebox_one_defines.php

    define('BOX_HEADING_LOGO_SIDEBOX1', 'Notices & Announcements');
    define('LOGO_SIDEBOX1_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX1_IMAGE_HEIGHT', '150');
    define('LOGO_SIDEBOX1_IMAGE', 'notices.gif');
    define('LOGO_SIDEBOX1_IMAGE_TEXT', 'Notices');

    //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://www.blahblahblah" target="_blank');


    logo_sidebox_one.php:

    $show_logo_sidebox = true;

    if ($show_logo_sidebox_one == true) {
    require($template->get_template_dir('tpl_logo_sidebox_one.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox_one.php');
    $title = BOX_HEADING_LOGO_SIDEBOX;
    $left_corner = false;
    $right_corner = false;
    $right_arrow = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }


    tpl_logo_sidebox_one.php:

    // 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.
    $logoimage = 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);

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

    $content .= $logoimage1;

    $content .= '</div>';

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

    Default Re: Logo Sidebox Help

    Quote Originally Posted by gizmo_girl View Post
    Clyde, I have the logo_sidebox_one showing up in my layout boxes controller, so it appears as though I have at least uploaded the files correctly. I activated the box, but it doesn't show up on the site. I cannot seem to find what I've done wrong. I've looked over the files again & again, but I have to still be missing something...Ideas?

    Here's what I have for the php files...


    $show_logo_sidebox = true;

    if ($show_logo_sidebox_one == true) {
    require($template->get_template_dir('tpl_logo_sidebox_one.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox_one.php');
    $title = BOX_HEADING_LOGO_SIDEBOX1;
    $left_corner = false;
    $right_corner = false;
    $right_arrow = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }


    tpl_logo_sidebox_one.php:

    // 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.
    $logoimage = 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);

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

    $content .= $logoimage1;

    $content .= '</div>';
    make these changes and see if that helps

    $show_logo_sidebox = true;

    if ($show_logo_sidebox_one == true) {
    require($template->get_template_dir('tpl_logo_sidebox_one.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox_one.php');
    $title = BOX_HEADING_LOGO_SIDEBOX1;
    $left_corner = false;
    $right_corner = false;
    $right_arrow = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }


    tpl_logo_sidebox_one.php:

    // 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);

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

    $content .= $logoimage1;

    $content .= '</div>';

 

 
Page 7 of 21 FirstFirst ... 5678917 ... 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