找回密码
 注册加入

扫一扫,极速登录

QQ登录

只需一步,快速开始

搜索
查看: 4884|回复: 0

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

[复制链接]
发表于 2010-11-25 15:17:51 | 显示全部楼层 |阅读模式
解决方法:
1.找到source\module\category\house\broker.php文件
搜索
  1. $avatar = category_uc_avatar($member['uid']);
复制代码
在这段代码下面添加如下代码

  1. //判断是否为中介管理员
  2. $agentadmin = $usergrouplist[$usergroupid]['manageuid'] == $_G['uid'] ? 1 : 0;
复制代码
2.找到template\default\category\house_broker.htm文件
搜索

  1. <!--{if $isgroupadmin || $usergroup['allowpush']}--><a href="javascript:;" onclick="modcategorythread(1, 'push', $thread[tid], $uid)">[{lang house_promote}]</a> <!--{/if}-->
  2. <!--{if $isgroupadmin || $usergroup['allowrecommend']}--><a href="javascript:;" onclick="modcategorythread(1, 'recommend', $thread[tid], $uid)">[{lang house_stick}]</a> <!--{/if}-->
  3. <!--{if $isgroupadmin || $usergroup['allowhighlight']}--><a href="javascript:;" onclick="modcategorythread(1, 'highlight', $thread[tid], $uid)">[{lang house_highlight}]</a><!--{/if}-->
复制代码
替换为

  1. <!--{if $isgroupadmin || ($agentadmin && $usergroup['allowpush'])}--><a href="javascript:;" onclick="modcategorythread(1, 'push', $thread[tid], $uid)">[{lang house_promote}]</a> <!--{/if}-->
  2. <!--{if $isgroupadmin || ($agentadmin && $usergroup['allowrecommend'])}--><a href="javascript:;" onclick="modcategorythread(1, 'recommend', $thread[tid], $uid)">[{lang house_stick}]</a> <!--{/if}-->
  3. <!--{if $isgroupadmin || ($agentadmin && $usergroup['allowhighlight'])}--><a href="javascript:;" onclick="modcategorythread(1, 'highlight', $thread[tid], $uid)">[{lang house_highlight}]</a><!--{/if}-->
复制代码
搜索
  1. <!--{if $isgroupadmin}-->
  2. <form method="post" autocomplete="off" name="modactions" id="modactions">
复制代码
替换为

  1. <!--{if $isgroupadmin || $agentadmin}-->
  2. <form method="post" autocomplete="off" name="modactions" id="modactions">
复制代码
3.找到source\module\category\house\threadmod.php文件
搜索

  1. if(empty($channel['managegid'][$_G['groupid']]) && $_G['uid'] != $thread['authorid']) {
复制代码
替换为

  1. if(empty($channel['managegid'][$_G['groupid']]) && $_G['uid'] != $thread['authorid'] && $usergrouplist[$usergroupid]['manageuid'] != $_G['uid']) {
复制代码
搜索

  1. if($_G['uid'] == $thread['authorid'] && empty($channel['managegid'][$_G['groupid']])) {
复制代码

替换为

  1. 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文件
搜索
  1. $remainnum['recommend'] = $usergroup['recommenddayper'] - $today['recommendnum'];
  2. $remainnum['push'] = $usergroup['pushdayper'] - $today['pushnum'];
  3. $remainnum['highlight'] = $usergroup['highlightdayper'] - $today['highlightnum'];
复制代码
改为

  1. $remainnum['recommend'] = $usergroup['recommenddayper'] - $today['todayrecommend'];
  2. $remainnum['push'] = $usergroup['pushdayper'] - $today['todaypush'];
  3. $remainnum['highlight'] = $usergroup['highlightdayper'] - $today['todayhighlight'];
复制代码



您需要登录后才可以回帖 登录 | 注册加入  

本版积分规则

Archiver|手机版|小黑屋|Discuz!扩展中心 ( 浙ICP备14042422号-1 )|网站地图QQ机器人

GMT+8, 2024-5-16 17:22 , Processed in 0.157100 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表