Hi[mez] wrote: I installed this mod and it works fine, but only if the moderator is using the subSilver theme
if they are using any other theme and then try to access the moderator control panel they get this error:
Template->make_filename(): Error - file does not exist
Is this a problem with my files (file missing etc), bug in the mod, not installed correctly?
All Mods by default use subSilver template, it's a phpBB standard otherwise a mod cannot be validated
About others templates compliancy there is a subject
-> http://perso.edeign.com:81/kooky/viewtopic.php?t=145 (might be down?)
i will try to explain you how to do:
First, create a new modcp directory in your template_name
- Then in your template/template_name/admin/ copy these files:
- TPL files unchanged between admin and modcp = same
- disallow_body.tpl
- index.htm
- index_body.tpl
- index_frameset.tpl
- index_navigate.tpl
- page_footer.tpl
- page_header.tpl
- ranks_edit_body.tpl
- ranks_list_body.tpl
- smile_edit_body.tpl
- smile_import_body.tpl
- smile_list_body.tpl
- user_avatar_gallery.tpl
- user_ban_body.tpl
- user_email_body.tpl
- words_edit_body.tpl
- words_list_body.tpl - TPL Files to be edit:
- user_edit_body.tpl
- user_select_body.tpl
- TPL files unchanged between admin and modcp = same
user_select_body.tpl
Code: Select all
#
#-----[ FIND ]------------------------------------
#
<td class="row1" align="center"><input type="text" class="post" name="username" maxlength="50" size="20" /> <input type="hidden" name="mode" value="edit" />{S_HIDDEN_FIELDS}<input type="submit" name="submituser" value="{L_LOOK_UP}" class="mainoption" /> <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></td>
#
#-----[ REPLACE WITH ]------------------------------------
#
<td class="row1" align="center">
<input type="text" class="post" name="username" maxlength="50" size="20" />
<select name="username_list" onchange="document.forms['post'].username.value = document.forms['post'].username_list.options[document.forms['post'].username_list.selectedIndex].text">{S_USER_SELECT}</select>
<input type="hidden" name="mode" value="edit" />
{S_HIDDEN_FIELDS}
<input type="submit" name="submituser" value="{L_LOOK_UP}" class="mainoption" />
<input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" />
</td>
This file has a lot of change which i can't explain (too long)
You will need to compare the file from subSilver/modcp/user_edit_body.tpl with you new file from your_template/modcp/user_edit_body.tpl
Do the same
1) disallow MOD to edit ADMIN and MODs accounts: {DISABLE_CHANGE}
2) disable delete option:
Code: Select all
#
#-----[ FIND ]-----------------------------------
#
<tr>
...
{L_DELETE_USER_EXPLAIN}
...
</tr>
#
#----[ REPLACE WITH ]--------------------------------
#
<!-- <tr>
...
{L_DELETE_USER_EXPLAIN}
...
</tr>-->
Here you need to reproduce profile code twice
First part: disable ADMIN and MODs fields (replace input with text)
ADD:
Code: Select all
<!-- BEGIN switch_change_disallowed -->
.../...
<!-- END switch_change_disallowed -->
ADD
Code: Select all
<!-- BEGIN switch_change_allowed -->
.../...
<!-- END switch_change_allowed -->
Save your changes
That's all