Remove header and footer from module


This tutorial will show you how to remove the header and footer from any module.

Files to edit :
Header.php
footer.php

Steps : Removing header
In your root directory where config.php file is, open header.php and look for global it's on about line 29. You will notice things like these..$sitename, $banners, $nukeurl, ect. Add to that $name. The is the global for your modules. Next look for themeheader(); and surround it with an if statement so it should look like this

if ($name=='NAME OF YOUR MODULE GOES HERE') {
}
else {

themeheader();

}

Step 2: Removing footer
In your root directory where config.php file is, open footer.php and look for global . You will notice things like these..$sitename, $banners, $nukeurl, ect. Add to that $name. This is the global for your modules. Next look for themefooter(); and surround it with an if statement so it should look like this

if ($name=='NAME OF YOUR MODULE GOES HERE') {
}
else {

themefooter();

}

 

That's all, save your files and you're done. More help in the forums if you need it.