Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 8,351 through 8,375 (of 14,243 total)
  • @robin-w

    Moderator

    ok, 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 WHERE ID = xx

    where xx is the name of the reply

    copy that line into anything (word, notepad etc.)

    then

    SELECT * FROM wp_postmeta WHERE post_id = xx

    and 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.

    @robin-w

    Moderator

    ok, I can’t see any reason why that should not work

    Can you contact me via my website

    http://www.rewweb.co.uk

    @robin-w

    Moderator

    did you try the gravity hook ?

    @robin-w

    Moderator

    it may well be that my code needs debugging, but I have stacks of work os – so very limited in helping you 🙂

    @robin-w

    Moderator

    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 );
    	}
    
    }

    @robin-w

    Moderator

    or that could be total rubbish if gravity forms aren’t using bbpress to create, which they probably aren’t – let me think further !!

    @robin-w

    Moderator

    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.

    @robin-w

    Moderator

    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 !!

    @robin-w

    Moderator

    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

    bbPress Login Register Links On Forum Topic Pages

    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

    @robin-w

    Moderator

    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 );

    @robin-w

    Moderator

    That’s shows determination !!

    Do you have phpmyadmin access ?

    @robin-w

    Moderator

    and 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.

    @robin-w

    Moderator

    sorry 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

    @robin-w

    Moderator

    bbpress and twenty twelve work fine.

    bbpress is not resource heavy.

    @robin-w

    Moderator

    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

    @robin-w

    Moderator

    not without extensive coding

    Out of interest does the plugin not do what you want, or do you have a thing against plugins 🙂

    @robin-w

    Moderator

    never 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

    @robin-w

    Moderator

    ok try

    dashboard>permalinks>and just click save

    This sometimes frees them up

    if not come back

    @robin-w

    Moderator

    then you’ll need to contact the theme authors to fix – it is something they are doing

    @robin-w

    Moderator

    your 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.comthen it is likely that messages will be dumped in transit. You need to set up email to come from your site eg fred@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/

    @robin-w

    Moderator

    I’ve had a quick look at the plugin, and can see no reason why it shouldn’t work.

    @robin-w

    Moderator

    what plugin/app is doing the search function?

    @robin-w

    Moderator

    Can you clarify

    Did these show and have stopped?
    Have you just imported these?

    @robin-w

    Moderator

    It 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 emails

    this plugin seems to address these two issues

    Can you try it and report back

    AsynCRONous bbPress Subscriptions

    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';
    }

    @robin-w

    Moderator

    no problem

Viewing 25 replies - 8,351 through 8,375 (of 14,243 total)