Info
- 5 posts
- 2 voices
- Started 1 year ago by Ashfame
- Latest reply from Ashfame
Possible solution to build recent replies table
-
- Posted 1 year ago #
Hey bbPress devs!
How can I query the database to build a recent replies table (as on profile pages), outside the bbPress environment?
Nothing practical is striking me at the moment.
Would love to hear your thoughts on the subject! -
- Posted 1 year ago #
There are two ways to do this.
One is to use bbPress itself and make a plugin that hooks new post, and then just quickly writes the info you want into plain html file somewhere that you just use
file_get_contentsto insert elsewhere.The other way is to use my bbdb tool which allows you to query any of the bbpress/wordpress databases outside of bbpress by just including one file.
I think the first way is probably much easier.
-
- Posted 1 year ago #
Hi _ck_
Hooking into bbPress will also required me to save much information as the recent replies table will be different for each user.
What's your bbdb tool? I am more interested into querying the database directly but I am not able to think of how I can do it other than iteratively quering the database but since it will be the first screen after login (and that too different for each user), so I really can't iteratively queries here.
-
- Posted 1 year ago #
Found out a way! Will get back after testing ;)
_ck_, I am still interested in your bbdb tool, let me know :)
-
- Posted 1 year ago #
Got it done! Will share on blog and provide a link here :)
-
You must log in to post.