Tutorials and Solutions  :: 
Recovering your theme and login
 Top

  • It is possible to get into trouble playing with themes. Luckily you can always get out again. Here are the common problems.

    Table 3.1. Recovering your theme (revision 1, 5th May.)

    1. The Main Menu has gone and I can't do anything
    Type /admin.php after your website name in the browser, then re-activate the Main Menu Block.

    2. The whole theme is messed up
    If you know the theme is still in place but you're having trouble navigating type /admin.php?module=NS-Settings&op=main&theme=PostNuke (assuming the PostNuke theme is available) after your website name you'll go back to the settings page with the PostNuke theme loaded. Then you can change the theme properly.

    3. Can't log in in as Admin because the User Login block has gone. You can probably still log in by going to the user.php page. Otherwise you'll need to go into the database directly (phpMyAdmin is mostly used) and edit the nuke_blocks table. In User's Login (pn_id 13) edit pn_active to change the value from 0 (false) to 1 (true).

    4. The whole theme is still messed up, and I can't log in.
    You can download the special utility called PostNuke Swiss Army Knife. Simply place this file in your top directory and call it from your browser by typing in psak.php after your website name. Then just click on theme reset. Remember to delete this file afterwards if you're website is online.

    cheers, duncan
  • duncan_nz


    The whole theme is messed up
    If you type /admin.php?module=NS-Settings&op=main&theme=PostNuke after your website name you'll go back to the settings page with the PostNuke theme loaded. Then you can change the theme properly.
    PSAK is the best tool in this situation really. This assumes that the PostNuke theme was not removed. It's wise to leave the PostNuke theme in place, but some people don't. However a working theme should always be in place, unless the admin was foolish and removed all themes but the one they just installed.

    Quote


    Can't log in in as Admin because the User Login block has gone.
    PostNuke won't let you change things once you're 'on the outside' and this can make it hard to get things working again. If you do that you'll need to go into the database directly (phpMyAdmin is mostly used) and edit the nuke_blocks table. In User's Login (pn_id 13) edit pn_active to change the value from 0 (false) to 1 (true).

    Or just go to user.php and choose login.
This list is based on the users active over the last 60 minutes.