phpBB 主题中的 WordPress 帖子
我想知道当我在 WordPress 端保存帖子时是否有办法在特定论坛上创建主题。有可用的教程吗?
更具体一些。我喜欢让我的插件用户将 WordPress 类别合并到 phpBB 论坛,当我在 WordPress 中创建新帖子时,自动在相应论坛的 phpBB 端创建一个主题。
即:发布在科技新闻分类的帖子,自动发布到phpBB端的科技新闻论坛。
有什么解决办法吗?
I like to know if there is a way to create topics on specific Forums when I save posts on WordPress side. Is there any tutorial available?
More specific. I like to allow my plugin users to combine a WordPress category to a phpBB forum, and when I create a new post in the WordPress, automaticly to create a topic in the phpBB side in the corresponding forum.
ie: Post that are posted on Tech News category, automaticly to be posted on Technology news forum on the phpBB side.
Any solution for that ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
BBPress 应该就是这样做的。
http://bbpress.org/
如果你想开发自己的Wordpress插件,可以看看phpBB的submit_post函数:
http://wiki.phpbb.com/Using_phpBB3%27s_Basic_Functions#1.4.7._Inserting_Posts_and_Private_Mess
http://wiki.phpbb.com/Function.submit_post
和Wordpress的publish_post函数,位于wp-includes/post.php
http://codex.wordpress.org/Function_Reference/wp_publish_post
BBPress is supposed to do exactly this.
http://bbpress.org/
If you want to develop your own Wordpress plugin, take a look at phpBB's submit_post function:
http://wiki.phpbb.com/Using_phpBB3%27s_Basic_Functions#1.4.7._Inserting_Posts_and_Private_Mess
http://wiki.phpbb.com/Function.submit_post
and Wordpress' publish_post function, located in wp-includes/post.php
http://codex.wordpress.org/Function_Reference/wp_publish_post
您无需切换到 bbPress,可以使用 WP-United。目前它只允许您选择一个论坛进行交叉发帖,但这将是一个基于类别的交叉发帖的简单更改:我正在考虑为 v0.9.2 添加该功能
You don't need to switch to bbPress, you can use WP-United. It only allows you to select one forum to cross-post to at the moment, but it would be an easy change to cross-post based on category: I'm considering adding that for v0.9.2