本帖最后由 dongdong0925 于 2010-11-25 14:01 编辑
解决方法:
1.找到source\module\category\house\broker.php文件
搜索
- $avatar = category_uc_avatar($member['uid']);
复制代码 在这段代码下面添加如下代码
- //判断是否为中介管理员
- $agentadmin = $usergrouplist[$usergroupid]['manageuid'] == $_G['uid'] ? 1 : 0;
-
复制代码
2.找到template\default\category\house_broker.htm文件
搜索
- <!--{if $isgroupadmin || $usergroup['allowpush']}--><a href="javascript:;" onclick="modcategorythread(1, 'push', $thread[tid], $uid)">[{lang house_promote}]</a> <!--{/if}-->
- <!--{if $isgroupadmin || $usergroup['allowrecommend']}--><a href="javascript:;" onclick="modcategorythread(1, 'recommend', $thread[tid], $uid)">[{lang house_stick}]</a> <!--{/if}-->
- <!--{if $isgroupadmin || $usergroup['allowhighlight']}--><a href="javascript:;" onclick="modcategorythread(1, 'highlight', $thread[tid], $uid)">[{lang house_highlight}]</a><!--{/if}-->
-
复制代码 替换为
- <!--{if $isgroupadmin || ($agentadmin && $usergroup['allowpush'])}--><a href="javascript:;" onclick="modcategorythread(1, 'push', $thread[tid], $uid)">[{lang house_promote}]</a> <!--{/if}-->
- <!--{if $isgroupadmin || ($agentadmin && $usergroup['allowrecommend'])}--><a href="javascript:;" onclick="modcategorythread(1, 'recommend', $thread[tid], $uid)">[{lang house_stick}]</a> <!--{/if}-->
- <!--{if $isgroupadmin || ($agentadmin && $usergroup['allowhighlight'])}--><a href="javascript:;" onclick="modcategorythread(1, 'highlight', $thread[tid], $uid)">[{lang house_highlight}]</a><!--{/if}-->
-
复制代码 搜索- <!--{if $isgroupadmin}-->
- <form method="post" autocomplete="off" name="modactions" id="modactions">
复制代码 替换为
- <!--{if $isgroupadmin || $agentadmin}-->
- <form method="post" autocomplete="off" name="modactions" id="modactions">
复制代码 3.找到source\module\category\house\threadmod.php文件
搜索
- if(empty($channel['managegid'][$_G['groupid']]) && $_G['uid'] != $thread['authorid']) {
复制代码 替换为
- if(empty($channel['managegid'][$_G['groupid']]) && $_G['uid'] != $thread['authorid'] && $usergrouplist[$usergroupid]['manageuid'] != $_G['uid']) {
-
复制代码 搜索
- if($_G['uid'] == $thread['authorid'] && empty($channel['managegid'][$_G['groupid']])) {
复制代码 替换为
- if(($_G['uid'] == $thread['authorid'] || $usergrouplist[$usergroupid]['manageuid'] == $_G['uid']) && empty($channel['managegid'][$_G['groupid']])) {
复制代码
11月25日14:00更新部分(修复之前的剩余操作数不变的问题)
找到source\module\category\house\threadmod.php文件
搜索- $remainnum['recommend'] = $usergroup['recommenddayper'] - $today['recommendnum'];
- $remainnum['push'] = $usergroup['pushdayper'] - $today['pushnum'];
- $remainnum['highlight'] = $usergroup['highlightdayper'] - $today['highlightnum'];
复制代码 改为
- $remainnum['recommend'] = $usergroup['recommenddayper'] - $today['todayrecommend'];
- $remainnum['push'] = $usergroup['pushdayper'] - $today['todaypush'];
- $remainnum['highlight'] = $usergroup['highlightdayper'] - $today['todayhighlight'];
复制代码
|