Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    help question How to show HTML content in side bar? Thanks.

    Hi folks,

    I want to embed something like HTML content into my side column, I know there is a sidebox, but how do I display HTML content directly? without user has to click a link to open it in another window?

    I use lots of this in WordPress, there you can easily embed any HTML content in text widget. How do I do this in Zen Cart?

    Thank you very much.

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

    Default Re: How to show HTML content in side bar? Thanks.

    Get the Blank Sidebox mod from Free Addons. If you don't want it to look like other sideboxes, you can hide the heading and borders with CSS.

  3. #3
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    Default Re: How to show HTML content in side bar? Thanks.

    Quote Originally Posted by gjh42 View Post
    Get the Blank Sidebox mod from Free Addons. If you don't want it to look like other sideboxes, you can hide the heading and borders with CSS.
    Can you please elaborate it? Where can I get a Blank Sidebox mod from Free Addons?

    This is my first time using Zen Cart.

    Thank you very much.

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

    Default Re: How to show HTML content in side bar? Thanks.

    Free Software Addons link at top of this page.

    Blank Sidebox

    And you should be reading the tutorials on templates and customization before starting work.

  5. #5
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    red flag Re: How to show HTML content in side bar? Thanks.

    Quote Originally Posted by gjh42 View Post
    Free Software Addons link at top of this page.

    Blank Sidebox

    And you should be reading the tutorials on templates and customization before starting work.
    Thank you!

    I downloaded the addon, and made some changes to create my own HTML content, basically I want to have a clustermap on the right hand side instead of current footer position.

    I made my modification based on this post:
    http://www.zen-cart.com/forum/showthread.php?t=115006

    But where else should I make setting change? maybe in Admin somewhere?

    Can you tell me more details on how to do this?

    Thank you very much in advance

    BTW: here is my site: http://www.xiexianhui.com/food/

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

    Default Re: How to show HTML content in side bar? Thanks.

    One tutorial: How do I remove and/or re-arrange the sideboxes? But it's not clear what you have already done and what you might have missed.

  7. #7
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    red flag Re: How to show HTML content in side bar? Thanks.

    Quote Originally Posted by gjh42 View Post
    Free Software Addons link at top of this page.

    Blank Sidebox

    And you should be reading the tutorials on templates and customization before starting work.
    I still need somebody to help me out

    this is my site:
    http://www.xiexianhui.com/food/

    I am trying to add a cluster map to the website, I created a ezpage and put it on the right side, but it shows only as a link, I want the map be displayed there, the map is basically a HTML code:

    <a href="http://www4.clustrmaps.com/user/6b2e433d"><img src="http://www4.clustrmaps.com/stats/maps-no_clusters/www.xiexianhui.com-thumb.jpg" alt="Locations of visitors to this page" />
    </a>

    Can someone please tell me how to do this? The more detailed the better, Zen Cart is so powerful and so complex to new zenner like me, there is a learning curve but I do want my site be up and running as early as possible.

    Thanks.

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

    Default Re: How to show HTML content in side bar? Thanks.

    An ez-page will not display directly in a sidebox. You need to add the actual cluster map code to the blank sidebox file. Follow the Blank Sidebox instructions, which are very simple. If there is some part of that which gives you a problem, tell us exactly what you have done.

  9. #9
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    Default Re: How to show HTML content in side bar? Thanks.

    Quote Originally Posted by gjh42 View Post
    An ez-page will not display directly in a sidebox. You need to add the actual cluster map code to the blank sidebox file. Follow the Blank Sidebox instructions, which are very simple. If there is some part of that which gives you a problem, tell us exactly what you have done.
    I still couldn't make it working, here is what I did to the Blank Side Box:

    This is what I put in the /public_html/food/includes/languages/english/extra_definitions/blank_sidebox_defines.php
    <?php
    define('BOX_HEADING_BLANK_SIDEBOX', 'POE Clocks');
    define('TEXT_BLANK_SIDEBOX', '');
    ?>

    This is what I put in the /public_html/food/includes/templates/aberdeen_neutral/sideboxes/tpl_blank_sidebox.php

    <?php
    $content = '';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
    $content .= '<p>' . TEXT_BLANK_SIDEBOX . '</p>';
    $content .= '<p><a href="http://www4.clustrmaps.com/user/6b2e433d"><img src="http://www4.clustrmaps.com/stats/maps-no_clusters/www.xiexianhui.com-thumb.jpg" alt="Locations of visitors to this page" />
    </a>
    </p>';
    $content .= '</div>';

    Thank you again for your kind help.

    It would be greatly appreciated if you can post your website's coding here.
    Last edited by mdivk; 23 Sep 2011 at 07:59 PM.

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

    Default Re: How to show HTML content in side bar? Thanks.

    Your code works here. www .stevesh.org

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Why doesn't the HTML content show up ?
    By AbbyTan in forum General Questions
    Replies: 15
    Last Post: 26 Sep 2015, 05:16 AM
  2. Getting HTML bar to show on every page on my site
    By thebigkick in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 May 2012, 04:49 PM
  3. Click category to show subcategory in the side menu but not in the main content box
    By dealbyethan.com in forum Setting Up Categories, Products, Attributes
    Replies: 23
    Last Post: 3 Mar 2011, 03:04 PM
  4. Images show HTML content under title bar
    By dmacmanes in forum General Questions
    Replies: 0
    Last Post: 1 Jan 2010, 05:05 PM
  5. How to Add SSL Seal to Side Bar Under Side Boxes
    By jacdesigner in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Mar 2009, 08:54 AM

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