gpt4 book ai didi

PHPBB 主页集成?

转载 作者:行者123 更新时间:2023-11-29 13:39:33 25 4
gpt4 key购买 nike

我正在我的网站上工作,目前有一个自定义编码的网页以及与之一起运行的 phpbb。然而我似乎无法将 phpbb 集成到主页中。我想要信息(成员(member)数量、帖子等)以及新闻部分(论坛上的最新帖子/更新)。我对此进行了大量研究,但找不到解决方案。有人见过或知道如何进行这样的集成吗?非常感谢,乔什。

最佳答案

只需连接到您的 phpBB 数据库并选择您想了解的内容

例如,我选择某些论坛中特殊成员(团队成员)的最新帖子列表。结果如下所示:http://www.omega-day.com/?op=news&lang=0

为此我只写了三个 View 。

CREATE VIEW `teamuserfarben` AS select `u`.`username` AS `username`,`u`.`user_id` AS `user_id`,`g`.`group_colour` AS `group_colour` from ((`PREFIX_` `u` join `PREFIX_user_group` `ug` on((`u`.`user_id` = `ug`.`user_id`))) join `PREFIX_groups` `g` on((`ug`.`group_id` = `g`.`group_id`))) where (`g`.`group_id` in (<GROUP IDS>)) group by `u`.`username`;

CREATE VIEW `teammeldungen` AS select `u`.`username` AS `username`,`u`.`user_id` AS `user_id`,`t`.`forum_id` AS `forum_id`,`f`.`forum_name` AS `forum_name`,`t`.`topic_title` AS `topic_title`,`t`.`topic_id` AS `topic_id`,`p`.`post_id` AS `post_id`,`p`.`post_time` AS `post_time` from (((`PREFIX_` `u` join `PREFIX_posts` `p` on((`p`.`poster_id` = `u`.`user_id`))) join `PREFIX_topics` `t` on((`t`.`topic_id` = `p`.`topic_id`))) join `PREFIX_forums` `f` on((`f`.`forum_id` = `t`.`forum_id`))) where (`t`.`forum_id` in (<FORUM IDS TO WATCH>));

CREATE VIEW `teamallposts` AS select `tm`.`username` AS `username`,`tm`.`user_id` AS `user_id`,`tc`.`group_colour` AS `group_colour`,`tm`.`forum_id` AS `forum_id`,`tm`.`forum_name` AS `forum_name`,`tm`.`topic_title` AS `topic_title`,`tm`.`topic_id` AS `topic_id`,`tm`.`post_id` AS `post_id`,`tm`.`post_time` AS `post_time` from (`teammeldungen` `tm` left join `teamuserfarben` `tc` on((`tm`.`user_id` = `tc`.`user_id`))) order by `tm`.`post_id` desc;

所以你可以按照你想要的方式使用 phpBB 的数据。搜索您需要的信息的存储位置并选择它。仅此而已!

关于PHPBB 主页集成?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18268667/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com