Adding a landing page before the login page

5 replies
I have to a forum site set up using SMF software. I would like to add a landing page onwhich to add notices and promotions with an 'Enter' button for the forum member to go to the login page. Is this possible? If possible, is it easy to implement?

I tried adding an index.html page with a link to take me to the index.php or index.php~ but this does not work. I am taken to to the index page but cannot get to the login page from there so I guess if there is a solution it will require some changes to the code somewhere.
#adding #landing #login #page
  • Profile picture of the author Tim Brownlaw
    The link you'll need to put into your index.html file is...

    PHP Code:
    http://www.yoursitename.com/where_your_forum_lives/index.php?action=login 
    That will take you to the SMF login page.
    Is that what you wanted to do?

    Cheers
    Tim
    {{ DiscussionBoard.errors[3366989].message }}
  • Profile picture of the author Peter01
    Put the forum in a sub directory and have an index.html in the parent of that sub directory, you can't over write an index.php of software with html and expect the software to function
    {{ DiscussionBoard.errors[3367186].message }}
    • Profile picture of the author Tim Brownlaw
      Originally Posted by Peter01 View Post

      Put the forum in a sub directory and have an index.html in the parent of that sub directory, you can't over write an index.php of software with html and expect the software to function
      The index.php and the index.html files are two different files.

      What you are alluding to is which file is called by default when you just type in the URL ie www.yoursite.com.

      That depends upon the server which usually ( there are exceptions ) chooses the .html file over the .php and you can probably force the issue in the .htaccess file ( I've never done it there myself though).

      And you can call the index.php from the index.html.

      But if there was more going on which required an index.php file in the public_html folder , then yes, it would be preferable to have the forum script in it's own folder.

      @David Louis Monk
      And that's something we haven't asked - where is the forum script located?

      And just to add David, any file which ends in a ~ is a backup file and won't run. In fact there is no point in having them there.

      Which prompts another question - why is there an index.php~? If it's the forums index.php file - did you change something in it?

      Cheers
      Tim
      {{ DiscussionBoard.errors[3367257].message }}
      • Profile picture of the author David Louis Monk
        Hello Tim
        Thanks for your answer. I have just conducted a test by creating a file index_test.html and using the code you gave me.
        http://www.yoursitename.com/where_your_forum_lives/index.php?action=login
        This will work fine as I know by having the index.html file in the folder this is the page the visitor will land on. I was linking origianally to index.php which did not work.

        The forum I have installed on a property website and have installed it in its own subdirectory (folder). In trying to crack this problem before asking on the Warrior Forum, I caused a problem and had to ask my hosting company to restore my site; I think this explains why the .php~ came about. Thanks for telling me what this is, as now, I can delete the file.

        Thanks once again for your help.

        Signature

        David

        {{ DiscussionBoard.errors[3388555].message }}
        • Profile picture of the author Tim Brownlaw
          Great to hear David, and you are very welcome.

          There's nothing wrong with breaking things, it just means you are trying and learning.

          Good luck with it!

          Cheers
          Tim
          {{ DiscussionBoard.errors[3390123].message }}

Trending Topics