Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    27
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Apr 2008
    Posts
    27
    Plugin Contributions
    0

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

  3. #3
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default 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.
    Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
    Printed book: www.lulu.com/content/10576284
    Electronic book and Errata: www.cucumbermedia.com/store

  4. #4
    Join Date
    Apr 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: images in blank_sidebox.php

    Thank you for your reply Canopy

    All is now sorted.

 

 

Similar Threads

  1. Just downloaded the blank_sidebox...
    By macc88 in forum Addon Sideboxes
    Replies: 2
    Last Post: 3 Nov 2009, 03:40 AM
  2. Issues with blank_sidebox
    By RSprinkel in forum Addon Sideboxes
    Replies: 2
    Last Post: 14 Apr 2007, 11:31 PM
  3. Javascript in blank_sidebox? How to.........????
    By tolefairy in forum Addon Sideboxes
    Replies: 1
    Last Post: 14 Apr 2007, 01:04 AM
  4. blank_sidebox how to EDIT question?
    By bubblefizz in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Dec 2006, 09:24 AM
  5. Blank_Sidebox files reversed???
    By MasterGroove in forum Basic Configuration
    Replies: 2
    Last Post: 15 Aug 2006, 10:02 AM

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