Jump to content

Featured Replies

Posted

Hello I'm trying to add a custom html page to put up on my site when it's either being maintained or when people get an error. I followed the guide I saw on the site about adding a new file to the home dir called constants.php I did this but it's not showing any suggestions?

Solved by Jim M

Go to solution

Hi, what guide? constants.php is not a file/page to show to users.

4 hours ago, WP V0RT3X said:

Hi, what guide? constants.php is not a file/page to show to users.

It isnt. But it is how you would designate what page to show to users in the event of maintenance.

8 hours ago, Revanx34 said:

Hello I'm trying to add a custom html page to put up on my site when it's either being maintained or when people get an error. I followed the guide I saw on the site about adding a new file to the home dir called constants.php I did this but it's not showing any suggestions?

Please could you provide me with the contents of what you have added?

  • Author
16 hours ago, Marc Stridgen said:

It isnt. But it is how you would designate what page to show to users in the event of maintenance.

Please could you provide me with the contents of what you have added?

hello so yes I followed this guide. https://invisioncommunity.com/4guides/advanced-options/configuration-options/custom-error-and-maintenance-pages-r248/

I added this in the constants.php file

<?php
define( 'ERROR_PAGE', 'error.html' );
define( 'UPGRADING_PAGE', 'maintenance.html' );

and I just made a simple html page

So you have a maintenance.html page and that is not showing at the time you are upgrading? Im checking you have the understanding of what that does correct first of all.

  • Author
8 hours ago, Marc Stridgen said:

So you have a maintenance.html page and that is not showing at the time you are upgrading? Im checking you have the understanding of what that does correct first of all.

that is correct.

constants.php and maintenance.html are in the root installation directory of your Invision Community software? If so, could you please provide us access:

We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. 

We look forward to further assisting you. 

 

  • Author
10 hours ago, Jim M said:

constants.php and maintenance.html are in the root installation directory of your Invision Community software? If so, could you please provide us access:

We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. 

We look forward to further assisting you. 

 

ok updated info you can now log in

You appear to be using the same filename and locations are we use for ours. You should use your own custom filename for these. Otherwise they will probably get overwritten on upgrade

  • Author
7 hours ago, Marc Stridgen said:

You appear to be using the same filename and locations are we use for ours. You should use your own custom filename for these. Otherwise they will probably get overwritten on upgrade

Ok so basically rename the file to something else bc it's conflicting with the default ips one's 

8 minutes ago, Revanx34 said:

Ok so basically rename the file to something else bc it's conflicting with the default ips one's 

Yes, that is correct

  • Author
1 hour ago, Marc Stridgen said:

Yes, that is correct

ok I change the name and updated constants and still now showing am I missing a step?

32 minutes ago, Revanx34 said:

ok I change the name and updated constants and still now showing am I missing a step?

I am not seeing that your site has an upgrade in process at the moment so it would not show. Could you please clarify?

  • Author
5 minutes ago, Jim M said:

I am not seeing that your site has an upgrade in process at the moment so it would not show. Could you please clarify?

what i'm trying to do is put up a html page while we finish working on the site for an offical release, by doing so i'm trying to add a html page so people can't access the site right away until its done

  • Solution

This is not possible via our software. The easiest way though is to rename the index.php file to index.php.old then create an index.html file with your message. Then when you're ready to open your site, just delete the index.html file and rename the index.php.old file to index.php.

You can also simply turn the community offline and display a message there but it will not be your custom HTML page. You can turn the community offline by going to ACP -> System -> General Configuration.

  • Author
24 minutes ago, Jim M said:

This is not possible via our software. The easiest way though is to rename the index.php file to index.php.old then create an index.html file with your message. Then when you're ready to open your site, just delete the index.html file and rename the index.php.old file to index.php.

You can also simply turn the community offline and display a message there but it will not be your custom HTML page. You can turn the community offline by going to ACP -> System -> General Configuration.

thanks for the information that makes sense

You're very welcome. Glad we could be of assistance.

Recently Browsing 0

  • No registered users viewing this page.