在网站中发布 PHPBB 论坛主题/帖子信息
我正在尝试提取论坛 X 部分中最新/最近的 5 个主题,并将其通过链接“发布”在我的网站上,以便观众可以直接转到该主题,而不必浏览论坛或者什么不是。
我已经在网上看过并阅读了一些教程,但是……老实说,phpbb 对我来说似乎一团糟。
感谢所有帮助 坎波斯
I am trying to extract, say, the latest/most recent 5 threads in the X section of my Forums and have it 'posted' on my website with a link so the viewers can go directly to the thread instead of having to browse the forum or what not.
I've seen and read some tutorials online but...in all honesty, phpbb seems like a mess to me.
All help appreciated
G.Campos
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您无法访问论坛数据库,您可能需要尝试一些 phpbb3 门户,例如这个。
但是,如果您确实有权访问 mysql(?) 数据库,您可能需要尝试使用
SELECT
语句,例如:将“X”更改为您想要的论坛 ID dump from,以及“Y”到您想要停止转储的 post_time 限制;请记住,您将面临
strtotime
次,例如1290886590
。然后,执行查询并获取结果(
mysql_fetch_array
),以便将其格式化为表或任何您想要的内容。使用post_subject
和其他列以获得良好的输出。祝你好运。编辑:您在 phpbb 页面上有一个相当广泛的教程, 此处。看看吧。
If you don't have access to the forum' db, you might want to try some phpbb3 portal, such as this one.
However, if you do have access to the mysql(?) db, you might want to give a shot for a
SELECT
sentence, such as:Change that 'X' to the forum id that you want to dump from, and the 'Y' to the post_time limit you want to stop dumping; having in mind that you will be facing with
strtotime
times, such as1290886590
.Then, execute the query and fetch the result (
mysql_fetch_array
) for formatting it on a table or whatever you want. Play with thepost_subject
and other columns for a nice output. Good luck.Edit: You have a pretty extensive tutorial on the phpbb page, here. Give it a look.