WordPress.org

Forums

Flash Intro issue...Please help (6 posts)

  1. pierrescottdesign
    Member
    Posted 4 years ago #

    Hi All,

    I have uploaded a flash intro to my site on my godaddy server. I saw on the other forums that in the forums that I can add

    DirectoryIndex index.html index.php

    to my .htaccess file to point to the flash intro first and then have that page redirect to the index.php. But now all my page does is loads the index.html (flash intro) and keeps redirecting to itself no matter what page link I have from my wordpress blog set to redirect to. Why is this the case?

  2. I wouldn't use this method. If you must have a Flash intro - and I have strong feelings on the matter, but that's another topic ;-) - I would use the static front page method.

  3. Carrizo
    Member
    Posted 4 years ago #

    OK I don't get I want to integrate this
    http://videohive.net/item/particle-writing-logo-cs3/135467
    in the very front page before going into the home page. How can I do that all I need to know is how to create the very first page to integrate this!

  4. sarajty
    Member
    Posted 3 years ago #

    Hello,

    I had the same issue with the index.html file repeating the Flash intro over and over again. I ended up re-naming the page intro.html and it solved the repeat issue.

    Then in order for the intro.html page to load at the main URL, and load only once, I changed the index.php file to this:

    <?php
        session_start();
        if(!isset($_SESSION['flashIntroShown']))
        {
            $_SESSION['flashIntroShown'] = 1;
            header('Location: http://yourwebsiteURL.com/intro.html');
        }
    
    define('WP_USE_THEMES', true);
    
    require('./wp-blog-header.php');
    ?>

    I didn't have to make any changes to the rest of the wordpress site. Hope that helps!

  5. Carrizo
    Member
    Posted 3 years ago #

    I don't get it!

  6. HeatherFeuer
    Member
    Posted 3 years ago #

    Thank you so much for this! I have a client who really wanted to keep the intro that she had when I moved her site from another CMS to WordPress. The static front page option wouldn't work since I already have the site set up that way (I'm using WP as a CMS). Your code worked beautifully!

    One question: with the old CMS, we had a session cookie script set so that if a visitor came back within 24 hours, they would skip the intro. How can I make that work? Should I incorporate that code into the index.php file as well?

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic