Results 1 to 2 of 2

change slideshow module position.

This is a discussion on change slideshow module position. within the Templating, CSS, Design forums, part of the osCmax V2.5 Forums category; i am designing a new template and i want the slideshow to be on the newly defined position on the ...

      
  1. #1
    Lurker
    Join Date
    Jan 2012
    Posts
    5
    Rep Power
    0


    Default change slideshow module position.

    i am designing a new template and i want the slideshow to be on the newly defined position on the page instead between column left column right is it possible ?

    and i also want to show the slideshow on every page.

    any help would be appreciated


    Regards,
    Ovais Lakhany

  2. #2
    Member
    Join Date
    Jul 2011
    Posts
    95
    Rep Power
    3


    1 out of 1 members found this post helpful.

    Default Re: change slideshow module position.

    At last I can give someone advice instead of asking how to do things!

    Add this code wherever you want the slideshow in the index page:

    <!-- slideshow module starts -->
    <?php // Set conditional load of showcase
    $LoadSlideshowJS=true;
    ?>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <?php
    $slideshow_query = tep_db_query("select slideshow_image from " . TABLE_SLIDESHOW . " where NOT find_in_set('" . $customer_group_id . "', slideshow_cg_hide) and slideshow_active = 'yes' order by slideshow_sort_order");
    $slideshow = tep_db_fetch_array($slideshow_query);
    $images_string = HTTP_SERVER . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . 'slideshow/' . $slideshow['slideshow_image'] ;
    ?>
    <div style="background-image:url( <?php echo $images_string; ?>);height:<?php echo SLIDESHOW_HEIGHT;?>px;width:<?php echo SLIDESHOW_WIDTH;?>px">
    <div id="slideshow"></div>
    </div>
    </td>
    </tr>
    </table>
    <!-- slideshow module ends -->

    Configure the slideshow in the admin just as you would normally. I put it in the header on one site so it spans the entire width of the header. You can also put it in the header but narrower so that you can have links on one side.

    Dan

Similar Threads

  1. [Catalog Issue] IE7 Table Position Problems
    By scalerockets in forum Bugs and Problems
    Replies: 0
    Last Post: 04-22-2011, 10:27 AM
  2. Price Position Modification
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-21-2009, 12:52 PM
  3. Google Position
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-29-2008, 08:10 PM
  4. Infobox width and position
    By bhejr in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 12-02-2005, 03:04 PM
  5. coolmenu position help (please)
    By seandon01 in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 11-25-2005, 03:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •