Page 18 of 21 FirstFirst ... 81617181920 ... LastLast
Results 171 to 180 of 201
  1. #171
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default cloned sidebox breaks my site

    I've been trying to creat extra sideboxes named logo, logoa, logob first 2 install no problem but as soon as I install logob it breaks my site. Renamed all the folders and files as per read me even tried giving them different names ie paylal_sidebox, delivery_sidebox but they still give the same result, is there something I'm missing
    <?php
    //
    //Contribution: Logo Sidebox
    //Author: Clyde Jones (http://clydedesigns.com/)
    //Version: 2.1
    //Updated: 5/17/2011
    //Updated by gjh42 20110517
    //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 2.1 2011-05-17

    define('BOX_HEADING_LOGO_SIDEBOX', '');

    //Logo number 1
    define('LOGO_SIDEBOX_IMAGE_WIDTH', '125');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '125');
    define('LOGO_SIDEBOX_IMAGE', 'logo_test.jpg');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'My Logo');
    define('LOGO_IMAGE', 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 is optional if you want to use the logo as a link
    //add your link information to the define statement below
    //examples
    //define('LOGO_SIDEBOX_LINK', '"http://your_link.com/" rel="external" target="_blank"');//only if you want to open in a new window
    //define('LOGO_SIDEBOX_LINK', '"http://your_link.com/"');//if you want to open in the same window, such as going to your own site's page
    //define('LOGO_SIDEBOX_LINK', '"index.php?main_page=whatever&amp;id=etc"');//for a link to a page on your site
    define('LOGO_SIDEBOX_LINK', '');
    ?>

    <?php
    //
    //Contribution: Logo Sidebox
    //Author: Clyde Jones (http://mysticmountainnaturals.com/testsite)
    //Version: 2.1
    //Updated: 2/13/2010
    //Updated by gjh42 20110517
    //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.php, v 2.1 2011-05-17

    // test if box should display
    $show_logo_sidebox = true;

    if ($show_logo_sidebox == true) {
    require($template->get_template_dir('tpl_logo_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox.php');
    $title = BOX_HEADING_LOGO_SIDEBOX;
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }
    ?>

    <?php
    //
    //Contribution: Logo Sidebox
    //Author: Clyde Jones (http://mysticmountainnaturals.com/testsite)
    //Version: 2.1
    //Updated: 2/13/2010
    //Updated by gjh42 20110517
    //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 2.1 2011-05-17
    // --------------------------------------------------
    //

    $logo_image = (LOGO_SIDEBOX_LINK == '')? LOGO_IMAGE: '<a href=' . LOGO_SIDEBOX_LINK . '>' . LOGO_IMAGE . '</a>';
    $content = '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . $logo_image . '</div>';
    ?>

    all I do is add a to the next and b to the next
    thankfully it's not on my live site just a test site I have.
    http://www.rvsolarsystems.co.uk/zen1...php?main_page=
    Last edited by discoverytdi; 1 Sep 2011 at 12:28 AM.
    What ever your doing remember to KISS ( Keep It Simple Stupid )

  2. #172
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: cloned sidebox breaks my site

    Renamed all the folders and files as per read me
    Did you also change all of the variables and constants, like

    $logoa_image = (LOGOA_SIDEBOX_LINK

  3. #173
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: cloned sidebox breaks my site

    Quote Originally Posted by gjh42 View Post
    Did you also change all of the variables and constants, like

    $logoa_image = (LOGOA_SIDEBOX_LINK
    yes to be honest I cheated and used find and replace using crimson editor, as I say logo and logoa all changed via find and replace work but logob breaks the test site is the Character case important may be that lower case with lower case upper case with upper case bit late now I'll have go tommorow
    Last edited by discoverytdi; 1 Sep 2011 at 12:45 AM.
    What ever your doing remember to KISS ( Keep It Simple Stupid )

  4. #174
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: cloned sidebox breaks my site

    Find and replace is the most reliable way to ensure not missing one, as long as you check each one to make sure it is one that should be replaced. If it worked with logoa, I can't think of a reason it wouldn't work with logob. Did you start from the original files each time, or did you change the logoa files to logob?

  5. #175
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: cloned sidebox breaks my site

    Quote Originally Posted by gjh42 View Post
    Find and replace is the most reliable way to ensure not missing one, as long as you check each one to make sure it is one that should be replaced. If it worked with logoa, I can't think of a reason it wouldn't work with logob. Did you start from the original files each time, or did you change the logoa files to logob?
    just renamed all the fies and folder logob

    and how did you get the different fonts on your home page tried for days gave up in the end
    What ever your doing remember to KISS ( Keep It Simple Stupid )

  6. #176
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: cloned sidebox breaks my site

    If you mean the Future Relics site, all of the collection titles were hand calligraphed by a friend of ours. I converted them to images and inserted them in the appropriate places in define_main_page.php.

  7. #177
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: cloned sidebox breaks my site

    Quote Originally Posted by gjh42 View Post
    If you mean the Future Relics site, all of the collection titles were hand calligraphed by a friend of ours. I converted them to images and inserted them in the appropriate places in define_main_page.php.
    cool
    What ever your doing remember to KISS ( Keep It Simple Stupid )

  8. #178
    Join Date
    May 2007
    Posts
    124
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    Hi
    When opening a new window for a link of a logo image, how do we resize the new window and remove the toolbar?

  9. #179
    Join Date
    Aug 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Logo Sidebox Help

    Ok, So I have followed the intstructions for cloning.and when I make all the changes the graphic does not appear. Here are my files

    logo_sidebox_defines.php
    <?php
    //
    //Contribution: Logo Sidebox
    //Author: Clyde Jones (http://clydedesigns.com/)
    //Version: 2.1
    //Updated: 5/17/2011
    //Updated by gjh42 20110517
    //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 2.1 2011-05-17

    define('BOX_HEADING_LOGO_SIDEBOX', '');

    //Logo number 1
    define('LOGO_SIDEBOX_IMAGE_WIDTH', '206');
    define('LOGO_SIDEBOX_IMAGE_HEIGHT', '111');
    define('LOGO_SIDEBOX_IMAGE', 'JustinLogo.png');
    define('LOGO_SIDEBOX_IMAGE_TEXT', 'Justin Boots');
    define('LOGO_IMAGE', 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 is optional if you want to use the logo as a link
    //add your link information to the define statement below
    //examples
    //define('LOGO_SIDEBOX_LINK', '"http://your_link.com/" rel="external" target="_blank"');//only if you want to open in a new window
    //define('LOGO_SIDEBOX_LINK', '"http://your_link.com/"');//if you want to open in the same window, such as going to your own site's page
    //define('LOGO_SIDEBOX_LINK', '"index.php?main_page=whatever&amp;id=etc"');//for a link to a page on your site
    define('LOGO_SIDEBOX_LINK', 'index.php?main_page=index&cPath=1');


    ?>


    logo_sidebox_defines.php
    // --------------------------------------------------
    // 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 2.1 2011-05-17

    define('BOX_HEADING_LOGO2_SIDEBOX', '');

    //Logo number 1
    define('LOGO2_SIDEBOX_IMAGE_WIDTH', '206');
    define('LOGO2_SIDEBOX_IMAGE_HEIGHT', '111');
    define('LOGO2_SIDEBOX_IMAGE', 'JustinLogo.png');
    define('LOGO2_SIDEBOX_IMAGE_TEXT', 'Justin Boots');
    define('LOGO2_IMAGE', zen_image($template->get_template_dir(LOGO2_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO2_SIDEBOX_IMAGE, LOGO2_SIDEBOX_IMAGE_TEXT, LOGO2_SIDEBOX_IMAGE_WIDTH, LOGO2_SIDEBOX_IMAGE_HEIGHT));

    //this is optional if you want to use the logo as a link
    //add your link information to the define statement below
    //examples
    //define('LOGO2_SIDEBOX_LINK', '"http://your_link.com/" rel="external" target="_blank"');//only if you want to open in a new window
    //define('LOGO2_SIDEBOX_LINK', '"http://your_link.com/"');//if you want to open in the same window, such as going to your own site's page
    //define('LOGO2_SIDEBOX_LINK', '"index.php?main_page=whatever&amp;id=etc"');//for a link to a page on your site
    define('LOGO2_SIDEBOX_LINK', 'index.php?main_page=index&cPath=1');


    ?>

    logo_sidebox.php
    <?php
    //
    //Contribution: Logo Sidebox
    //Author: Clyde Jones (http://mysticmountainnaturals.com/testsite)
    //Version: 2.1
    //Updated: 2/13/2010
    //Updated by gjh42 20110517
    //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.php, v 2.1 2011-05-17

    // test if box should display
    $show_logo_sidebox = true;

    if ($show_logo_sidebox == true) {
    require($template->get_template_dir('tpl_logo_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo_sidebox.php');
    $title = BOX_HEADING_LOGO_SIDEBOX;
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }
    ?>

    logo2_sidebox.php
    <?php
    //
    //Contribution: Logo Sidebox
    //Author: Clyde Jones (http://mysticmountainnaturals.com/testsite)
    //Version: 2.1
    //Updated: 2/13/2010
    //Updated by gjh42 20110517
    //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.php, v 2.1 2011-05-17

    // test if box should display
    $show_logo2_sidebox = true;

    if ($show_logo2_sidebox == true) {
    require($template->get_template_dir('tpl_logo2_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo2_sidebox.php');
    $title = BOX_HEADING_LOGO2_SIDEBOX;
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }
    ?>

    tpl_logo_sidebox.php
    <?php
    //
    //Contribution: Logo Sidebox
    //Author: Clyde Jones (http://mysticmountainnaturals.com/testsite)
    //Version: 2.1
    //Updated: 2/13/2010
    //Updated by gjh42 20110517
    //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 2.1 2011-05-17
    // --------------------------------------------------
    //

    $logo_image = (LOGO_SIDEBOX_LINK == '')? LOGO_IMAGE: '<a href=' . LOGO_SIDEBOX_LINK . '>' . LOGO_IMAGE . '</a>';
    $content = '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . $logo_image . '</div>';


    ?>

    tpl_logo2_sidebox.php
    <?php
    //
    //Contribution: Logo Sidebox
    //Author: Clyde Jones (http://mysticmountainnaturals.com/testsite)
    //Version: 2.1
    //Updated: 2/13/2010
    //Updated by gjh42 20110517
    //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 2.1 2011-05-17
    // --------------------------------------------------
    //

    $logo_image = (LOGO2_SIDEBOX_LINK == '')? LOGO2_IMAGE: '<a href=' . LOGO2_SIDEBOX_LINK . '>' . LOGO2_IMAGE . '</a>';
    $content = '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . $logo2_image . '</div>';


    ?>

    Can not figure out why the images are not showing in logo2

    David

  10. #180
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Logo Sidebox Help

    I'll have to look at it later... too tired to concentrate now:)

 

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