Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Idea or Suggestion Adding Graphic Image/Script Element on Left/Right Column

    I am trying to add some sales graphics on the right and left columns as well as livehelp graphic icon. I do not want this images in a sidebox. I tried to do it and it appears to work but I am not sure if this is the right way/code to achieve what I am trying to do. Please take a look at the code below to see what I have done. I copied a whole section from the tpl_main_page.php so you can see my change.

    You can see the result of this code at clevershoppers.com/zctest/ on the right side below the last sidebox. Please help me do this the right way :)


    PHP Code:
    /**
      * prepares and displays right column sideboxes
      *
      */
    ?>
    <div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT?>"><?php require(DIR_WS_MODULES zen_get_module_directory('column_right.php')); ?></div><a href="http://www.clevershoppers.com/music-rock-c-9_40.html">
    <img border="0" src="/images/top_rock2.jpg" width="164" height="49"></a><br /><br /><script type="text/javascript" src="https://clevershoppers.com/livehelp/livehelp_js.php?relative=Y&amp;department=1&amp;pingtimes=15&amp;secure=Y"></script></td>
    <?php
    }
    ?>
      </tr>
    </table>

    <?php
     
    /**
      * prepares and displays footer output

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Adding Graphic Image/Script Element on Left/Right Column

    That is one way to do it, and there's nothing strictly wrong with it.

    You could also do it using sideboxes, but use a custom sidebox display template for them so that the header/footer/borders aren't there. That's a bit more work to achieve effectively the same result.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Adding Graphic Image/Script Element on Left/Right Column

    Quote Originally Posted by bunyip
    That is one way to do it, and there's nothing strictly wrong with it.

    You could also do it using sideboxes, but use a custom sidebox display template for them so that the header/footer/borders aren't there. That's a bit more work to achieve effectively the same result.
    Thank you for the feedback. The only problem is it doesn't validate...it's looking for alt image attribute. Also, what syntax do I use to make sure the image is centered? Everything I have tried doesn't work.

  4. #4
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Adding Graphic Image/Script Element on Left/Right Column

    You could try modifying the code you posted earlier to this:
    Code:
    /** 
      * prepares and displays right column sideboxes 
      * 
      */ 
    ?> 
    <div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?></div><div class="centeredContent"><a href="http://www.clevershoppers.com/music-rock-c-9_40.html"> 
    <img border="0" src="/images/top_rock2.jpg" width="164" height="49" alt="whatever alt text you want" /></a><br /><br /><script type="text/javascript" src="https://clevershoppers.com/livehelp/livehelp_js.php?relative=Y&amp;department=1&amp;pingtimes=15&amp;secure=Y"></script></div></td> 
    <?php 
    } 
    ?> 
      </tr> 
    </table> 
    
    <?php
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  5. #5
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Adding Graphic Image/Script Element on Left/Right Column

    Thanks for the updated code. It now validates but the image for the livehelp is not centered. I am suspecting it has something to do with the script. At least I can live with this now.

 

 

Similar Threads

  1. Adding image to left and right side of page
    By captainmorgan in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Oct 2009, 04:35 PM
  2. Adding an image to left column???
    By MCanes in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 8 Oct 2007, 05:17 AM
  3. Adding images to right/left column
    By robinstl in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Oct 2007, 05:46 AM
  4. adding an image to the left column
    By awoman in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 13 Oct 2006, 05:07 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