Jump to content

Constants.php question

Go to solution Solved by Marc Stridgen,

Recommended Posts

sorry if i asked in anyones post. I have tried and tried and Im obviously doing something wrong.

I have latest version of invision on php8 server

I create a constants.php file........then ad this

\define( 'CP_DIRECTORY', 'my new admin name' );

and change the name of my admin folder to the new admin name. I put the constants.php file in my forums directory. I have an ips focus theme/skin


and once I change the new admin name and add constants.php file with code in it.
My site goes completely white blank> Any help appreciated, as i really want to hide my admin page from intruders

Link to comment
Share on other sites

2 hours ago, Marc Stridgen said:

That would be the  correct thing to do. So your file would be 

\define( 'CP_DIRECTORY', 'nameOfAdminDirectory' );


Thanks that worked! I didnt have enough spaces between coding text


Link to comment
Share on other sites

  • Recently Browsing   0 members

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