原贴地址。
http://www.alan888.com/Discuz/viewthread.php?tid=91885&extra=page%3D2%26amp%3Bfilter%3D0%26amp%3Borderby%3Ddateline
有什么问题请去原贴发贴。
作者:猫仔
插件:BBS2ME 论坛职业第二版
改版者 豪仔~*(teng)
==============================
升级
- ALTER TABLE `cdb_ranks` CHANGE `stars` `stars` CHAR( 7 ) NOT NULL DEFAULT '0';
复制代码
admincp.lang.php找
改为
找
改为~*
找
改为~*
viewthread.php找
- } elseif($userstatusby == 2) {
- foreach($_DCACHE['ranks'] as $rank) {
- if($post['posts'] > $rank['postshigher']) {
- $post['authortitle'] = $rank['ranktitle'];
- $post['stars'] = $rank['stars'];
复制代码
改为
- //BBS2ME论坛职业2
- //} elseif($userstatusby == 2) {
- }
- if($userstatusby == 2) {
- $post['authortitle'] = $_DCACHE['usergroups'][$post['groupid']]['grouptitle'];
- //foreach($_DCACHE['ranks'] as $rank) {
- foreach($_DCACHE['ranks'] as $k=> $rank) {
- if($post['posts'] > $rank['postshigher']) {
- $post['stars2'] = $rank[stars];
- $post['authortitle2'] = strip_tags($rank['ranktitle']);
- $post['level']=$k+1;
- //$post['authortitle'] = $rank['ranktitle'];
- //$post['stars'] = $rank['stars'];
- //BBS2ME论坛职业2
复制代码
viewthread.htm
- {lang readperm} $post[readaccess]<br>
复制代码
下加入
- <!--{if $userstatusby == 2}-->
- 职业:<!--{if $post['stars2']}-->
- <img src="images/common/bbs2me/$post[stars2].gif" border="0" title='$post[authortitle2] 战斗力:$post[posts] 等级: $post[level]'>
- <!--{else}-->无业游民<!--{/if}--><br>
- <!--{/if}-->
复制代码
viewpro.php找
- $member = array_merge($member, $db->fetch_array($query));
- }
复制代码
下面加
- //BBS2ME论坛职业2
- @require DISCUZ_ROOT.'./forumdata/cache/cache_viewthread.php';
- if($userstatusby == 2) {
- foreach($_DCACHE['ranks'] as $k=> $rank) {
- if($member['posts'] > $rank['postshigher']) {
- $member['stars2'] = $rank[stars];
- $member['authortitle2'] = strip_tags($rank['ranktitle']);
- $member['level']=$k+1;
- break;
- }
- }
- }
- //BBS2ME论坛职业2
复制代码
viewpro.htm找
- <tr><td width="45%" class="bold">{lang uid}:</td><td width="55%">$member[uid]</td></tr>
复制代码
在上加入
- <!--bbs2me 论坛职业2-->
- <!--{if $userstatusby == 2}-->
- 论坛职业:
- <!--{if $member['stars2']}-->
- <img src="images/common/bbs2me/$member[stars2].gif" border="0" title='$member[authortitle2] 战斗力:$member[posts] 等级: $member[level]'>
- <!--{else}-->无业游民<!--{/if}-->
- <!--{/if}-->
- <!--bbs2me 论坛职业2-->
复制代码
cache.func.php找
- if($userstatusby == 0 || ($userstatusby == 2 && $group['type'] == 'member')) {
- unset($group['grouptitle'], $group['stars']);
- }
复制代码
替换
- //if($userstatusby == 0 || ($userstatusby == 2 && $group['type'] == 'member')) {
- // unset($group['grouptitle'], $group['stars']);
- //}
复制代码
控制台设置
Discuz! 选项==>论坛功能==>以 ... 衡量并显示用户头衔:论坛职业+用户组
分组与级别=>论坛职业==>自行设置图片(限GIF档名) 图示只需填入编号 不需填入附档名
如不限制附档名 找
改为
[ 本帖最后由 haohao036 于 2006-11-25 23:10 编辑 ] |