|
本帖最后由 hbghlyj 于 2023-11-5 21:28 编辑 source/module/forum/forum_viewthread.php第822行
- $postlist[$pid]['postreview']['support'] = dintval($post['support'])
复制代码 改为
- if($postlist[$pid]['postreview']['support'] = dintval($post['support'])){
- $postlist[$pid]['postreview']['support_member'] = '';
- foreach(DB::fetch_all('SELECT uid FROM '.DB::table('forum_hotreply_member').' WHERE pid='.$pid) as $row){
- $postlist[$pid]['postreview']['support_member'] .= DB::fetch_first('SELECT username FROM '.DB::table('common_member').' WHERE uid='.$row['uid'])['username']."\n";
- }
- }
复制代码
template/default/forum/viewthread_node.htm搜索<a class="replyadd" 所在的行,改为:
- <a class="replyadd" href="forum.php?mod=misc&action=postreview&do=support&tid=$_G[tid]&pid=$post[pid]&hash={FORMHASH}" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', '');return false;"{else} onclick="showWindow('login', this.href)"{/if} title="$post[postreview]['support_member']"><!--$_G['setting']['recommendthread'][addtext]--> <span id="review_support_$post[pid]">$post[postreview][support]</span></a>
复制代码 再搜索fico-thumbup fc-l 所在的行,改为
- <a id="recommend_add" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G[tid]&hash={FORMHASH}" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate({$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} {if $_G['forum_thread']['recommend_add']}title="<!--{eval $supportmember='';foreach(DB::fetch_all('SELECT `recommenduid` FROM '.DB::table('forum_memberrecommend').' WHERE tid='.$_G['tid']) as $row)$supportmember .= DB::fetch_first('SELECT username FROM '.DB::table('common_member').' WHERE uid='.$row['recommenduid'])['username']."\n";}-->$supportmember"{/if}><i><em class="fico-thumbup fc-l"></em><!--$_G['setting']['recommendthread'][addtext]--><span id="recommendv_add"{if !$_G['forum_thread']['recommend_add']} style="display:none"{/if}>$_G[forum_thread][recommend_add]</span></i></a>
复制代码
修改后已经能显示谁按过赞:
|
|