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条)

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的