简体   繁体   English

在网站上发布PHPBB论坛主题/信息

[英]Posting PHPBB Forum Thread/Post info in a website

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. 我正在尝试提取论坛X部分中的最新/最近5个主题,并将其“发布”在我的网站上并带有链接,以便观众可以直接转到该主题,而不必浏览论坛还是没有。

I've seen and read some tutorials online but...in all honesty, phpbb seems like a mess to me. 我已经看过并阅读了一些在线教程,但是...老实说,phpbb对我来说似乎是一团糟。

All help appreciated G.Campos 所有帮助表示赞赏G.Campos

If you don't have access to the forum' db, you might want to try some phpbb3 portal, such as this one . 如果您无权访问论坛的数据库,则可能需要尝试一些phpbb3门户,例如this

However, if you do have access to the mysql(?) db, you might want to give a shot for a SELECT sentence, such as: 但是,如果您确实有权访问mysql(?)db,则可能需要考虑一下SELECT语句,例如:

SELECT * FROM phpbb_posts WHERE forum_id = X ORDER BY post_time DESC LIMIT Y";

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; 将“ X”更改为要从中转储的论坛ID,将“ Y”更改为要停止转储的post_time限制; having in mind that you will be facing with strtotime times, such as 1290886590 . 请记住,您将面临strtotime时间,例如1290886590

Then, execute the query and fetch the result ( mysql_fetch_array ) for formatting it on a table or whatever you want. 然后,执行查询并获取结果( mysql_fetch_array ),以将其格式化为表或所需的格式。 Play with the post_subject and other columns for a nice output. post_subject和其他列以获得不错的输出。 Good luck. 祝好运。

Edit: You have a pretty extensive tutorial on the phpbb page, here . 编辑:您在phpbb页面上有一个非常广泛的教程, 在这里 Give it a look. 看看吧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM