A5分类信息回复可见修改

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']}-->

<!--{if $threadsortshow['optionlist'] == 'expire'}--> {lang hasexpired} <!--{else}--> <table summary="{lang threadtypeoption}" cellpadding="0" cellspacing="0" class="cgtl mbm"> $_G[forum][threadsorts][types][$_G[forum_thread][sortid]] <!--{loop $threadsortshow['optionlist'] $option}--> <!--{if $option['type'] != 'info'}--> $option[title]: <!--{if $option['value'] !== ''}-->$option[value] $option[unit]<!--{else}-->-<!--{/if}--> <!--{/if}--> <!--{/loop}--> <!--{/if}-->
<!--{/if}--> <!--{/if}--> '''

更改为

'''php <!--{if $threadsort && $threadsortshow}--> <!--{if $threadsortshow['optionlist']}-->

<!--{if $threadsortshow['optionlist'] == 'expire'}--> {lang hasexpired} <!--{else}--> <table summary="{lang threadtypeoption}" cellpadding="0" cellspacing="0" class="cgtl mbm"> $_G[forum][threadsorts][types][$_G[forum_thread][sortid]] <!--{loop $threadsortshow['optionlist'] $option}--> <!--{if $option['type'] != 'info'}--> $option[title]: <!--{if $option['value'] !== ''}-->$option[value] $option[unit]<!--{else}-->-<!--{/if}--> <!--{/if}--> <!--{/loop}--> <!--{/if}-->
<!--{/if}--> <!--{else}-->

本贴联系方式隐藏,回复后可见


<!--{/if}--> '''