Forum Replies Created
-
In reply to: Post Topic Request
There are a couple of queries I’ve found are necessary for posts. First is the standard query which posts to the wp_posts and the second posts to wp_postmeta. They’re very dependent on other functions within bbpress. It’s a bit of a can of worms in my experience. You could create a set of custom queries to do both of these, or try to use all of bbpress’s queries and functionality. Either way, it is not simple.
Following. I’m doing a threaded view outside of bbpress. I’ve got topics and replies all working as well as a modal window for new topics and replies. Just polishing off some of the extra queries. Interested to see what you do.
In reply to: How to display all forum elements on actual pages?In reply to: What is _bbp_activity_id and do I care about it?I’ve figured out the answer to my own question.
This field is related to the buddy press field wp_bp_activity. That shows something like “joe user replied to the topic xxx in the forum xxx”
_bbp_activity_id isn’t necessary for my reply to code on my particular site for bbpress to work properly. It IS however necessary if I want my Buddy Press integration to reflect activity updates related to the forum.
Yes Pascal I’m 90% of the way on that. Thanks. I see that different queries happen based on whether it is a topic, reply, or reply to a reply. Figuring out functions for walking up the voices, post numbers (original post meta) and all that I have yet to figure out.
Thanks for the tip on Query Monitor. It is cool for development. However I think the page is refreshing after the bbp posts to the DB, which is wiping out the db queries.
Hmmmm. Query monitor? Sounds intriguing. Never heard of it. I’ll see what that is.
In reply to: User’s @hashtag like the forum here?That was a problem on mobile too, which is now fix. Thanks @robkk.
In reply to: Use bbpress functions.php outside of bbpress?I’ve got 85% of it working on my dev server. New posts with meta write. Replies write to the db with a couple of the meta fields. Just wasn’t sure ALL that is written to the db on replies. All I have to go by is looking at the db before and after the change. Not exactly the best way.
In reply to: User’s @hashtag like the forum here?Bizarre. So it is working now I assume? Thanks for all your help my friend.
In reply to: Use bbpress functions.php outside of bbpress?After some digging it looks like most of the functions I’m looking to use outside of the bbpress framework are in includes/forums/functions.php and includes/replies/functions.php.
In reply to: User’s @hashtag like the forum here?I added that style. Curious what browser or device you are on. Float was ok on chrome/mac.
In reply to: User’s @hashtag like the forum here?Thanks for the styles. I can see the change in the freshness column but not sure where the issue is in my index, since that’s a static page.
In reply to: Use bbpress functions.php outside of bbpress?Yes. Outside of the bbpress framework I made a custom page which shows a threaded version of the forum: http://www.utehub.com/forum-threads/.
I’m adding reply as a modal window in this page, and want to use the bbpress reply DB insert queries for instance. Also will use bbpress new post queries… Sorry it is so hard to explain.
Basically it’s a bbpress forum view with post and reply functions, but outside of the bbpress framework.
In reply to: Use bbpress functions.php outside of bbpress?The catch is I’m creating pages outside of the bbpress framework, so will the functions still work?
In reply to: User’s @hashtag like the forum here?Fantastic. Thanks very much @robkk. I implemented it on my dev version and it worked great, so it is now on the live site here: http://www.utehub.com/forums/
In reply to: Help me grasp the bbPress flow@Robkk thanks for that. I had googled setting the order and found apparently some OLD results saying it could not be done. So I created an entire forum index page from scratch to overcome the issue! At least it looks good!
Many thanks for your reponses.
In reply to: Use bbpress functions.php outside of bbpress?I’m doing that with the template files already, which is great. So do I need to call the bbpress-functions.php file with my custom page or will it load automatically?
In reply to: Use bbpress functions.php outside of bbpress?Are you saying that you want to move the bbpress-functions.php file into your theme to make it easier to customize the functions already in the plugin??
YES @robkk. Just didn’t want to redeclare the functions. Will that be an issue? If I can pull in whole functions.php then a whole new world will open up.
I see the files
common/functions.php
theme/core… Wait a sec I just found it…Inside bbpress/templates/default/bbpress-functions.php
So I just call that from my custom page I guess?
@casiepa yes I do. I’m creating an outside of bbpress page which is a threaded forum view with some extra features. I did not create a forum myself, though the thought crossed my mind until I found bbp.In reply to: Help me grasp the bbPress flowThanks Robkk. It’s a little unorthodox but I’ve got the hang of it. Being able to arrange the forums in a particular order in the back end is a sorely needed feature.
In reply to: What is _bbp_activity_id and do I care about it?What does the number in this field represent?
In reply to: What is _bbp_activity_id and do I care about it?Hi TKServer,
I see several questions here from you and they seem to indicate you want to create topics and replies yourself by creating the posts and adding the metadata yourself.
I would propose you really check bbpress functions that exist that do this for you autmatically, so you don’t need to worry about what exact metadata to add.
Pascal.Yes that’s a great solution. The problem is that I’m doing it outside of the bbpress application. Any thoughts? For now I’ve taken the function that writes and new post and new meta and modified it to work with my custom page.
In reply to: get user-id of $topic_idWhere is a listing of all of these functions?
In reply to: Help me grasp the bbPress flowOkay so I may be getting the hang a little bit better.
Sports (category)
–Football (forum)
—(topics go inside)Seem right?