Zen Cart Logo
Forums / Basic Configuration / images in blank_sidebox.php

images in blank_sidebox.php

Locked

Views: 1,390

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
5 Aug 2008, 1:13 PM
#1
merlin01326 avatar

merlin01326

New Zenner

Join Date:
Apr 2008
Posts:
27
Plugin Contributions:
0

images in blank_sidebox.php

I have downloaded the blank_sideboxes.php and got it to show on the site.

The instructions say to use HTML to input images after the $content:=

I have tried using <img src = imagename.jpg> from my images folder and all I get is a little error image as though the image cannot be found.

Is this the problem or is it that I am not using the correct code.

Unfortunately I am using a localhost to build so not possible to show the problem

Any help would be appreciated. I have searched the site for image placements and do not want to use the banner system..

Thank you in anticipation

5 Aug 2008, 4:24 PM
#2
merlin01326 avatar

merlin01326

New Zenner

Join Date:
Apr 2008
Posts:
27
Plugin Contributions:
0

Re: images in blank_sidebox.php

To follow on from the above, this is the code that I have in at the moment highlighted in red...

$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/colour_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>' . TEXT_COLOUR_SIDEBOX . '</p>';
$content .= '<p> <img src="../../../../images/colours/black.jpg" alt="" />
You can include text, links, images, HTML markup and even PHP code</p>';

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

5 Aug 2008, 11:50 PM
#3
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: images in blank_sidebox.php

You can use the zen_image() function for this purpose.

To get an idea of how to use that function, you might want to take a look at the PayPal Verified Logo sidebox mod and see how everything ties together.

6 Aug 2008, 3:15 PM
#4
merlin01326 avatar

merlin01326

New Zenner

Join Date:
Apr 2008
Posts:
27
Plugin Contributions:
0

Re: images in blank_sidebox.php

Thank you for your reply Canopy

All is now sorted.