湖中沉 发表于 2010-11-25 15:17:51

解决房产中介管理员管理无效问题

解决方法:
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, $uid)">[{lang house_promote}]</a> <!--{/if}-->
<!--{if $isgroupadmin || $usergroup['allowrecommend']}--><a href="javascript:;" onclick="modcategorythread(1, 'recommend', $thread, $uid)">[{lang house_stick}]</a> <!--{/if}-->
<!--{if $isgroupadmin || $usergroup['allowhighlight']}--><a href="javascript:;" onclick="modcategorythread(1, 'highlight', $thread, $uid)">[{lang house_highlight}]</a><!--{/if}-->
替换为

<!--{if $isgroupadmin || ($agentadmin && $usergroup['allowpush'])}--><a href="javascript:;" onclick="modcategorythread(1, 'push', $thread, $uid)">[{lang house_promote}]</a> <!--{/if}-->
<!--{if $isgroupadmin || ($agentadmin && $usergroup['allowrecommend'])}--><a href="javascript:;" onclick="modcategorythread(1, 'recommend', $thread, $uid)">[{lang house_stick}]</a> <!--{/if}-->
<!--{if $isgroupadmin || ($agentadmin && $usergroup['allowhighlight'])}--><a href="javascript:;" onclick="modcategorythread(1, 'highlight', $thread, $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'];


页: [1]
查看完整版本: 解决房产中介管理员管理无效问题