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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

论坛信息系统hack(类似动网小字报)for dz5.0全新发布!(修复阅读权限问题)

[复制链接]
zjh835 发表于 2007-2-8 19:54:15 | 显示全部楼层
原帖由 楓葉寶寶 于 2007-2-8 19:46 发表



加油加油^_^
呵呵

頂帖

頂帖


頂丫..,頂丫........加油..

[ 本帖最后由 zjh835 于 2007-2-8 20:02 编辑 ]
回复

使用道具 举报

文文滴 发表于 2007-2-8 20:08:36 | 显示全部楼层
是啊。这个如果就单只在一个版显示就失去千里传音的意义了
不知道改了没哦
回复

使用道具 举报

zjh835 发表于 2007-2-8 20:10:09 | 显示全部楼层
還是希望...有...

全區廣播的功能..哈哈..

不過大哥很利害..

加油

[ 本帖最后由 zjh835 于 2007-2-8 20:40 编辑 ]
回复

使用道具 举报

 楼主| dandeyu 发表于 2007-2-8 20:30:19 | 显示全部楼层
F、for dz4.1全新安装
做好之后要在后台打开用户组的发表信息权限

后台升级数据库:
  1. DROP TABLE IF EXISTS `cdb_information`;
  2. CREATE TABLE `cdb_information` (
  3.   `inid` mediumint(8) unsigned NOT NULL auto_increment,
  4.   `fid` smallint(6) unsigned NOT NULL default '0',
  5.   `iconid` smallint(6) unsigned NOT NULL default '0',
  6.   `readuser` varchar(15) NOT NULL default '0',
  7.   `typeid` smallint(6) unsigned NOT NULL default '0',
  8.   `author` varchar(15) NOT NULL default '',
  9.   `authorid` mediumint(8) unsigned NOT NULL default '0',
  10.   `subject` varchar(80) NOT NULL default '',
  11.   `newstarttime` int(10) unsigned NOT NULL default '0',
  12.   `newendtime` int(10) unsigned NOT NULL default '0',
  13.   `message` text NOT NULL,
  14.   `redirectnew` tinyint(1) NOT NULL default '0',
  15.   `moneyinfo` int(10) NOT NULL default '0',
  16.   `name` varchar(50) NOT NULL default '',
  17.   PRIMARY KEY  (`inid`)
  18. ) TYPE=MyISAM AUTO_INCREMENT=1 ;
复制代码
  1. ALTER TABLE `cdb_usergroups` ADD `moneyinformation` SMALLINT( 6 ) UNSIGNED NOT NULL ,
  2. ADD `allowpostinformation` TINYINT( 1 ) NOT NULL ;
复制代码
更新后台管理:(在用户组中加入相关选择)
打开admin/groups.inc.php

查找:
  1. showsetting('usergroups_edit_post_poll', 'allowpostpollnew', $group['allowpostpoll'], 'radio');
复制代码
下面添加:
  1. //the information system start for smilewind
  2. showsetting('usergroups_special_information', 'allowpostinformationnew', $group['allowpostinformation'], 'radio');
  3. showsetting('usergroups_special_information_money', 'moneyinformationnew', $group['moneyinformation'], "text");
  4. //the information system end for smilewind
复制代码
查找:
  1. maxattachsize='$maxattachsizenew',
复制代码
后面添加
  1. allowpostinformation='$allowpostinformationnew',moneyinformation='$moneyinformationnew',
复制代码
更新显示页面:

打开论坛根目录下的forumdisplay.php

查找:(discuz5.5会自动解析空格,只好用记事本了)



打开post.php

查找(大约在最末行):
  1. elseif($action == 'edit') {
  2.         require_once DISCUZ_ROOT.'./include/editpost.inc.php';
  3. }
复制代码
下面加:
  1. elseif($action == 'information') {
  2.         require_once DISCUZ_ROOT.'./include/information.inc.php';
  3. }
复制代码
打开forumdisplay.htm
查找:
  1. <!--{if $page == 1 && !empty($announcement)}-->
  2.         <tr>
  3.         <td class="altbg2" align="center"><a href="announcement.php?id=$announcement[id]#$announcement[id]" target="_blank"><img src="{IMGDIR}/lock_folder.gif" border="0"></a></td>
  4.         <td class="altbg2" colspan="2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">{lang announcement}: <a href="announcement.php?id=$announcement[id]#$announcement[id]">$announcement[subject]</a></td>
  5.         <td class="altbg1" align="center"><a href="viewpro.php?uid=$announcement[authorid]">$announcement[author]</a><br><span class="smalltxt">$announcement[starttime]</span></td>
  6.         <td class="altbg2" align="center">-</td>
  7.         <td class="altbg1" align="center">-</td>
  8.         <td class="altbg2" align="center">-</td>
  9.         </tr>
  10. <!--{/if}-->
复制代码
下面添加:
  1. <!--{if $page == 1 && !empty($show)}-->
  2. <tr class="category">
  3. <td align="center"><img src="{IMGDIR}/laba.gif" border="0" alt="" /></td>
  4. <td colspan="6"><marquee direction="left" TrueSpeed scrollamount="1" scrolldelay="15" onMouseOver="this.stop();" onMouseOut="this.start();"> $show </marquee></td>
  5. </tr>
  6. <!--{/if}-->
