News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Under construction page

Started by Thebestthere, January 15, 2012, 07:02:37 PM

Previous topic - Next topic

Thebestthere

I want do some forum updates,change theme and do a surprise, but I don't want others to see themes change and etc, I was just display this picture below using html pages, I don't want use the normal manutence state of SMF :/ how to do without something complex :F.

Sorry, If you didn't understand me  :-[





Texan78

What you want to do is really easy. If you don't want to use the SMF built in feature then you can just make a simple html page and call it index.html and rename your index.php of your forum to index1.php That way when some one visits your site it will show the under construction page by default since it's index.html

Here is the code for the index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Page Under Construction</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<style type="text/css">
body {
  background-color:#000;
}
.img {
  margin:180px 50px 75px 450px;
}
</style>
</head>
<body>
<div class="img"><img src="Under_Construction_Sign.jpg" alt="Under Construction"></div>
</body>
</html>



Which will make your page look like this...

http://www.mesquiteweather.net/weatherconnection/index1.html

You can add to it as you like if you want to add a message or use it as is.

Then you can access your forum by using index1.php but keep in mind when you click the nav back to the root it will be looking for index.php so you may want to change your setting to point to url/index1.php so it finds it when working within the forum. Also make sure the image is in the root with the index.html. If you want to put the image in a folder then make sure you add the file path to the image in the html code I posted.

-Hope this helps

Thebestthere

You're awesome! sad there's no +1 feature here!  ;D ooo and this is how i should :O to get a homepage :O?!

I just don't get a part " but keep in mind when you click the nav back to the root it will be looking for index.php so you may want to change your setting to point to url/index1.php so it finds it when working within the forum."  :o

Texan78

Since you are changing it from index.php to index1.php your navigation for when you want to go back to your index will take you to the html under construction page since the html is your default index page since the php page is now index1.php. By default it looks for index.*. So to work around that so you can work within your forum when you need to go back to your index page without seeing the under construction page you just need to go into your settings and change to this....

$boardurl = 'http://www.YOURSITE.com/index1.php'; # URL to your forum's folder. (without the trailing /!)

Just make sure when you're done with the under construction page and you name everything back you remove the /index1.php in the settings so your forum will function as normal.

When people go to your site though they will only see the under construction page since it will be the primary index page.

Thebestthere


Advertisement: