FIND:
function import_css()
{
global $mkportals, $DB, $mklib;
if ($mkportals->member['theme']) {
$DB->query("SELECT set_image_dir, set_cache_css from ibf_skin_sets where set_skin_set_id = '{$mkportals->member['theme']}'");
}
else {
$DB->query("SELECT set_image_dir, set_cache_css from ibf_skin_sets where set_default = '1'");
}
REPLACE WITH: function import_css()
{
global $mkportals, $DB, $mklib;
//if ($mkportals->member['theme']) {
//skin hack
if ($mkportals->member['id'] && $mkportals->member['theme']) {
//end skin hack
$DB->query("SELECT set_image_dir, set_cache_css from ibf_skin_sets where set_skin_set_id = '{$mkportals->member['theme']}'");
}
else {
//$DB->query("SELECT set_image_dir, set_cache_css from ibf_skin_sets where set_default = '1'");
//skin hack
if (stristr($_SERVER['PHP_SELF'], $mklib->forumpath)) {
$DB->query("SELECT set_image_dir, set_cache_css from ibf_skin_sets where set_default = '1'");
}
else {
$DB->query("SELECT set_image_dir, set_cache_css from ibf_skin_sets where set_skin_set_id = '4'");
}
//end skin hack
}
The forum will display your default forum skin. You will need to change the "4" in the query code set_skin_set_id = '4' to the skin id that you want to use for the Portal.If you do not want to allow members to select skins and you want the 2 different skins to display for everyone the code will be a little different. And I think you will need to run a simple database query to reset all member skins to your default. You will also need to set the IPB preferences so that members cannot choose skins. And of course you will deactivate the skin selector block.













