Forum Replies Created
-
In reply to: This forum is empty
do you know how to add something to your childtheme functions file ?
In reply to: Display number of subscribers of a forum@chumtarou – I’m playing with this in between paid jobs – I have topics working, but replies for a single forum is a bit more tricky.
I’ll then look at forum subscribers
I’ll be back at some stage.
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
In reply to: Managing login to forum with a set list of emailsNothing I know of to do that – it could be coded but beyond free help.
In reply to: How to list Top Users by most topics?In reply to: Display number of subscribers of a forumI’ve just (today) released a new version of my “bbp topic count” plugin with a new shortcode which will show the top X users across the forums.
I’ll take a quick look to see if I can make this forum specific.
In the meantime take a look at
dashboard>settings>bbp topic count>shortcodes to see what it is and how to use it.
In reply to: Topics not found, only sticky topics showok, can you contact me via my website so we can exchange info
I think I have code that fixes this in
In reply to: Topics not found, only sticky topics showok, I think the key item is that it is repairing the post_parent, so a reply gets back it’s topic ID.
I can only presume this is from the topic_id held in postmeta.
Can you confirm for another reply that you haven’t updated that
1. post_parent is 0 and
2. postmeta has the entry _bbp_topic_id with a number against it.and then randomly check several more.
then update a couple and confirm that post_parent is now complete.
If all that checks out – I can write a quick programme that will go through each reply, pick up the topic_id from postmeta and set post parent.
In reply to: User Registrationbbptress uses wordpress registration, so only one registration needed
In reply to: Fatal error (I can’t even access my dashboard)great – glad you are fixed
In reply to: Topics not found, only sticky topics showoh, and before you do that, you haven’t run a repair – sorry I missed that you hadn’t done that – the stickying and unsticking led me away from that 🙂
go to
dashboard>tools>forums>repair forums and run one at a time – I’d start with the first, it may be all you need to do
In reply to: Topics not found, only sticky topics showok, so for site you are working on look at a single reply ID that is not working
assuming you table have the wp_ prefix, then in sql type
SELECT * FROM
wp_posts
WHEREID
= xxwhere xx is the name of the reply
copy that line into anything (word, notepad etc.)
then
SELECT * FROM
wp_postmeta
WHEREpost_id
= xxand copy that.
Then go into dashboard and do whatever you are doing to fix
then repeat
then come back here and say what items have changed if any
that will get us much further forward even if nothing has changed.
ok, I can’t see any reason why that should not work
Can you contact me via my website
did you try the gravity hook ?
it may well be that my code needs debugging, but I have stacks of work os – so very limited in helping you 🙂
ok, let’s see if this works
This just adds an action on any post save and if it is a forum and has no post parent, we add your default one
AGAIN THIS IS UNTESTED !!
add_action( 'save_post', 'add_forum_id' ); function add_forum_id( $post_id ) { //get post type and post parent id $post_type = get_post_type($post_id) ; $post_parent = wp_get_post_parent_id ($post_id) ; //if it's a forum and has no post parent (allows for normal topic creation, and other posts type creation etc.) if ($post_type == bbp_get_forum_post_type() && (empty ($post_parent))) { // Update topic (post) 1234 forum (post) 321 $my_post = array( 'ID' => $post_id, 'post_parent' => 31086, ); // Update the post into the database wp_update_post( $my_post ); } }
or that could be total rubbish if gravity forms aren’t using bbpress to create, which they probably aren’t – let me think further !!
Forums and Topics are totally separate custom post types, correct?
Yes.
I am reticent to start delving into this plugin – there are hundreds of thousand of plugins in wordpress and I only go into those that are specifically bbpress and then only a few of those – it can take a day easily to look at and understand a plugins code 🙂
There is a hook in topic creation that you could use
The following code is untested, but you could put this in your functions file. You must be able to edit that file outside of wordpress (ie NOT using dashboard>appearance>editor) in case it errors so you can amend it.
add_action( 'bbp_new_topic_pre_extras', 'new_topic_id', 10, 1 ); function new_topic_id ($forum_id=0) { if (empty ($forum_id)) $forum_id = 31086 ; return $forum_id ; }
This will put any topic that doesn’t have a forum into that forum.
the plugin says that you can
◾Assign parent post for generated post (Drop Down field only)
I haven’t used this plugin, so can’t comment further !!
In reply to: Fatal error (I can’t even access my dashboard)see this link
http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
The issue is with this plugin
which was updated a day ago.
so don’t re-enable that one
if you go to that plugins support page, you’ll find someone has already logged that error.
You should revert to the earlier version until it is fixed
a topic’s forum is simply its post_parent
so your topic has a post_id and your forum has a post_id
so
// Update topic (post) 1234 forum (post) 321 $my_post = array( 'ID' => 1234, 'post_parent' => 321, ); // Update the post into the database wp_update_post( $my_post );
In reply to: Topics not found, only sticky topics showThat’s shows determination !!
Do you have phpmyadmin access ?
In reply to: Settings is missing in BBpressand the one that doesn’t will have something different about it.
either delete the identical site and start again with it, or carry out the tests above, which will help narrow where the error could lie.