Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1
    Join Date
    Nov 2006
    Location
    Los Angeles
    Posts
    91
    Plugin Contributions
    0

    Default blank sidebox -- add photo

    ok i know i'm missing something fairly obvious but i can not seem to incorporate a photo into my blank sidebox.

    here is the code for /template/TRUBLU/sideboxes/tpl_blank_sidebox.php

    Code:
    <?php
    /**
     * blank sidebox - allows a blank sidebox to be added to your site
     *
     * @package templateSystem
     * @copyright 2007 Kuroi Web Design
      * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
     */
    
      $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 .= '<img src="gb_box.jpg">';
      $content .= '</div>';
    ?>
    the image file is included in the same folder (templates/trublu/sideboxes) but not showing. Nothing is showing but an empty box.

    Any suggestions? Thank you.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: blank sidebox -- add photo

    Try putting your image into your templates images folder and using this instead
    $content .= '<img src="' . DIR_WS_TEMPLATES . 'TRUBLU/images/gb_box.jpg">';
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Nov 2006
    Location
    Los Angeles
    Posts
    91
    Plugin Contributions
    0

    Default Re: blank sidebox -- add photo

    perfect!! thank you so very much :-)

  4. #4
    Join Date
    Jun 2007
    Location
    Milton Keynes UK
    Posts
    153
    Plugin Contributions
    0

    Default Re: blank sidebox -- add photo

    Is it possible to put a MARQUEE between the quotes?
    I tried but it makes a mess!
    If its possible can you help me how?

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: blank sidebox -- add photo

    Quote Originally Posted by francocauter View Post
    Is it possible to put a MARQUEE between the quotes?
    I tried but it makes a mess!
    If its possible can you help me how?
    You can put any valid HTML between the quotes, which just about includes a MARQUEE. But I'm not the right person to ask about constructing a MARQUEE as I wouldn't go near them.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: blank sidebox -- add photo

    Kuroi relents a little. You insert your marquee html in the tpl_blank_sidebox,php file, where the comment in that file tells you to.

    You will also need to escape the single quotes used in your javascript (i.e. type them as --> \' <--).

    However, moving off topic, when I look at your site, you seem to be trying to work in all the features that web designers have abandoned over the past five years: blinking text, intrusive music with no off button, animated gifs, too many font changes, and ... marquees. It's a shame because that looks like a promising small business with a clear identity and well-defined niche, i.e. a lot of potential.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Jun 2007
    Location
    Milton Keynes UK
    Posts
    153
    Plugin Contributions
    0

    Default Re: blank sidebox -- add photo

    Thanks Kuroi
    for everything: advice, suggestions and encouragement.
    I am building the site still and I am trying to find the best performance and impact.
    I want only 1 scrolling marquee easy to change products and offers and I am only at the beginning with code so the terminology its jargon sometime.
    What do you mean

    "escape the single quotes used in your javascript (i.e. type them as --> \' <--)"

    Thanks again for your patience

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: blank sidebox -- add photo

    The start and end of each block of text or HTML to be added to the side box is marked by a single quote. However, some of your marquee code also has single quotes which will confuse the PHP. To get around this the following section
    PHP Code:
    <MARQUEE behavior"scroll" align"center" direction"up" width"160" height="300" bgcolor="#FACF76" scrollamount"2" scrolldelay"10" onmouseover='this.stop()' onmouseout='this.start()'
    should be written
    PHP Code:
    <MARQUEE behavior"scroll" align"center" direction"up" width"160" height="300" bgcolor="#FACF76" scrollamount"2" scrolldelay"10" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'> 
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Jun 2007
    Location
    Milton Keynes UK
    Posts
    153
    Plugin Contributions
    0

    Default Re: blank sidebox -- add photo

    I did that Kuroi
    I get an error

    Parse error: syntax error, unexpected T_STRING in ../sideboxes\tpl_blank_sidebox.php on line 20

  10. #10
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: blank sidebox -- add photo

    That means that you have a syntax error in your PHP. There's nothing syntactically wrong with the code that you are using for your marquee, except for the need to escape those single quotes, so it must be some other aspect of how you have added it to the file. I recommend checking that you haven't accidentally removed the single quotes at the beginning or end, or left off the final semi-colon.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Adding Twitter code to Blank Sidebox Add On
    By habsolutely in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Sep 2011, 07:54 PM
  2. blank sidebox mod - won't let me add an image
    By zubenubi in forum General Questions
    Replies: 2
    Last Post: 1 Jul 2010, 06:07 PM
  3. how to add php coding to the 'blank sidebox' addon?
    By tyankee in forum Basic Configuration
    Replies: 2
    Last Post: 21 Mar 2010, 02:55 AM
  4. Add Photo to New Sidebox
    By brighteyedbambam in forum Basic Configuration
    Replies: 0
    Last Post: 11 Aug 2009, 03:03 PM
  5. Replies: 5
    Last Post: 23 May 2008, 07:45 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