Creating phpnuke admin page

Page one | Page two


Don't be afraid of the nuke admin. Learn how to create your own page.

Steps :
There are three main pages that make up a nuke admin module. Listed below are these three and where they are located.

admin/case/case.name_of_your_new_module.php
admin/links/links.name_of_your_module.php
admin/modules/name_of_your_module.php

We will first take a look at admin/links/links.name_of_your_module.php this is the simpliest of the three. You can open up an existing file to see how it's setup but the example below will show you what exactly is needed to get this working. This file determine what's seen in the admin menu( the image links at the top).


<?php


if ($radminsuper==1) {
    
adminmenu("admin.php?op=newpagemain""Name_of_your_new_module""image.gif");
}

?>
Taking a look you will see it's really simple. The first part of the code ( admin.php?op=newpagemain ) links to a fuction defined in the main module page. We will discuss this later but remember the last part of the code ( newpagemain). That is very important. The next part, Name_of_your_new_module is the actual name that will be seen under the small image in your admin panel. The last and final part is the image that will be seen in admin. This image must be placed in images/admin/ and the name of the image and file type must be placed within the quotes. This was the easiest part, get ready to dig into some major coding. lol. no, i promise it's not as difficult as you think. Go to the next page.

Page one | Page two