本帖最后由 towwin 于 2011-6-21 16:37 编辑
- <!--{if $_G[gp_action] != 'reply'}-->
- <span><input type="text" name="subject" id="subject" class="px" value="$postinfo[subject]" {if $_G[gp_action] == 'newthread'}onblur="if($('tags')){relatekw('-1','-1'{if $_G['group']['allowposttag']},function(){extraCheck(4)}{/if});doane();}"{/if} onkeyup="strLenCalc(this, 'checklen', 60);" style="width: 25em" tabindex="1" /></span>
- <!--{else}-->
- <span id="subjecthide" class="z">RE: $thread[subject] [<a href="javascript:;" onclick="display('subjecthide');display('subjectbox');$('subject').value='RE: {echo htmlspecialchars(str_replace('\'', '\\\'', $thread[subject]))}';display('subjectchk');strLenCalc($('subject'), 'checklen', 60);return false;">{lang modify}</a>]</span>
- <span id="subjectbox" style="display:none"><input type="text" name="subject" id="subject" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 60);" style="width: 25em" /></span>
- <!--{/if}-->
- <span id="subjectchk"{if $_G[gp_action] == 'reply'} style="display:none"{/if}>{lang comment_message1} <strong id="checklen">60</strong> {lang comment_message2}</span>
复制代码
{:soso__16445366273890902306_2:}
4. 再打开templates/default/forum/post_editor_extra.htm
这一步要修改4处地方。。
测试方法成功,支持分享~~
我修改了限制字符为60.嘿嘿~~
测试站点http://www.tcity.cc
现在还没上传。本地测试成功了。呆弄好帖子阅读页面设计才上传。
本地测试图:
|