找回密码
 注册加入
搜索
查看: 5077|回复: 1

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

[分享]
发表于 2011-3-30 14:25:27 | 显示全部楼层 |阅读模式
解决方法:
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'];
复制代码

发表于 2012-3-29 11:09:23 | 显示全部楼层
找到source\module\category\house\broker.php文件
回复 支持 反对

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Discuz!扩展中心 - 杭州富迪文化艺术策划有限公司 版权所有 ( 浙ICP备14042422号-1 )|网站地图QQ机器人

GMT+8, 2025-8-22 00:14 , Processed in 0.327211 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X5.0

© 2001-2025 Discuz! Team.|IP地址位置数据由 纯真CZ88 提供支持

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