18.1. Modifying any PHP-Nuke module

Talking about modifying any PHP-Nuke module in general, we will show:

18.1.1. How to hide the right blocks

If your module needs more space than is available in the central column of the PHP-Nuke layout, you may want to hide the right column of blocks. This is accomplished very easily from within the code of any module: find the line

$index = 1;

and change it to:

$index = 0;   // 0 : do not show right blocks - 1:show right blocks

Of course, if the line is not there, then $index is already 0, so your module already hides the right blocks.

TipHow to hide the left blocks
 

If you want to hide the left blocks, you have to modify the theme header. See Section 14.3.9.

18.1.2. How to change a buggy module

You activated a buggy PHP-Nuke module. Now, your site is broken and you get a blank page, or you only see errors and the administration panel is unreachable...

Connect to the MySQL database and change the value of the "active" field in the $prefix_modules table to 0 for that module's entry. Example (see Site crashed when block was created and logout-Fehler): suppose the broken module is Mod_Broken, your $prefix is "nuke" and the value of the module id, "mid", field for the Mod_Broken module is "7"):

UPDATE nuke_modules SET active = '0' WHERE mid = '7';

or (if you prefer to select by title and not by module id)

UPDATE nuke_modules SET active = '0' WHERE title = 'Mod_Broken';