2006-10-10, 09:56 PM
Well it seems in 1.2.1 I can't edit the master theme.
http://community.mybboard.net/showthread.php?tid=12994
You can read a thread about it there. If this isn't a bug but instead a misconfiguration on my part I apologize but I have tested this on 3 versions of 1.2.1 and can't figure out HOW to edit the master style. The only options I am given is "export theme". I don't have this issue on my 1.1.8 forum.
Please advise asap as this is giving me tremendous problems with my custom themes.
OK...I have found the problem line area.
In admin/adminfunctions.php it's the function make_theme_list().
Line 1988
Well this excludes the Maste theme. I know you don't want to delete master theme deleted or set as default so here is the fix.
Edit this:
Add instead make it this:
If mybb team has a better solution that would be great. I am hopeful you guys will correct this as you see fit. I also want to make it clear I am not just a whiner. I am here to help and I help a lot of members. I have no problems helping to fix a bug and not just identify them. Some members here think they know everything. I don't bother reporting bugs or problems unless it is one.
Anyways..I really hope in next update this is corrected permanently.
http://community.mybboard.net/showthread.php?tid=12994
You can read a thread about it there. If this isn't a bug but instead a misconfiguration on my part I apologize but I have tested this on 3 versions of 1.2.1 and can't figure out HOW to edit the master style. The only options I am given is "export theme". I don't have this issue on my 1.1.8 forum.
Please advise asap as this is giving me tremendous problems with my custom themes.
OK...I have found the problem line area.
In admin/adminfunctions.php it's the function make_theme_list().
Line 1988
if($theme['tid'] > 1)
Well this excludes the Maste theme. I know you don't want to delete master theme deleted or set as default so here is the fix.
Edit this:
if($theme['tid'] > 1)
{
//echo "<option value=\"settings\">- $lang->edit_theme_settings</option>\n";
echo "<option value=\"delete\">- $lang->del_theme</option>\n";
if($setdefault)
{
echo "<option value=\"default\">- $lang->set_as_default</option>";
}
echo "<option value=\"\" style=\"font-weight: bold;\">$lang->theme_style</option>";
echo "<option value=\"edit\" selected>- $lang->edit_theme_style</option>\n";
}
Add instead make it this:
if($theme['tid'] > 1)
{
//echo "<option value=\"settings\">- $lang->edit_theme_settings</option>\n";
echo "<option value=\"delete\">- $lang->del_theme</option>\n";
if($setdefault)
{
echo "<option value=\"default\">- $lang->set_as_default</option>";
}
echo "<option value=\"\" style=\"font-weight: bold;\">$lang->theme_style</option>";
echo "<option value=\"edit\" selected>- $lang->edit_theme_style</option>\n";
} elseif ($theme['tid'] == 1) {
echo "<option value=\"\" style=\"font-weight: bold;\">$lang->theme_style</option>";
echo "<option value=\"edit\" selected>- $lang->edit_theme_style</option>\n";
}
If mybb team has a better solution that would be great. I am hopeful you guys will correct this as you see fit. I also want to make it clear I am not just a whiner. I am here to help and I help a lot of members. I have no problems helping to fix a bug and not just identify them. Some members here think they know everything. I don't bother reporting bugs or problems unless it is one.
Anyways..I really hope in next update this is corrected permanently.