Jump to content

custom pages


Go to solution Solved by Jim M,

Recommended Posts

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...