Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2011
    Posts
    65
    Plugin Contributions
    0

    Default customizing new sideboxes

    Hello,

    I've recently added a new sidebox to my site, the one in between categories and information.

    http://kamskungfucinema.com/zencart/

    I'm trying to customize this box so that there are two links, one saying "New Movies!" and the other saying "Win Free Movies With KUNG FU TRIVIA!" I can't seem to remove the part that says "Replace this text with your html content?"

    I've looked in my blank sidebox php file but can find nothing that says that?

    Also, how can I turn the text into links?

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: customizing new sideboxes

    That text is in

    /includes/languages/english/extra_definitions/blank_sidebox.php

    It seems that you edited it to add

    Code:
    define('BOX_HEADING_BLANK_SIDEBOX', 'Check It Out!');
    But over looked
    Code:
    define('TEXT_BLANK_SIDEBOX', 'Replace this text with your HTML content.');
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2011
    Posts
    65
    Plugin Contributions
    0

    Default Re: customizing new sideboxes

    Wow I did, thanks a lot.

    Now how do I make those texts links to other pages?

    And is there any way I can adjust the sidebox so there's not so much blank space in the middle, kind of shrink it down a bit?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: customizing new sideboxes

    Looks like you are missing an opening <p> tag closing tag is in red
    Code:
    <div id="blanksideboxContent" class="sideBoxContent">New Movies!</p><p>Win Free Movies With KUNG FU TRIVIA!</p></div>
    Might try this to close it up but I did not check it
    Code:
    <p>New Movies!<br /><br />Win Free Movies With KUNG FU TRIVIA!</p>
    links are stsndard html and might be
    Code:
    <p><a href="Your link">New Movies</a><br /><br /><a href="Your link">Win Free Movies With KUNG FU TRIVIA!</a></p>
    Last edited by kobra; 20 Mar 2011 at 05:03 AM.
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2011
    Posts
    65
    Plugin Contributions
    0

    Default Re: customizing new sideboxes

    Hmm... I dont see that exact sequence. Mine looks like this:

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

    // Replace the text and HTML tags between the apostophes on lines 19 and 20.
    // Use as many or as few lines using this model as you need for your custom content.
    // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
    // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
    $content .= 'New Movies!' . TEXT_BLANK_SIDEBOX . '</p>';
    $content .= '<p>Win Free Movies With KUNG FU TRIVIA!</p>';

    $content .= '</div>';
    ?>

    I'm missing an opening tag or a closing tag?

  6. #6
    Join Date
    Mar 2011
    Posts
    65
    Plugin Contributions
    0

    Default Re: customizing new sideboxes

    Ok I changed it the bottom part, and it looks like the space closed a bit

    // Replace the text and HTML tags between the apostophes on lines 19 and 20.
    // Use as many or as few lines using this model as you need for your custom content.
    // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
    // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
    $content .= '<p>New Movies!<br /><br />Win Free Movies With KUNG FU TRIVIA!</p>';

    $content .= '</div>';
    ?>

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

    Default Re: customizing new sideboxes

    Remove the <p> tags (but leave the single quotes) to remove the extra space.

 

 

Similar Threads

  1. Customizing sideboxes/banners
    By AngelT in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jun 2007, 08:03 PM
  2. Help! Customizing the sideboxes
    By chicweb in forum General Questions
    Replies: 0
    Last Post: 12 Apr 2007, 04:39 AM
  3. customizing sideboxes
    By dogmir in forum Basic Configuration
    Replies: 5
    Last Post: 24 Jan 2007, 08:10 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