如何实现在上传附件时增加提示语句的详细步骤操作
1、找到文件:editor_menu_forum.htm 并改之。2、找到代码 <p id="attach_notice"{if empty($attachs['used']) && empty($attachs['unused'])} 并改之,并可按你自己要求加样式~
查找:
<div class="notice upnf">
<p id="attach_notice"{if empty($attachs['used']) && empty($attachs['unused'])} style="display: none"{/if}>{lang e_attach_insert}<!--{if $_G['setting']['allowattachurl']}-->{lang e_attach_inserturl}<!--{/if}--></p>
{lang attachment_size}: <span class="xi1"><!--{if $_G['group']['maxattachsize']}-->{lang lower_than} $maxattachsize_mb <!--{else}-->{lang size_no_limit}<!--{/if}--></span>
<!--{if $_G['group']['attachextensions']}-->
, {lang attachment_allow_exts}: <span class="xi1">{$_G['group']['attachextensions']}</span>
<!--{/if}-->
<!--{if $creditstring}-->
<a href="forum.php?mod=faq&action=credits&fid=$_G" target="_blank" title="{lang credits_policy}">{lang post_credits_postattach} $creditstring</a>
<!--{/if}-->
<!--{if $_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']}-->
<!--{subtemplate forum/post_attachlimit}--><!--{/if}-->
<!--{if $_G['group']['maxprice'] && $_G['setting']['maxincperthread']}-->
{lang post_price_attachincome_comment}<!--{/if}-->
</div>替换成
<div class="notice upnf">
<p id="attach_notice"{if empty($attachs['used']) && empty($attachs['unused'])} style="display: none"{/if}>{lang e_attach_insert}<!--{if $_G['setting']['allowattachurl']}-->{lang e_attach_inserturl}<!--{/if}--></p>
{lang attachment_size}: <span class="xi1"><!--{if $_G['group']['maxattachsize']}-->{lang lower_than} $maxattachsize_mb <!--{else}-->{lang size_no_limit}<!--{/if}--></span>
<!--{if $_G['group']['attachextensions']}-->
, 提醒: 大文件传到快传或快盘, {lang attachment_allow_exts}: <span class="xi1">{$_G['group']['attachextensions']}</span>
<!--{/if}-->
<!--{if $creditstring}-->
<a href="forum.php?mod=faq&action=credits&fid=$_G" target="_blank" title="{lang credits_policy}">{lang post_credits_postattach} $creditstring</a>
<!--{/if}-->
<!--{if $_G['group']['maxattachnum'] || $_G['group']['maxsizeperday']}-->
<!--{subtemplate forum/post_attachlimit}--><!--{/if}-->
<!--{if $_G['group']['maxprice'] && $_G['setting']['maxincperthread']}-->
{lang post_price_attachincome_comment}<!--{/if}-->
</div>
页:
[1]