19

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

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

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

  1. <?php
  2. /*
  3.     Date:2009-5-18
  4.     $Id: xoops_version.php   cfc4n $
  5. */
  6. $modversion['name'] = _MI_DISCUZ_NAME;
  7. $modversion['version'] = 0.1;
  8. $modversion['description'] = _MI_DISCUZ_DESC;
  9. $modversion['credits'] = "The Xoops Project, The Xoops China Community, Taiwen Jiang (phppp)";
  10. $modversion['author'] = "CFC4N(cfc4nphp@gmail.com)";
  11. $modversion['license'] = "GNU General Public License (GPL) see LICENSE";
  12. $modversion['image'] = "images/discuz_logo.gif";
  13. $modversion['dirname'] = "discuz";
  14. $modversion['hasMain'] = 1;
  15. $modversion['blocks'][0] = array(
  16.     'file' => "discuz_block.php",
  17.     'name' => _MI_DISCUZ_BLOCK_NEWPOST,
  18.     'description' => "Shows new posts",
  19.     'show_func' => "b_discuz_newpost_show",
  20.     'options' => "",
  21.     'template' => 'discuz_block_newpost.html');
  22.  
  23. $modversion['blocks'][1] = array(
  24.     'file' => "discuz_block.php",
  25.     'name' => _MI_DISCUZ_BLOCK_NEWREPLY,
  26.     'description' => "Shows new replied topics",
  27.     'show_func' => "b_discuz_newreply_show",
  28.     'options' => "",
  29.     'template' => 'discuz_block_newreply.html');
  30. ?>

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

Leave a Reply

*
你是机器人吗?如果不是,请填写验证码,谢谢... 如果你看不清,那你点图片,听语音
Click to hear an audio file of the anti-spam word