复制代码
查找(此处是放置“发布信息”这四个字的,dz4不知道放到哪里好,只好放在了论坛名称那一排了,你可以自行修改):
  1. <td width="35%" align="right" nowrap>
复制代码
后面加上
  1. <!--{if $allowpostinformation}--><a href="post.php?action=information&fid=$fid&extra=$extra&information=yes" class="bold">{lang post_information}</a><!--{/if}-->
复制代码
更新语言包:

打开templates.lang.php

查找:
  1.         'posts' => '帖子',
复制代码
下面加上:
  1.         //the information system start for smilewind
  2.          'thread_information' => '信息',
  3.                  'information_index' => '点此查看所有信息',
  4.          'information' => '论坛信息',
  5.      'readuser' => '对象',
  6.          'my_information' => '我的信息',
  7.          'delete_information' => '删除',
  8.          'information_post' => '我发表的信息',
  9.          'information_read' => '我收到的信息',
  10.          'information_end' => '结束',
  11.          'information_posts' => '发表',
  12.          'noinformation' => '暂时没有信息',
  13.          'noreaduser' => '无',
  14.          'information_readuser' => '信息对象',
  15.          'noinformation_readuser' => '(为空则不显示)',
  16.          'infoend' => '结束时间',
  17.          'geshi' => '格式: yyyy-mm-dd',
  18.          'infotype' => '信息类型',
  19.          'textinfo' => '文字信息',
  20.          'siteinfo' => '网址链接',
  21.          'infocontent' => '信息内容',
  22.          'qianli' => '千里传音',
  23.           'post_information' => '发布信息',
  24.          'shuoming' => '(文字信息)直接输入信息内容,支持 Discuz! 代码<br>
  25. (网址链接)请在右侧文本区首行输入公告的链接地址如某个主题地址: xxx.xxx.xxx',
  26.      //the information system end for smilewind
复制代码
打开messages.lang.php

查找:
  1. 'thread_rate_timelimit' => '对不起,您不能对发表于 $karmaratelimit 小时前的帖子进行评分,请返回。',
复制代码
下面添加:
  1. //the information system start for smilewind
  2.         'information_endtime_please' => '对不起,信息结束时间不能为空,请返回修改。',
  3.         'information_endtime_error' => '对不起,信息结束时间日期格式不正确,请返回修改。',
  4.         'information_startend_error' => '对不起,信息开始时间超过了结束时间,请返回修改。',
  5.         'information_credits_shortage' => '对不起,你的帐户不够支付发布信息,正在返回。',
  6.         'information_readuser_error' => '对不起,你所输入的信息对象不存在,正在返回。',
  7.         'information_readuser_self' => '对不起,你所输入的信息对象不能是自己,正在返回。',
  8.         'information_nonexistence' => '目前没有信息查看,请返回',
  9.         'post_information_succeed' => '信息发布成功,您的消费额: $moneyinfo  。正在返回',
  10.         //the information system end for smilewind
复制代码
打开admincp.lang.php

查找:
  1.         'ipban_location' => '地理位置',
  2.         'ipban_days' => '天',
复制代码
下面加上:
  1. //the information system start for smilewind
  2.         'forums_thread_information' => '信息主题',
  3.         'usergroups_special_information' => '允许发表信息:',
  4.         'usergroups_special_information_comment' => '选择“是”允许在论坛发布信息主题',
  5.         'usergroups_special_information_money' => '信息手续费',
  6.         'usergroups_special_information_money_comment' => '信息手续费是按照时间来收取的,即信息发布人所设置的起始时间和终止时间之差再乘以你所设置的信息手续费就是信息具体消费了,该手续费默认为交易积分,请到“<a href="../admincp.php?action=settings&do=credits">积分设置</a>”里设置交易积分',
  7.         //the information system end for smilewind
复制代码
完成!!~~上传附件~

[ 本帖最后由 dandeyu 于 2007-2-9 15:19 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

破帽遮颜 发表于 2007-2-8 20:57:49 | 显示全部楼层
我相信这是07年最火热的帖子~
回复

使用道具 举报

zjh835 发表于 2007-2-8 21:23:05 | 显示全部楼层
這真的有可能成為2007..5.0最火紅的插件

..支持跨版千里傳音..........開發
回复

使用道具 举报

lqng 发表于 2007-2-9 10:36:44 | 显示全部楼层

回复 #64 dandeyu 的帖子

我已经用上了~~谢谢LZ~~
请问你今天,也就是2.9日更新的那张帖子!
我这个也需要跟这个更新吗?
回复

使用道具 举报

楓葉寶寶 发表于 2007-2-9 10:38:38 | 显示全部楼层
原帖由 lqng 于 2007-2-9 10:36 发表
我已经用上了~~谢谢LZ~~
请问你今天,也就是2.9日更新的那张帖子!
我这个也需要跟这个更新吗?



對呀 也要更新 只不過這個帖子不知怎的 樓主編輯不到.

等版主看看
回复

使用道具 举报

lqng 发表于 2007-2-9 10:44:35 | 显示全部楼层
那只能等待中咯!
很喜欢这个东东!!1
脐带期待更新!!!
回复

使用道具 举报

lukechern 发表于 2007-2-9 10:53:36 | 显示全部楼层
再顶楼主一下, 希望这个插件功能强!强!强!

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 02:19 , Processed in 0.105636 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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