Updated acledit and comment templates on themes, as they weren't in sync with Oxygen; fixed some undefined index errors in SpecialAdmin and paths
--- a/includes/paths.php Sun Jan 27 23:03:57 2008 -0500
+++ b/includes/paths.php Sun Jan 27 23:17:15 2008 -0500
@@ -149,7 +149,15 @@
{
$r['urlname_nons'] = $r['urlname'];
- $r['urlname'] = $this->nslist[$r['namespace']] . $r['urlname']; // Applies the User:/File:/etc prefixes to the URL names
+ if ( isset($this->nslist[$r['namespace']]) )
+ {
+ $r['urlname'] = $this->nslist[$r['namespace']] . $r['urlname']; // Applies the User:/File:/etc prefixes to the URL names
+ }
+ else
+ {
+ $ns_char = substr($this->nslist['Special'], -1);
+ $r['urlname'] = $r['namespace'] . $ns_char . $r['urlname'];
+ }
if ( $r['delvotes'] == null)
{
--- a/plugins/SpecialAdmin.php Sun Jan 27 23:03:57 2008 -0500
+++ b/plugins/SpecialAdmin.php Sun Jan 27 23:17:15 2008 -0500
@@ -1225,7 +1225,7 @@
{
$cls = ( $cls == 'row2' ) ? 'row3' : 'row2';
$this_plugin = ( isset($system[$plugin_files[$i]]) ) ? $system[$plugin_files[$i]] : $plugin_list[$plugin_files[$i]];
- $is_system = ( $system[$plugin_files[$i]] );
+ $is_system = ( @$system[$plugin_files[$i]] );
$bgcolor = '';
if ( $is_system && $cls == 'row2' )
$bgcolor = ' style="background-color: #FFD8D8;"';
--- a/themes/admin/acledit.tpl Sun Jan 27 23:03:57 2008 -0500
+++ b/themes/admin/acledit.tpl Sun Jan 27 23:17:15 2008 -0500
@@ -3,15 +3,17 @@
<table border="0" cellspacing="1" cellpadding="4" style="width: 100%;">
<tr>
<th></th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('1');">Deny</th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('2');">Disallow</th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('3');">Wiki mode</th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('4');">Allow</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('i');">{lang:acl_lbl_field_inherit}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('1');">{lang:acl_lbl_field_deny}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('2');">{lang:acl_lbl_field_disallow}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('3');">{lang:acl_lbl_field_wikimode}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('4');">{lang:acl_lbl_field_allow}</th>
</tr>
<!-- ENDVAR acl_field_begin -->
<!-- VAR acl_field_item -->
<tr>
<td class="{ROW_CLASS}">{FIELD_DESC}</td>
+ <td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="i" name="{FIELD_NAME}" {FIELD_INHERIT_CHECKED} /></td>
<td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="1" name="{FIELD_NAME}" {FIELD_DENY_CHECKED} /></td>
<td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="2" name="{FIELD_NAME}" {FIELD_DISALLOW_CHECKED} /></td>
<td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="3" name="{FIELD_NAME}" {FIELD_WIKIMODE_CHECKED} /></td>
@@ -20,14 +22,8 @@
<!-- ENDVAR acl_field_item -->
<!-- VAR acl_field_end -->
<tr>
- <td colspan="5" class="row3">
- <p><b>Permission types:</b></p>
- <ul>
- <li><b>Allow</b> means that the user is allowed to access the item</li>
- <li><b>Wiki mode</b> means the user can access the item if wiki mode is active (per-page wiki mode is taken into account)</li>
- <li><b>Disallow</b> means the user is denied access unless something allows it.</li>
- <li><b>Deny</b> means that the user is denied access to the item. This setting overrides all other permissions.</li>
- </ul>
+ <td colspan="6" class="row3">
+ {lang:acl_lbl_help}
</td>
</tr>
</table>
--- a/themes/admin/comment.tpl Sun Jan 27 23:03:57 2008 -0500
+++ b/themes/admin/comment.tpl Sun Jan 27 23:17:15 2008 -0500
@@ -4,23 +4,30 @@
<th colspan="2" style="text-align: left;">{DATETIME}</th>
</tr>
<tr>
- <td style="width: 120px; height: 100%;" rowspan="4" valign="top" class="row1">
+ <td style="width: 120px; height: 100%;" rowspan="4" valign="top" class="row1<!-- BEGIN is_friend --> row1_green<!-- END is_friend --><!-- BEGIN is_foe --> row1_red<!-- END is_foe -->">
<table border="0" width="100%" style="height: 100%;" cellspacing="0" cellpadding="0">
<tr>
- <td valign="top" class="row1">
+ <td valign="top" class="row1<!-- BEGIN is_friend --> row1_green<!-- END is_friend --><!-- BEGIN is_foe --> row1_red<!-- END is_foe -->">
<b>{NAME}</b><br />
<small>{USER_LEVEL}</small>
+ <!-- BEGIN user_has_avatar -->
+ <div class="avatar">
+ <a href="{USERPAGE_LINK}">
+ <img alt="{AVATAR_ALT}" src="{AVATAR_URL}" style="border-width: 0px;" />
+ </a>
+ </div>
+ <!-- END user_has_avatar -->
</td>
</tr>
<tr>
- <td valign="bottom" class="row1">
+ <td valign="bottom" class="row1<!-- BEGIN is_friend --> row1_green<!-- END is_friend --><!-- BEGIN is_foe --> row1_red<!-- END is_foe -->">
{SEND_PM_LINK} {ADD_BUDDY_LINK}
</td>
</tr>
</table>
</td>
<td class="row2">
- <b>Subject:</b> <span id="subject_{ID}">{SUBJECT}</span>
+ <b>{lang:comment_lbl_subject}</b> <span id="subject_{ID}">{SUBJECT}</span>
</td>
</tr>
<tr>
@@ -42,7 +49,7 @@
<!-- BEGIN auth_mod -->
<tr>
<td class="row1">
- <b>Moderation options:</b> {MOD_APPROVE_LINK} {MOD_DELETE_LINK}
+ <b>{lang:comment_lbl_mod_options}</b> {MOD_APPROVE_LINK} {MOD_DELETE_LINK} | {MOD_IP_LINK}
</td>
</tr>
<!-- END auth_mod -->
--- a/themes/printable/acledit.tpl Sun Jan 27 23:03:57 2008 -0500
+++ b/themes/printable/acledit.tpl Sun Jan 27 23:17:15 2008 -0500
@@ -3,15 +3,17 @@
<table border="0" cellspacing="1" cellpadding="4" style="width: 100%;">
<tr>
<th></th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('1');">Deny</th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('2');">Disallow</th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('3');">Wiki mode</th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('4');">Allow</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('i');">{lang:acl_lbl_field_inherit}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('1');">{lang:acl_lbl_field_deny}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('2');">{lang:acl_lbl_field_disallow}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('3');">{lang:acl_lbl_field_wikimode}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('4');">{lang:acl_lbl_field_allow}</th>
</tr>
<!-- ENDVAR acl_field_begin -->
<!-- VAR acl_field_item -->
<tr>
<td class="{ROW_CLASS}">{FIELD_DESC}</td>
+ <td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="i" name="{FIELD_NAME}" {FIELD_INHERIT_CHECKED} /></td>
<td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="1" name="{FIELD_NAME}" {FIELD_DENY_CHECKED} /></td>
<td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="2" name="{FIELD_NAME}" {FIELD_DISALLOW_CHECKED} /></td>
<td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="3" name="{FIELD_NAME}" {FIELD_WIKIMODE_CHECKED} /></td>
@@ -20,14 +22,8 @@
<!-- ENDVAR acl_field_item -->
<!-- VAR acl_field_end -->
<tr>
- <td colspan="5" class="row3">
- <p><b>Permission types:</b></p>
- <ul>
- <li><b>Allow</b> means that the user is allowed to access the item</li>
- <li><b>Wiki mode</b> means the user can access the item if wiki mode is active (per-page wiki mode is taken into account)</li>
- <li><b>Disallow</b> means the user is denied access unless something allows it.</li>
- <li><b>Deny</b> means that the user is denied access to the item. This setting overrides all other permissions.</li>
- </ul>
+ <td colspan="6" class="row3">
+ {lang:acl_lbl_help}
</td>
</tr>
</table>
--- a/themes/printable/comment.tpl Sun Jan 27 23:03:57 2008 -0500
+++ b/themes/printable/comment.tpl Sun Jan 27 23:17:15 2008 -0500
@@ -4,23 +4,30 @@
<th colspan="2" style="text-align: left;">{DATETIME}</th>
</tr>
<tr>
- <td style="width: 120px; height: 100%;" rowspan="4" valign="top" class="row1">
+ <td style="width: 120px; height: 100%;" rowspan="4" valign="top" class="row1<!-- BEGIN is_friend --> row1_green<!-- END is_friend --><!-- BEGIN is_foe --> row1_red<!-- END is_foe -->">
<table border="0" width="100%" style="height: 100%;" cellspacing="0" cellpadding="0">
<tr>
- <td valign="top" class="row1">
+ <td valign="top" class="row1<!-- BEGIN is_friend --> row1_green<!-- END is_friend --><!-- BEGIN is_foe --> row1_red<!-- END is_foe -->">
<b>{NAME}</b><br />
<small>{USER_LEVEL}</small>
+ <!-- BEGIN user_has_avatar -->
+ <div class="avatar">
+ <a href="{USERPAGE_LINK}">
+ <img alt="{AVATAR_ALT}" src="{AVATAR_URL}" style="border-width: 0px;" />
+ </a>
+ </div>
+ <!-- END user_has_avatar -->
</td>
</tr>
<tr>
- <td valign="bottom" class="row1">
+ <td valign="bottom" class="row1<!-- BEGIN is_friend --> row1_green<!-- END is_friend --><!-- BEGIN is_foe --> row1_red<!-- END is_foe -->">
{SEND_PM_LINK} {ADD_BUDDY_LINK}
</td>
</tr>
</table>
</td>
<td class="row2">
- <b>Subject:</b> <span id="subject_{ID}">{SUBJECT}</span>
+ <b>{lang:comment_lbl_subject}</b> <span id="subject_{ID}">{SUBJECT}</span>
</td>
</tr>
<tr>
@@ -42,7 +49,7 @@
<!-- BEGIN auth_mod -->
<tr>
<td class="row1">
- <b>Moderation options:</b> {MOD_APPROVE_LINK} {MOD_DELETE_LINK}
+ <b>{lang:comment_lbl_mod_options}</b> {MOD_APPROVE_LINK} {MOD_DELETE_LINK} | {MOD_IP_LINK}
</td>
</tr>
<!-- END auth_mod -->
--- a/themes/stpatty/acledit.tpl Sun Jan 27 23:03:57 2008 -0500
+++ b/themes/stpatty/acledit.tpl Sun Jan 27 23:17:15 2008 -0500
@@ -3,15 +3,17 @@
<table border="0" cellspacing="1" cellpadding="4" style="width: 100%;">
<tr>
<th></th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('1');">Deny</th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('2');">Disallow</th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('3');">Wiki mode</th>
- <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('4');">Allow</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('i');">{lang:acl_lbl_field_inherit}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('1');">{lang:acl_lbl_field_deny}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('2');">{lang:acl_lbl_field_disallow}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('3');">{lang:acl_lbl_field_wikimode}</th>
+ <th style='cursor: pointer;' title="Click to change all columns" onclick="__aclSetAllRadios('4');">{lang:acl_lbl_field_allow}</th>
</tr>
<!-- ENDVAR acl_field_begin -->
<!-- VAR acl_field_item -->
<tr>
<td class="{ROW_CLASS}">{FIELD_DESC}</td>
+ <td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="i" name="{FIELD_NAME}" {FIELD_INHERIT_CHECKED} /></td>
<td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="1" name="{FIELD_NAME}" {FIELD_DENY_CHECKED} /></td>
<td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="2" name="{FIELD_NAME}" {FIELD_DISALLOW_CHECKED} /></td>
<td class="{ROW_CLASS}" style="text-align: center;"><input type="radio" value="3" name="{FIELD_NAME}" {FIELD_WIKIMODE_CHECKED} /></td>
@@ -20,14 +22,8 @@
<!-- ENDVAR acl_field_item -->
<!-- VAR acl_field_end -->
<tr>
- <td colspan="5" class="row3">
- <p><b>Permission types:</b></p>
- <ul>
- <li><b>Allow</b> means that the user is allowed to access the item</li>
- <li><b>Wiki mode</b> means the user can access the item if wiki mode is active (per-page wiki mode is taken into account)</li>
- <li><b>Disallow</b> means the user is denied access unless something allows it.</li>
- <li><b>Deny</b> means that the user is denied access to the item. This setting overrides all other permissions.</li>
- </ul>
+ <td colspan="6" class="row3">
+ {lang:acl_lbl_help}
</td>
</tr>
</table>
--- a/themes/stpatty/comment.tpl Sun Jan 27 23:03:57 2008 -0500
+++ b/themes/stpatty/comment.tpl Sun Jan 27 23:17:15 2008 -0500
@@ -4,23 +4,30 @@
<th colspan="2" style="text-align: left;">{DATETIME}</th>
</tr>
<tr>
- <td style="width: 120px; height: 100%;" rowspan="4" valign="top" class="row1">
+ <td style="width: 120px; height: 100%;" rowspan="4" valign="top" class="row1<!-- BEGIN is_friend --> row1_green<!-- END is_friend --><!-- BEGIN is_foe --> row1_red<!-- END is_foe -->">
<table border="0" width="100%" style="height: 100%;" cellspacing="0" cellpadding="0">
<tr>
- <td valign="top" class="row1">
+ <td valign="top" class="row1<!-- BEGIN is_friend --> row1_green<!-- END is_friend --><!-- BEGIN is_foe --> row1_red<!-- END is_foe -->">
<b>{NAME}</b><br />
<small>{USER_LEVEL}</small>
+ <!-- BEGIN user_has_avatar -->
+ <div class="avatar">
+ <a href="{USERPAGE_LINK}">
+ <img alt="{AVATAR_ALT}" src="{AVATAR_URL}" style="border-width: 0px;" />
+ </a>
+ </div>
+ <!-- END user_has_avatar -->
</td>
</tr>
<tr>
- <td valign="bottom" class="row1">
+ <td valign="bottom" class="row1<!-- BEGIN is_friend --> row1_green<!-- END is_friend --><!-- BEGIN is_foe --> row1_red<!-- END is_foe -->">
{SEND_PM_LINK} {ADD_BUDDY_LINK}
</td>
</tr>
</table>
</td>
<td class="row2">
- <b>Subject:</b> <span id="subject_{ID}">{SUBJECT}</span>
+ <b>{lang:comment_lbl_subject}</b> <span id="subject_{ID}">{SUBJECT}</span>
</td>
</tr>
<tr>
@@ -42,7 +49,7 @@
<!-- BEGIN auth_mod -->
<tr>
<td class="row1">
- <b>Moderation options:</b> {MOD_APPROVE_LINK} {MOD_DELETE_LINK}
+ <b>{lang:comment_lbl_mod_options}</b> {MOD_APPROVE_LINK} {MOD_DELETE_LINK} | {MOD_IP_LINK}
</td>
</tr>
<!-- END auth_mod -->