>>  Site Map >>  Forums >>  Tips and Tricks

Forum module - topics in forum:



Tips and Tricks - Get the most from your PHP-NUKE website. Post things you have discovered and would like to share with others.



7.6 Admin Changes Tutorial.

If you are using PHP-Nuke 7.6 then by now, chances are you know that you can change the name of the admin.php file to whatever you want to call it. The changes.txt file that comes with 7.6 tells us that we need to make a change in the config.php file and that’s it. That’s where it seems the problems begin, very poor documentation. Well today we attempt to correct one small part of that. I have taken the time to write this small tutorial explaining what needs to be done to complete the transition from admin.php to your_file.php (at least that’s what we are going to call the admin file for the sake of this tutorial.
1. The obvious part the config.php file;

There is only one change to be made to the config.php file and that is:
Code: :
$admin_file = "admin";

Remember for this example we are using the file name your_file* so it would look like this:
Code: :
$admin_file = "your_file";

*do not put the .php extension on the end if the file name

The next and first un-documented step would be and I don't know who found this first but I didn't so I am not taking credit for it would be to open your robots.txt file and find:
Code: :
Disallow: admin.php

and change it too:
Code: :
Disallow: your_file.php

Last step would be to go to Administration.... Blocks, Find the Administration Block and click edit:
Copy all the code in the block and paste it into your favorite editor for easier viewing (you can make the edits within the block itself if your comfortable with doing it that way). Save the page incase there is an error. Then copy the code into another blank page to make your edits.

The original stock contents of the block are below:
Code: :
<strong><big>•</big></strong> <a href="admin.php">Administration</a><br>
<strong><big>•</big></strong> <a href="admin.php?op=adminStory">NEW Story</a><br>
<strong><big>•</big></strong> <a href="admin.php?op=create">Change Survey</a><br>
<strong><big>•</big></strong> <a href="admin.php?op=content">Content</a><br>
<strong><big>•</big></strong> <a href="admin.php?op=logout">Logout</a>

Change it too:
Code: :
<strong><big>•</big></strong> <a href="your_file.php">Administration</a><br>
<strong><big>•</big></strong> <a href="your_file.php?op=adminStory">NEW Story</a><br>
<strong><big>•</big></strong> <a href="your_file.php?op=create">Change Survey</a><br>
<strong><big>•</big></strong> <a href="your_file.php?op=content">Content</a><br>
<strong><big>•</big></strong> <a href="your_file.php?op=logout">Logout</a>


your_file.php of course signifies whatever you named the file and was only used in this tutorial you can name your admin.php file whatever you want.




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS