xoops调取Discuz最新主题,最新回复程序(block版)

使用方法:
1,下载附件,解压缩到modules目录下…
2,打开discuz/include/functions.php,修改discuz的表前缀,记得加上数据库名(例子:xoops.cdb,其中xoops为数据库名),
修改Discuz论坛的URL,网址最后不要加/,使其格式为 http://…/discuz 类似!
3,登录后台,安装模块…
4,将模块的排序设置为0,使其不在首页显示该链接…
5,到区块管理里修改其显示区块
6,删除缓存,即可

注:如发现后台区块管理中没有Discuz的两个区块,那请到群组管理中,修改权限,添加上这两个区块的权限即可!

<?php
/*
	Date:2009-5-18
	$Id: xoops_version.php   cfc4n $
*/
$modversion&#91;'name'&#93; = _MI_DISCUZ_NAME;
$modversion&#91;'version'&#93; = 0.1;
$modversion&#91;'description'&#93; = _MI_DISCUZ_DESC;
$modversion&#91;'credits'&#93; = "The Xoops Project, The Xoops China Community, Taiwen Jiang (phppp)";
$modversion&#91;'author'&#93; = "CFC4N(cfc4nphp@gmail.com)";
$modversion&#91;'license'&#93; = "GNU General Public License (GPL) see LICENSE";
$modversion&#91;'image'&#93; = "images/discuz_logo.gif";
$modversion&#91;'dirname'&#93; = "discuz";
$modversion&#91;'hasMain'&#93; = 1;
$modversion&#91;'blocks'&#93;&#91;0&#93; = array(
	'file' => "discuz_block.php",
	'name' => _MI_DISCUZ_BLOCK_NEWPOST,
	'description' => "Shows new posts",
	'show_func' => "b_discuz_newpost_show",
	'options' => "",
	'template' => 'discuz_block_newpost.html');

$modversion['blocks'][1] = array(
	'file' => "discuz_block.php",
	'name' => _MI_DISCUZ_BLOCK_NEWREPLY,
	'description' => "Shows new replied topics",
	'show_func' => "b_discuz_newreply_show",
	'options' => "",
	'template' => 'discuz_block_newreply.html');
?>

xoops调取Discuz最新主题,最新回复程序(bloack版)

关注微信公众号,手机阅读更方便: 程序员的阅微草堂

知识共享许可协议莿鸟栖草堂CFC4N 创作,采用 知识共享 署名-非商业性使用-相同方式共享(3.0未本地化版本)许可协议进行许可。基于http://www.cnxct.com上的作品创作。转载请注明转自:xoops调取Discuz最新主题,最新回复程序(block版)

3 thoughts on “xoops调取Discuz最新主题,最新回复程序(block版)

  1. If you want to take a good deal from this piece of writing then you have to
    apply such techniques to your won web site.

  2. Excellent pieces. Keep writing such kind of info on your site.

    Im really impressed by your site.
    Hi there, You’ve done an incredible job. I will definitely digg it and in my opinion suggest to my
    friends. I am sure they’ll be benefited from this site.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.