Adding a landing page before the login page

by 5 replies
7
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.
#programming #adding #landing #login #page
  • 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
  • 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
    • [1] reply
    • 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
      • [ 1 ] Thanks
      • [1] reply

Next Topics on Trending Feed

  • 7

    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.