dongye8110 2012-02-06 10:32
浏览 87
已采纳

phpBB3 - 创建论坛类别

I want to automate the process of creating a forum category with the phpBB library. I know how to post topics and forums by using the submit_post() function but I don't know how you make the forum into a category in which more forums/topics can be added.

submit_post() function: http://wiki.phpbb.com/Function.submit_post

There is no mention in the documentation here about making the forum into a category, so I'm assuming there is a different function for that.

To create a forum category in the ACP you'd go to create new forum, enter the name, and select category from the Forum Type drop-down list. However there is no definition of forum type in the function above, so I assume its a different function.

Having some trouble tracking it down though. If anyone knows the function I need please share.

  • 写回答

2条回答 默认 最新

  • doujianwei8217 2012-02-06 12:15
    关注

    I found one solution here. It requires writing directly to the database in places but does utilize some of the phpBB library classes: http://www.phpbb.com/community/viewtopic.php?f=71&t=758985

    I did find an alternative which is purely phpBB library classes: http://www.phpbb.com/community/viewtopic.php?f=46&t=1289975

    However this second solution requires you to have a 'System' user setup, which wouldn't work with the implementation I have. As I assume the system user would need to be authenticated.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?