Forums / Addon Sideboxes / customizing new sideboxes

customizing new sideboxes

Started by jenesaisquoi on 20 Mar 2011, 2:58 AM · Views: 1,096

Results 1 to 7 of 7
20 Mar 2011, 2:58 AM
#1
jenesaisquoi avatar

jenesaisquoi

New Zenner

Join Date:
Mar 2011
Posts:
65
Plugin Contributions:
0

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.

20 Mar 2011, 3:31 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: customizing new sideboxes

That text is in

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

It seems that you edited it to add

define('BOX_HEADING_BLANK_SIDEBOX', 'Check It Out!');

But over looked

define('TEXT_BLANK_SIDEBOX', 'Replace this text with your HTML content.');

Zen-Venom Get Bitten

20 Mar 2011, 3:53 AM
#3
jenesaisquoi avatar

jenesaisquoi

New Zenner

Join Date:
Mar 2011
Posts:
65
Plugin Contributions:
0

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?

20 Mar 2011, 3:58 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: customizing new sideboxes

Looks like you are missing an opening <p> tag closing tag is in red

<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

<p>New Movies!<br /><br />Win Free Movies With KUNG FU TRIVIA!</p>

links are stsndard html and might be

<p><a href="Your link">New Movies</a><br /><br /><a href="Your link">Win Free Movies With KUNG FU TRIVIA!</a></p>

Zen-Venom Get Bitten

20 Mar 2011, 4:11 AM
#5
jenesaisquoi avatar

jenesaisquoi

New Zenner

Join Date:
Mar 2011
Posts:
65
Plugin Contributions:
0

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?

20 Mar 2011, 4:26 AM
#6
jenesaisquoi avatar

jenesaisquoi

New Zenner

Join Date:
Mar 2011
Posts:
65
Plugin Contributions:
0

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>';
?>

20 Mar 2011, 1:02 PM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: customizing new sideboxes

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