Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Custom Image Sidebox

    hello there,

    i downloaded the "blank sidebox" mod and i want to use it to display images. The problem is that i won't be using "a href" instead i will be using php script but this breaks the code.

    The code for the blank sidebox is below and i want to replace "ADD TEXT, LINKS, IMAGES with this code: <?php showImage(); ?>

    This breaks the whole code because it's inside another php script. How do i make it work without breaking it?


    <?php
    //
    // Blank Sidebox Mod
    // includes/templates/templates_default/sideboxes/tpl_blank_sidebox.php
    //
    // --------------------------------------------------
    // http://www.MommaMuse.com mod Zen-Cart - by Judi Cox
    // --------------------------------------------------
    // zen-cart Open Source E-commerce
    // Copyright (c) 2003-2006 The zen-cart developers
    // http://www.zen-cart.com/index.php
    // Portions Copyright (c) 2003 osCommerce
    // --------------------------------------------------
    // This source file is subject to version 2.0 of the GPL license,
    // that is bundled with this package in the file LICENSE, and is
    // available through the world-wide-web at the following url:
    // http://www.zen-cart.com/license/2_0.txt.
    // If you did not receive a copy of the zen-cart license and are unable
    // to obtain it through the world-wide-web, please send a note to
    // license AT zen-cart DOT com so we can mail you a copy immediately.
    // --------------------------------------------------
    //
    // $Id: tpl_blank_sidebox.php,v 1.0 6/24/2006
    // Original modification by Carter Harris charris AT technettn DOT net based on the tpl_featured.php file
    // Additionally modified by Judi Cox http://www.mommamuse.com

    $content = <<< End_Of_Quote
    <div>
    <table align="center">
    <tr>
    <td align="center">
    ADD TEXT, LINKS, IMAGES
    </td>
    <tr>
    <tr>
    <td align="center">
    ADD MORE TEXT, LINKS, IMAGES
    </td>
    <tr>
    </table>
    </div>
    End_Of_Quote;
    ?>

  2. #2
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Custom Image Sidebox

    Can someone please help :)

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Custom Image Sidebox

    What is showimage()? What script does it come from? How many files are involved? Are you using it elsewhere on your site? Where? How?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Custom Image Sidebox

    dr byte,

    the script is for an image rotator. there's only 2 files. you only include this script in the file where you want the image to appear.

 

 

Similar Threads

  1. Featured Product Sidebox Image - Only used in sidebox?
    By adg_ in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Mar 2010, 07:38 AM
  2. Add custom code to a sidebox (display godaddy SSL image)
    By gemohler in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Mar 2009, 04:44 AM
  3. custom sidebox
    By kriszti in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Feb 2009, 09:49 PM
  4. Custom SideBox
    By MCanes in forum General Questions
    Replies: 0
    Last Post: 6 Jul 2007, 03:46 AM
  5. sidebox html - add image/link to paypal verified sidebox
    By wasana in forum General Questions
    Replies: 0
    Last Post: 14 Jul 2006, 04:00 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