Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: Flash not working on my define_main_page

    22 IMAGES?!?! Who's gonna see that? Some "standard" is up to 5 images, but even 7 can go through. But 22? Really? Let's say there's a 5 seconds delay between the slides - who's gonna be staring at your slideshow for almost 2 minutes? Think about it...

    I like to use Nivo Slider and I integrate it to all of the sites I build. It's quite simple and very powerful. Plus, it's free.

    1. Download it to your computer. Rename jquery.nivo.slider.pack.js to jscript_jquery.nivo.slider.pack.js and copy that file to includes/modules/pages/index/
    If my memory serves me right, you're using Estorenow which already comes with jQuery so you're OK. (anyone else reading this - make sure you're utilizing jQuery with your template. if you're not, add jscript_jquery.js to your includes/templates/YOUR_TEMPLATE/jscript/ directory)

    2. Create a new stylesheet in your includes/templates/estorenow/css/ and make sure it's called index_home.css (this will make that stylesheet load ONLY on main page). Copy all code from nivo-slider.css AND any of the themes you like. If you're lazy, use the file I attached which uses the default theme.

    3. Find the 3 images used by nivo (nivo-slider/themes/default) and upload the images to your includes/templates/estorenow/images/

    4. add the following code to your includes/templates/estorenow/common/html_header.php just before the ending </head> tag
    Code:
    <script type="text/javascript">
        $(window).load(function() {
            $('#slider').nivoSlider();
        });
        </script>
    so it looks something like this:
    Code:
    // DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';
    
    
    ?>
    <script type="text/javascript">
        $(window).load(function() {
            $('#slider').nivoSlider();
        });
        </script>
    </head>
    <?php // NOTE: Blank line following is intended: ?>
    5. go to "admin -> tools -> define pages editor -> define_main_page.php" and make sure you're using Plain Text editor. Add the following code there:
    Code:
    <div class="slider-wrapper theme-default">
                <div id="slider" class="nivoSlider">
                    <img src="images/toystory.jpg" alt="" />
                    <a href="http://dev7studios.com"><img src="images/up.jpg" alt="" /></a>
                    <img src="images/walle.jpg" alt="" />
                    <img src="images/nemo.jpg" alt="" />
                </div>
            </div>
    6. edit the images source and save your page. If your source is "images/your_image.jpg" make sure you upload the image to your images directory (not template's images)

    This is it. Your slider should now appear on the main page. Some CSS tweaks might be required, most likely about slider width. You can duplicate the <img src... /> line for each of your images. Also, as the second demo image shows, you can make each image a link by wrapping it inside <a> tags. There are some additional settings (ie. delay, transition effect etc) that can be done with Nivo, check it out on their site.

    Have fun!

  2. #12
    Join Date
    Jul 2007
    Posts
    324
    Plugin Contributions
    0

    Default Re: Flash not working on my define_main_page

    Thank you. I will try this now. Just wanted to let you know The reason I ad so many images is because this site will sell all kinds of products like Amazon does and it will take you to other sites as well for products.

    I appreciate the help.
    LadyDee

  3. #13
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: Flash not working on my define_main_page

    One more thing you should keep in mind - 22 images will significantly slow your site down. Let's say your image will be only 50kB (which depends on image size, quality etc.), but let's say it's just 50kB. Loading 22 images is actually over a MB. Unless you're on a VERY good server, this will make your home page very slow. Of course, it depends on your server, but also keep in mind that not everyone can load 1+MB that fast. Also, the script I gave you will not show ANY images before ALL are loaded. Someone might not even see your slider... Think about it and try to cut down on the images, don't go over 10. It simply doesn't make any sense. I know I wouldn't be around waiting for the 15th to show up...

  4. #14
    Join Date
    Jul 2007
    Posts
    324
    Plugin Contributions
    0

    Default Re: Flash not working on my define_main_page

    Good looking out, true not everyone has the same bandwidth or operating system which can also make the site slow to even come up.

    LadyDee

  5. #15
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Flash not working on my define_main_page

    Theres no way that can't work unless there is something up with your computer, which is what that message was telling you about upgrading.

    Even if I simply drag a flash file into my browser it works.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. adding flash to the define_main_page
    By deemurphy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Apr 2012, 02:57 AM
  2. Emedding flash into define_main_page.php
    By bettsaj in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 11 Nov 2009, 02:15 PM
  3. Flash file in define_main_page.php obscures flyout menu
    By Yolanda in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Sep 2009, 02:01 AM
  4. Flash Movie resized in define_main_page
    By jdw1979 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Jun 2009, 05:07 PM
  5. Flash not working
    By AmandaGero in forum Basic Configuration
    Replies: 0
    Last Post: 23 Apr 2009, 10:12 PM

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