Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[发布] 家族门派(by 5.0)***修正版本*简体

[复制链接]
jukey 发表于 2006-10-5 14:48:56 | 显示全部楼层 |阅读模式
需要繁体 翻译的可以来找我。
http://www.hotmvp.com/bbs
论坛需要互助
=============================================
1. 上传所有附件

2. 导入插件discuz_plugin_family.txt

3. 执行family_install.php(执行前建议先备份)

升级数据库:


  1. ALTER TABLE `cdb_fam` ADD `famname` int(10) NOT NULL default '0';
复制代码


打开forumdisplay.php


  1. if($forum['type'] == 'forum') {
  2.         $navigation = "» $forum[name]";
  3.         $navtitle = ' - '.strip_tags($forum['name']);
  4. } else {
  5.         $forumup = $_DCACHE['forums'][$forum['fup']]['name'];
  6.         $navigation = "&raquo; <a href="forumdisplay.php?fid=$forum[fup]">$forumup</a> &raquo; $forum[name]";
  7.         $navtitle = ' - '.strip_tags($forumup).' - '.strip_tags($forum['name']);
  8. }
复制代码


下面加上:

  1. if($forum['type'] == 'sub' && $forum['clan']!='') {
  2. $query=$db->query("select * from {$tablepre}members where username='$discuz_user'");
  3. $fam=@mysql_fetch_array($query);
  4. if($forum['clan']!=$fam[fam] && $adminid != 1){
  5.        showmessage('本区只限同家族成员进入!');
  6. }
  7. }
复制代码


打开viewthread.php:


  1. if($thread['typeid'] && isset($forum['threadtypes']['types'][$thread['typeid']])) {
  2.         $thread['subject'] = ($forum['threadtypes']['listable'] ? '<a href="forumdisplay.php?fid='.$fid.'&filter=type&typeid='.$thread['typeid'].'">['.$forum['threadtypes']['types'][$thread['typeid']].']</a>' : '['.$forum['threadtypes']['types'][$thread['typeid']].']').' '.$thread['subject'];
  3. }
复制代码


下面加上:


  1. //家族Begin
  2. if($forum['type'] == 'sub' && $forum['clan']!='') {
  3. $query=$db->query("select * from {$tablepre}members where username='$discuz_user'");
  4. $fam=@mysql_fetch_array($query);
  5. if($forum['clan'] && $forum['clan']!=$fam[fam] && $adminid != 1){
  6.        showmessage('本区只限同家族成员进入!');
  7. }
  8. }
  9. //家族End
复制代码


继续找:


  1. p.*, m.uid
复制代码


后面加上:


  1. , m.fam
复制代码


继续找:


  1. while($post = $db->fetch_array($query)) {
复制代码


下面加上:

  1. //家族Begin
  2.                if(!$post['fam'] || $post['fam']=="0")
  3.                {
  4.                 $post[fam]="没有家族";     //没有加入家族要显示的资讯
  5.                }
  6.                  else{
  7.                $query_mp=$db->query("select * from cdb_fam where fmname='$post[fam]'");
  8.                $fcu=@mysql_fetch_array($query_mp);
  9.                      if($post[author]==$fcu['username'])
  10.                        {
  11.                          $post['fam']=$post['fam']."-".$fcu['firstname'];   //家族长要显示的资讯
  12.                        }
  13.                      elseif($post[author]==$fcu['first']||$post[author]==$fcu['seven']){
  14.                          $post['fam']=$post['fam']."-".$fcu['firstname2'];   //家族长老要显示的资讯
  15.                        }
  16.                      elseif($post[author]==$fcu['second']||$post[author]==$fcu['third']){
  17.                          $post['fam']=$post['fam']."-".$fcu['secondname'];   //家族长老要显示的资讯
  18.                        }
  19.                      elseif($post[author]==$fcu['four']||$post[author]==$fcu['five']||$post[author]==$fcu['six']) {
  20.                        $post['fam']=$post['fam']."-".$fcu['thirdname'];   //家族唐主要显示的资讯
  21.                       }
  22.                      else {
  23.                       $post['fam']=$post['fam']."-".$fcu['mbname'];     //家族成员要显示的资讯
  24.                      }
  25.                 }

  26.                 //家族End
复制代码

紧记前面有一空格

打开viewthread模版(viewthread.htm)
找:


  1. {lang readperm} $post[readaccess]<br>
复制代码


下面加上:

  1. 家族 $post[fam]>
复制代码


***注意:如装了美化作者栏,请打开membercard修正。***
====================================================
本版本由 繁体版本翻译而来: 不明白的可以参照:
https://discuz.dismall.com/viewthread.php?tid=417227&highlight=%BC%D2%D7%E5
==========================================
16:50分以前下在请重新下再,主要是安装程序更新
================================
之前安装过的先卸载
如果出错就一句一句卸载,卸载干净!~~~~~~~~
一句一句卸载提示出错跳过就可以了


DROP TABLE cdb_fam;
DROP TABLE cdb_family_domain;
DROP TABLE cdb_family_record;
DROP TABLE cdb_family_want;
ALTER TABLE `cdb_forums` DROP `clan`;
ALTER TABLE `cdb_members` DROP `pay`;
ALTER TABLE `cdb_members` DROP `fam`;
ALTER TABLE `cdb_members` DROP `status`;
ALTER TABLE `cdb_members` DROP `famname`;
-------------------------------
DROP TABLE IF EXISTS `{$tablepre}fam`;
DROP TABLE IF EXISTS `{$tablepre}family_domain`;
DROP TABLE IF EXISTS `{$tablepre}family_record`;
DROP TABLE IF EXISTS `{$tablepre}family_want`;
然后运行新INSTALL安装程序

[ 本帖最后由 jukey 于 2006-10-8 15:38 编辑 ]

hotmvp.com.rar

22.9 KB, 下载次数: 1746

回复

使用道具 举报

汪大东 发表于 2006-10-5 14:49:14 | 显示全部楼层
支持下,看看哦
呵呵
回复

使用道具 举报

 楼主| jukey 发表于 2006-10-5 14:50:02 | 显示全部楼层
回复

使用道具 举报

 楼主| jukey 发表于 2006-10-5 14:52:45 | 显示全部楼层
回复

使用道具 举报

royyellow 发表于 2006-10-5 14:58:27 | 显示全部楼层
回复

使用道具 举报

卖猪仔 发表于 2006-10-5 14:58:34 | 显示全部楼层
很好`````
```
回复

使用道具 举报

royyellow 发表于 2006-10-5 14:58:44 | 显示全部楼层
回复

使用道具 举报

royyellow 发表于 2006-10-5 14:59:22 | 显示全部楼层
回复

使用道具 举报

缘亦如此 发表于 2006-10-5 15:00:02 | 显示全部楼层
路过,留名!!
回复

使用道具 举报

terryhom 发表于 2006-10-5 15:06:00 | 显示全部楼层
如此强帖不顶不行  黄金广告位招租 联系地址 看签名!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-12 06:01 , Processed in 0.096504 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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