Prevent members from changing theme

If you use one theme or have the need to prevent members from changing the default theme for the site then this tutorial will show you how.

Files to edit:
modules/Your_Account/navbar.php

Steps:
Open navbar.php and look for the following lines of codes.

if ($thmcount > 1) {
$menuimg = menuimg("themes.gif");
echo "<td width=\"10%\"><font class=\"content\">"
."<center><a href=\"modules.php?name=Your_Account&amp;op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a><br>"
."<a href=\"modules.php?name=Your_Account&amp;op=chgtheme\">"._SELECTTHETHEME."</a>"
."</center></form></font></td>";
}

Comment or delete those lines codes. We would prefer that you comment it so you can always change it back at a later time. If you don't know what comment in php is, it's basically using a slash and a asterik at both ends, like the following...

/*

if ($thmcount > 1) {
$menuimg = menuimg("themes.gif");
echo "<td width=\"10%\"><font class=\"content\">"
."<center><a href=\"modules.php?name=Your_Account&amp;op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a><br>"
."<a href=\"modules.php?name=Your_Account&amp;op=chgtheme\">"._SELECTTHETHEME."</a>"
."</center></form></font></td>";
}

*/

This will make it so none of your members will be able to see the change theme link in your_account so they can't change it.

That's all! Visit our forums for more help!