1,.\source\function\function_discuzcode.php
查找
'''php $message = pregreplace("/[hide](.*?)[\/hide]/is", tplhidereplyhidden(), $message); '''
更改为
'''php $message = pregreplace("/[hide]\s(.?)\s*[\/hide]/is", tplhide_reply(), $message); '''
2,.\source\include\post\post_newthread.php
查找
'''php $params = array( 'subject' => $subject, 'message' => $message, 'typeid' => $typeid, 'sortid' => $sortid, 'special' => $special, ); '''
更改为
'''php $params = array( 'subject' => $subject, 'message' => trim("[hide]".$message."[/hide]"), 'typeid' => $typeid, 'sortid' => $sortid, 'special' => $special, ); '''
3,.\source\function\function_threadsort.php
查找
'''php return $threadsortshow; '''
更改为
'''php if($G['uid']) { $authoronline = C::t('forumpost')->fetchpidbytidauthorid($G['tid'], $G['uid']); }
if($authoronline){
return $threadsortshow;
}
'''
4, .\template\default\forum\viewthreadnodebody.htm
查找
'''php <!--{if $threadsort && $threadsortshow}--> <!--{if $threadsortshow['typetemplate']}--> $threadsortshow[typetemplate] <!--{elseif $threadsortshow['optionlist']}-->
更改为
'''php <!--{if $threadsort && $threadsortshow}--> <!--{if $threadsortshow['optionlist']}-->
本贴联系方式隐藏,回复后可见
<!--{/if}--> '''