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['name'] = _MI_DISCUZ_NAME;
$modversion['version'] = 0.1;
$modversion['description'] = _MI_DISCUZ_DESC;
$modversion['credits'] = "The Xoops Project, The Xoops China Community, Taiwen Jiang (phppp)";
$modversion['author'] = "CFC4N(cfc4nphp@gmail.com)";
$modversion['license'] = "GNU General Public License (GPL) see LICENSE";
$modversion['image'] = "images/discuz_logo.gif";
$modversion['dirname'] = "discuz";
$modversion['hasMain'] = 1;
$modversion['blocks'][0] = 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版)

您可能喜欢下面几篇博文

发表评论

0 评论.

Leave a Reply



[ Ctrl + Enter ]

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

CNXCT小组的博客 is Stephen Fry proof thanks to caching by WP Super Cache