Forum Replies Created
-
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.
In reply to: BBpress: Registration mails failsorry but this is getting beyond free help. bbpress just uses wordpress registration, so this is not really a bbpress issue, rather a wordpress one.
I’m afraid I can’t help further
In reply to: Twenty Twelve Theme and resourcesbbpress and twenty twelve work fine.
bbpress is not resource heavy.
In reply to: Settings is missing in BBpressIt 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: Create custom emails from bbPressnot without extensive coding
Out of interest does the plugin not do what you want, or do you have a thing against plugins 🙂
In reply to: New user registration error – suspected botnever seen that before, and like you all I can find on a google is reference to Mojo Marketplace
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: Topics not found, only sticky topics showok try
dashboard>permalinks>and just click save
This sometimes frees them up
if not come back
In reply to: troubleshooting with docdirect themethen you’ll need to contact the theme authors to fix – it is something they are doing
In reply to: BBpress: Registration mails failyour smtp service will be expecting the correct email address
what is set is
dashboard>settings>general>email address
and does it match your smtp?
1. You should be aware that many spam filters strip messages that do not come from the correct address. So if your site is mysite.com and your email address in wordpress settings>general is
fred@gmail.com
then it is likely that messages will be dumped in transit. You need to set up email to come from your site egfred@mysite.com
, your hosting provider can help if needed.
2. Just bbpress?
Then you need to see if this is wordpress wide or just bbpress.
Try https://wordpress.org/plugins/check-email/In reply to: Create custom emails from bbPressI’ve had a quick look at the plugin, and can see no reason why it shouldn’t work.
In reply to: troubleshooting with docdirect themewhat plugin/app is doing the search function?
In reply to: Topics not found, only sticky topics showCan you clarify
Did these show and have stopped?
Have you just imported these?In reply to: BBpress: Registration mails failIt wasn’t until I started googling this that I notice it is a recurring issue with bbpress sites using smtp, and hasn’t got a definitive answer.
As far as I can see two things seem to help.
1. amending the from address
2. not sending bulk emailsthis plugin seems to address these two issues
Can you try it and report back
also there is a code snippet that lets you change the from address that smtp may well need -I don’t think it is needed as the plugin does this I hope (I haven’t tested the plugin), but quoted just in case 🙂
However, something causes that in the forum post notifications the “From” is set back to the default <noreply@domain.com>, although it is set to different/custom address by the WP Mail SMTP plugin. My web hosting service blocks the PHP mails sent from unknown addresses, so that’s the reason why the e-mails are not delivered.
/*BBPress email fix*/ add_filter( 'wp_mail_from_name', 'email_sent_from_name' ); function email_sent_from_name( $name ) { return 'SITE NAME'; } add_filter( 'wp_mail_from', 'email_sent_from' ); function email_sent_from( $email ) { return 'email@example.com'; }
In reply to: Assign members to Moderator Roleno problem
In reply to: Assign members to Moderator Roledashboard>users>edit user and you can change their bbpress role near the bottom to moderator
In reply to: How to list Top Users by most topics?contact me via my website
In reply to: Forum Description Appearanceno problem – do come back if I can help further