鉴于有人说限制功能如果一下子开的太多,会导致发表新帖时候的窗口拉的非常长。我因此而发表这个发帖页面横版美化和后台美化的修改建议。
在美化前,请确定你已经安装过下面的所有功能:
1、最强!总积分、发帖数及拓展积分限制帖子浏览 For 4.1!
https://discuz.dismall.com/viewthread.php?tid=285910
2、限制会员设置阅读权限过高with后台设置 For 4.1
https://discuz.dismall.com/viewthread.php?tid=284750
3、密码及定员帖限制功能加强 For 4.1
https://discuz.dismall.com/thread-286569-1-1.html
有点麻烦吧~安装过上面的话,直接看下面:
后台设置美化:
打开groups.inc.php
找到:
- showsetting('允许使用密码限制', 'allowpasswordnew', $group['allowpassword'], 'radio');
- showsetting('密码最大长度', 'longthpwnew', $group['longthpw'], 'text');
- showsetting('允许使用指定用户限制', 'allowreadusernew', $group['allowreaduser'], 'radio');
- showsetting('usergroups_edit_set_read_perm', 'allowsetreadpermnew', $group['allowsetreadperm'], 'radio');
- showsetting('发表帖子时允许设置最大阅读权限:', 'allowsetread', $group['allowsread'], 'text');
复制代码
请把上面的内容暂时复制到一个临时的新txt文件中,然后把源文件中的这些代码删除掉。
再找到:
- showsetting('允许使用积分限制', 'allowasetcredit', $group['asetcredit'], 'radio');
复制代码
把你刚才复制到txt文件中的代码添加到上面。
后台美化完成,现在开始前台的美化。主要是针对发帖页面的。
前台美化:
打开post_newthread.htm
找到:
- <!--{if $allowsetreadperm}-->
- <tr>
- <td class="altbg1">{lang readperm_thread}:</td>
- <td class="altbg2"><input type="text" name="readperm" size="6" value="$readperm"> <span class="smalltxt">({lang post_readperm_comment})——管理员设置允许的阅读权限最大为$aread 请不要设置过高</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetcredit == 1 && !empty($setcredit)}-->
- <tr>
- <td class="altbg1">浏览所需积分:</td>
- <td class="altbg2"><input type="text" name="cperm" size="6" value="$cperm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setcredit</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetpost == 1 && !empty($setpost)}-->
- <tr>
- <td class="altbg1">浏览所需发帖数:</td>
- <td class="altbg2"><input type="text" name="pperm" size="6" value="$pperm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setpost</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits1 == 1 && !empty($setextcredits1)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[1][title]:</td>
- <td class="altbg2"><input type="text" name="c1perm" size="6" value="$c1perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits1</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits2 == 1 && !empty($setextcredits2)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[2][title]:</td>
- <td class="altbg2"><input type="text" name="c2perm" size="6" value="$c2perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits2</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits3 == 1 && !empty($setextcredits3)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[3][title]:</td>
- <td class="altbg2"><input type="text" name="c3perm" size="6" value="$c3perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits3</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits4 == 1 && !empty($setextcredits4)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[4][title]:</td>
- <td class="altbg2"><input type="text" name="c4perm" size="6" value="$c4perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits4</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits5 == 1 && !empty($setextcredits5)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[5][title]:</td>
- <td class="altbg2"><input type="text" name="c5perm" size="6" value="$c5perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits5</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits6 == 1 && !empty($setextcredits6)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[6][title]:</td>
- <td class="altbg2"><input type="text" name="c6perm" size="6" value="$c6perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits6</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits7 == 1 && !empty($setextcredits7)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[7][title]:</td>
- <td class="altbg2"><input type="text" name="c7perm" size="6" value="$c7perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits7</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits8 == 1 && !empty($setextcredits8)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[8][title]:</td>
- <td class="altbg2"><input type="text" name="c8perm" size="6" value="$c8perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits8</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $allowpassword == 1 && !empty($longthpw)}-->
- <tr>
- <td class="altbg1">阅读密码:</td>
- <td class="altbg2"><input type="text" name="password" size="15" value=""> <span class="smalltxt">(浏览帖子需要输入的密码,$longthpw 个字符以内,留空为不使用)</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $allowreaduser == 1}-->
- <tr>
- <td class="altbg1">本帖阅读用户:</td>
- <td class="altbg2"><input type="text" name="readuser" size="20" value=""> <span class="smalltxt">(允许浏览本帖的用户,多个用户请用半角 ',' 分隔,留空为所有用户都能阅读)</span></td>
- </tr>
- <!--{/if}-->
复制代码
请把上面的这些代码删除掉。
用下面的去替换:
- <!--{if $allowsetreadperm || ($asetcredit == 1 && !empty($setcredit)) || ($asetpost == 1 && !empty($setpost))}-->
- <tr>
- <td class="altbg1">浏览特殊限制:</td>
- <td class="altbg2"><!--{if $allowsetreadperm}--><input type="text" name="readperm" size="6" value="$readperm"> <span class="smalltxt">阅读权限限制 $aread</span><!--{/if}-->
- <!--{if $asetcredit == 1 && !empty($setcredit)}--><input type="text" name="cperm" size="6" value="$cperm"> <span class="smalltxt">积分限制 $setcredit</span><!--{/if}-->
- <!--{if $asetpost == 1 && !empty($setpost)}--><input type="text" name="pperm" size="6" value="$pperm"> <span class="smalltxt">发帖数限制 $setpost</span><!--{/if}-->
- </td>
- </tr>
- <!--{/if}-->
- <!--{if ($allowpassword == 1 && !empty($longthpw)) || $allowreaduser == 1}-->
- <tr>
- <td class="altbg1">浏览密码用户限制:</td>
- <td class="altbg2"><!--{if $allowpassword == 1 && !empty($longthpw)}--><input type="text" name="password" size="15" value=""> <span class="smalltxt">密码限制 $longthpw 字符以内,留空为不限制</span><!--{/if}-->
- <!--{if $allowreaduser == 1}--><input type="text" name="readuser" size="20" value=""> <span class="smalltxt">允许浏览本帖的用户,多个用户请用半角 ',' 分隔,留空为所有用户都能阅读</span><!--{/if}-->
- </td>
- </tr>
- <!--{/if}-->
- <!--{if ($asetextcredits1 == 1 && !empty($setextcredits1)) || ($asetextcredits2 == 1 && !empty($setextcredits2)) || ($asetextcredits3 == 1 && !empty($setextcredits3)) || ($asetextcredits4 == 1 && !empty($setextcredits4)) || ($asetextcredits5 == 1 && !empty($setextcredits5)) || ($asetextcredits6 == 1 && !empty($setextcredits6)) || ($asetextcredits7 == 1 && !empty($setextcredits7)) || ($asetextcredits8 == 1 && !empty($setextcredits8))}-->
- <tr>
- <td class="altbg1">浏览拓展积分限制:</td>
- <td class="altbg2"><!--{if $asetextcredits1 == 1 && !empty($setextcredits1)}--><input type="text" name="c1perm" size="6" value="$c1perm"> <span class="smalltxt">浏览所需$extcredits[1][title]限制 $setextcredits1</span><!--{/if}-->
- <!--{if $asetextcredits2 == 1 && !empty($setextcredits2)}--><input type="text" name="c2perm" size="6" value="$c2perm"> <span class="smalltxt">浏览所需$extcredits[2][title]限制 $setextcredits2</span><!--{/if}-->
- <!--{if $asetextcredits3 == 1 && !empty($setextcredits3)}--><input type="text" name="c3perm" size="6" value="$c3perm"> <span class="smalltxt">浏览所需$extcredits[3][title]限制 $setextcredits3</span><!--{/if}-->
- <!--{if $asetextcredits4 == 1 && !empty($setextcredits4)}--><input type="text" name="c4perm" size="6" value="$c4perm"> <span class="smalltxt">浏览所需$extcredits[4][title]限制 $setextcredits4</span><!--{/if}-->
- <!--{if $asetextcredits5 == 1 && !empty($setextcredits5)}--><input type="text" name="c5perm" size="6" value="$c5perm"> <span class="smalltxt">浏览所需$extcredits[5][title]限制 $setextcredits5</span><!--{/if}-->
- <!--{if $asetextcredits6 == 1 && !empty($setextcredits6)}--><input type="text" name="c6perm" size="6" value="$c6perm"> <span class="smalltxt">浏览所需$extcredits[6][title]限制 $setextcredits6</span><!--{/if}-->
- <!--{if $asetextcredits7 == 1 && !empty($setextcredits7)}--><input type="text" name="c7perm" size="6" value="$c7perm"> <span class="smalltxt">浏览所需$extcredits[7][title]限制 $setextcredits7</span><!--{/if}-->
- <!--{if $asetextcredits8 == 1 && !empty($setextcredits8)}--><input type="text" name="c8perm" size="6" value="$c8perm"> <span class="smalltxt">浏览所需$extcredits[8][title]限制 $setextcredits8</span><!--{/if}-->
- </td>
- </tr>
- <!--{/if}-->
复制代码
打开post_editpost.htm
找到:
- <!--{if $allowsetreadperm}-->
- <tr>
- <td class="altbg1">{lang readperm_thread}:</td>
- <td class="altbg2"><input type="text" name="readperm" size="6" value="$readperm"> <span class="smalltxt">({lang post_readperm_comment})——管理员设置允许的阅读权限最大为$aread 请不要设置过高</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetcredit == 1 && !empty($setcredit)}-->
- <tr>
- <td class="altbg1">浏览所需积分:</td>
- <td class="altbg2"><input type="text" name="cperm" size="6" value="$cperm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setcredit</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetpost == 1 && !empty($setpost)}-->
- <tr>
- <td class="altbg1">浏览所需发帖数:</td>
- <td class="altbg2"><input type="text" name="pperm" size="6" value="$pperm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setpost</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits1 == 1 && !empty($setextcredits1)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[1][title]:</td>
- <td class="altbg2"><input type="text" name="c1perm" size="6" value="$c1perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits1</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits2 == 1 && !empty($setextcredits2)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[2][title]:</td>
- <td class="altbg2"><input type="text" name="c2perm" size="6" value="$c2perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits2</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits3 == 1 && !empty($setextcredits3)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[3][title]:</td>
- <td class="altbg2"><input type="text" name="c3perm" size="6" value="$c3perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits3</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits4 == 1 && !empty($setextcredits4)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[4][title]:</td>
- <td class="altbg2"><input type="text" name="c4perm" size="6" value="$c4perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits4</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits5 == 1 && !empty($setextcredits5)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[5][title]:</td>
- <td class="altbg2"><input type="text" name="c5perm" size="6" value="$c5perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits5</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits6 == 1 && !empty($setextcredits6)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[6][title]:</td>
- <td class="altbg2"><input type="text" name="c6perm" size="6" value="$c6perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits6</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits7 == 1 && !empty($setextcredits7)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[7][title]:</td>
- <td class="altbg2"><input type="text" name="c7perm" size="6" value="$c7perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits7</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $asetextcredits8 == 1 && !empty($setextcredits8)}-->
- <tr>
- <td class="altbg1">浏览所需$extcredits[8][title]:</td>
- <td class="altbg2"><input type="text" name="c8perm" size="6" value="$c8perm"> <span class="smalltxt">({lang post_readperm_comment})——最大允许设置值 $setextcredits8</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $allowpassword == 1 && !empty($longthpw)}-->
- <tr>
- <td class="altbg1">阅读密码:</td>
- <td class="altbg2"><input type="text" name="password" size="15" value=""> <span class="smalltxt">(浏览帖子需要输入的密码,$longthpw 个字符以内,留空为不使用)</span></td>
- </tr>
- <!--{/if}-->
- <!--{if $allowreaduser == 1}-->
- <tr>
- <td class="altbg1">本帖阅读用户:</td>
- <td class="altbg2"><input type="text" name="readuser" size="20" value=""> <span class="smalltxt">(允许浏览本帖的用户,多个用户请用半角 ',' 分隔,留空为所有用户都能阅读)</span></td>
- </tr>
- <!--{/if}-->
复制代码
请把上面的这些代码删除掉。
用下面的去替换:
- <!--{if $allowsetreadperm || ($asetcredit == 1 && !empty($setcredit)) || ($asetpost == 1 && !empty($setpost))}-->
- <tr>
- <td class="altbg1">浏览特殊限制:</td>
- <td class="altbg2"><!--{if $allowsetreadperm}--><input type="text" name="readperm" size="6" value="$readperm"> <span class="smalltxt">阅读权限限制 $aread</span><!--{/if}-->
- <!--{if $asetcredit == 1 && !empty($setcredit)}--><input type="text" name="cperm" size="6" value="$cperm"> <span class="smalltxt">积分限制 $setcredit</span><!--{/if}-->
- <!--{if $asetpost == 1 && !empty($setpost)}--><input type="text" name="pperm" size="6" value="$pperm"> <span class="smalltxt">发帖数限制 $setpost</span><!--{/if}-->
- </td>
- </tr>
- <!--{/if}-->
- <!--{if ($allowpassword == 1 && !empty($longthpw)) || $allowreaduser == 1}-->
- <tr>
- <td class="altbg1">浏览密码用户限制:</td>
- <td class="altbg2"><!--{if $allowpassword == 1 && !empty($longthpw)}--><input type="text" name="password" size="15" value=""> <span class="smalltxt">密码限制 $longthpw 字符以内,留空为不限制</span><!--{/if}-->
- <!--{if $allowreaduser == 1}--><input type="text" name="readuser" size="20" value=""> <span class="smalltxt">允许浏览本帖的用户,多个用户请用半角 ',' 分隔,留空为所有用户都能阅读</span><!--{/if}-->
- </td>
- </tr>
- <!--{/if}-->
- <!--{if ($asetextcredits1 == 1 && !empty($setextcredits1)) || ($asetextcredits2 == 1 && !empty($setextcredits2)) || ($asetextcredits3 == 1 && !empty($setextcredits3)) || ($asetextcredits4 == 1 && !empty($setextcredits4)) || ($asetextcredits5 == 1 && !empty($setextcredits5)) || ($asetextcredits6 == 1 && !empty($setextcredits6)) || ($asetextcredits7 == 1 && !empty($setextcredits7)) || ($asetextcredits8 == 1 && !empty($setextcredits8))}-->
- <tr>
- <td class="altbg1">浏览拓展积分限制:</td>
- <td class="altbg2"><!--{if $asetextcredits1 == 1 && !empty($setextcredits1)}--><input type="text" name="c1perm" size="6" value="$c1perm"> <span class="smalltxt">浏览所需$extcredits[1][title]限制 $setextcredits1</span><!--{/if}-->
- <!--{if $asetextcredits2 == 1 && !empty($setextcredits2)}--><input type="text" name="c2perm" size="6" value="$c2perm"> <span class="smalltxt">浏览所需$extcredits[2][title]限制 $setextcredits2</span><!--{/if}-->
- <!--{if $asetextcredits3 == 1 && !empty($setextcredits3)}--><input type="text" name="c3perm" size="6" value="$c3perm"> <span class="smalltxt">浏览所需$extcredits[3][title]限制 $setextcredits3</span><!--{/if}-->
- <!--{if $asetextcredits4 == 1 && !empty($setextcredits4)}--><input type="text" name="c4perm" size="6" value="$c4perm"> <span class="smalltxt">浏览所需$extcredits[4][title]限制 $setextcredits4</span><!--{/if}-->
- <!--{if $asetextcredits5 == 1 && !empty($setextcredits5)}--><input type="text" name="c5perm" size="6" value="$c5perm"> <span class="smalltxt">浏览所需$extcredits[5][title]限制 $setextcredits5</span><!--{/if}-->
- <!--{if $asetextcredits6 == 1 && !empty($setextcredits6)}--><input type="text" name="c6perm" size="6" value="$c6perm"> <span class="smalltxt">浏览所需$extcredits[6][title]限制 $setextcredits6</span><!--{/if}-->
- <!--{if $asetextcredits7 == 1 && !empty($setextcredits7)}--><input type="text" name="c7perm" size="6" value="$c7perm"> <span class="smalltxt">浏览所需$extcredits[7][title]限制 $setextcredits7</span><!--{/if}-->
- <!--{if $asetextcredits8 == 1 && !empty($setextcredits8)}--><input type="text" name="c8perm" size="6" value="$c8perm"> <span class="smalltxt">浏览所需$extcredits[8][title]限制 $setextcredits8</span><!--{/if}-->
- </td>
- </tr>
- <!--{/if}-->
复制代码 |