Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 2,001 through 2,025 (of 11,605 total)
  • Author
    Search Results
  • #189662
    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 );
    	}
    
    }
    #189659
    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.

    #189635

    In reply to: bbPress Post Via Mail

    Stephen Edgar
    Keymaster

    This plugin supports posting to bbPress by email https://github.com/rmccue/falcon

    It’s out of date and needs some testing and reporting what does and doesn’t work

    If anyone could help with the I could help get any code changes required added 🙂

    #189627
    Pascal Casier
    Moderator

    I just added this on my test site:

    add_action( 'wp_head', 'casiepa_add_noindex' );
    function casiepa_add_noindex() {
      if ( bbp_is_single_user_profile() ) {
        wp_no_robots();
      }
    }

    And I when I go to the profile of a user (in my case /forums/users/user1/), I now correctly find:
    <meta name='robots' content='noindex,follow' />

    Could you have a check on your side?

    #189625
    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.

    #189621
    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

    #189609
    suraj1977
    Participant

    Hi,

    It seems I could not link properly to the images.

    Let I describe the issue.

    I have checked SMTP and WordPress email address.
    Although both are GMAIL addresses, the WP SMTP plugin accepts it.
    That’s why, I guess, I could send the test mail from the contact form.
    I confirmed, these test emails from contact form are coming via the domain which I have created for SMTP plugin.
    After registration of dummy account, I receive the message stating verification mail send.
    However, no such registration/activation mail gets received for dummy account.
    After registration I receive message stating verification mail send.
    The dummy account gets listed on the WordPress backend user list.
    The check email plugin sends the test mail to the Gmail address in general settings of the WordPress.
    However, it fails to send the test mail to another Gmail address.
    Kindly suggest.
    Thanks in advance,

    Suraj

    #189608
    suraj1977
    Participant

    test reply..
    It seems I could not post here as I could not see my replies posted.

    Suraj

    #189604
    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

    #189602
    piha.dave
    Participant

    I have just created a forum for my site but when testing new registrations receive an error: “suspected bot”.

    I’ve enabled “anyone can register” and I’ve also searched online but the only answer I can find is to disable Mojo Marketplace plugin. I currently don’t have this installed.

    I’ve also tried disabling every plugin and trying again but receive the same error.

    #189577
    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';
    }
    #189548
    Robin W
    Moderator

    I’ve now set up a quick test site for 2.65c5 to validate

    I can confirm that

    <?php echo do_shortcode("[bbp-forum-index]"); ?>

    doesn’t work but the shortcode on a page on it’s own does.

    However your issue with profiles is a theme/bbpress one, it all works on my test site.

    Can you try adding this to your themes css

    #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results, #bbpress-forums ul.bbp-topics {
    	overflow: visible !important;
    	}

    that seemed to fix it for your site, but I haven’t checked that it doesn’t create issues elsewhere !

    #189546
    Stephen Edgar
    Keymaster

    Apologies for the late reply, there hasn’t been many requests to update the Vanilla importer, what I’ve done with most importers is when asked I’ll update it to the latest, in this case I’d checkout what the latest 2.x version is and add any updates as needed, for the most part there is usually not many changes as major database changes typically only occur in “major” releases, so if Vanilla 3.x is out, there would be a high change some SQL changes would be in that release.

    Grab the latest bbPress RC-5 zip from the downloads page https://bbpress.org/download

    The “Specified key was too long” error you mentioned has been fixed in this release along with loads of importer improvements.

    #189542
    TechHaus
    Participant

    Good call! And guess what, it works if I use the shortcode on a page via the wordpress backend.

    bbpress Shortcode test

    #189541
    Robin W
    Moderator

    Sorry, but I support live versions, so I’m reluctant to load RC code to my test site, so I’ll keep asking you to do stuff if that’s ok !

    Can you create a page and put the shortcode in there – I want to test if that makes a difference over using code to call it.

    #189532
    TechHaus
    Participant

    Yes, correct! OMG, i recorded this…

    I just hit save there with the shortcode on 2.5.14

    At 20:05 if the video doesn’t load at the right time. Thanks again! You made me remember that I actually documented this so I don’t have to fire up a new wordpress instance to retest. I recorded every thing I’ve done so far on this bbpress installation.

    #189531
    TechHaus
    Participant

    Test reply:

    I’m getting

    ERROR: Your reply cannot be created at this time.

    to this thread.

    #189530
    Robin W
    Moderator

    so test results

    2.6 on twenty fifteen – works
    2.5.14 on twenty fifteen – works

    2.6 on your theme – doesn’t work
    2.5.14 on your theme – works

    Above all correct ?

    #189523
    Robin W
    Moderator

    your theme (or maybe other plugin) is only loading bbpress.css on what it thinks are bbpress pages, and it is not treating the front page and profile as bbpress.

    I don’t think bbpress 2.6 is doing that, but a quick flip to twentyfifteen would confirm, although I think you are saying you have already tested that above?

    Do you have a plugin that is trying to minimise css loading or is your theme being too clever ?

    #189513
    Stephen Edgar
    Keymaster

    I’d still prefer to see the database schema, not data that’s already been parsed.

    From what I can see you’ve got various issues with that WXR data:

    <wp:post_type><![CDATA[topic]]></wp:post_type> <- topic shouldn’t be wrapped in ![CDATA[ / ]], I’m not sure if that or any other instances apart from content will be affected by this.

    _wp_page_template shouldn’t be included, if the post_type was page, then yes, but topic post type shouldn’t have a _wp_page_template meta key, again, I’ve no idea what the resultant behaviour of this would be, maybe ok, maybe not.

    • You have the following, which is correct: 1327 is the “forum ID”

    `
    <wp:postmeta>
    <wp:meta_key><![CDATA[_bbp_forum_id]]></wp:meta_key>
    <wp:meta_value><![CDATA[1327]]></wp:meta_value>
    </wp:postmeta>
    `

    • Just above the above, you have the following which is *not* correct, post_parent is *not* “post meta”, this should be in the wp_posts table and *not wp_postmeta

    `
    <wp:postmeta>
    <wp:meta_key><![CDATA[post_parent]]></wp:meta_key>
    <wp:meta_value><![CDATA[1327]]></wp:meta_value>
    </wp:postmeta>
    `

    • Closer to the top of your code you have <wp:post_parent>0</wp:post_parent>, this is where the post_parent should include that 1327 forum id.

    I suspect if you can get 1327 into that last item above you’ll be all set, or at least progressed somewhat, I’m pretty sure the repair tools will be able to recalculate the topic meta once that is in, so that’s another option to repair any meta issues.

    This might be a handy reference https://codex.wordpress.org/Database_Description

    Also checkout https://bbpress.trac.wordpress.org/ticket/2516, the file attached to that ticket is a pretty comprehensive WXR XML file of forum, topics, and replies layed out per the description in that ticket, it might be worth importing into a test site to help visualise the data when looking at the source of the XML file 🙂

    #189512
    Robin W
    Moderator

    ok, 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

    #189500
    LucasHilty
    Participant

    Bumping this. I have the same problem. I am using the latest activity version of the main forums page.
    Once a user opens a forum, he or she is allowed to create a new topic.
    Screen shot

    #189479

    In reply to: @mentions not working

    pjbarry21
    Participant

    Does not autopopulate/work in forum discussions using the visual editor, although cutting and pasting or typing handles changes them into links upon saving — most of the time. Sometimes we have to go back in and edit/remove spaces around the entry for it to show up.

    To try to get a little more functionality on a test site, I’ve added code from here: https://bbpress.org/forums/topic/mentions-not-becoming-links-some-times/ — but this only works in the text editor and not in the visual editor.

    It does autopopulate in activity feeds and does work in resources (bpdocs).

    #189459
    Audiomonk
    Participant

    Hi,

    Been looking through here for quite a while, am wanting to change the styling of the edit post screen. Currently it’s got a red background *urk* and looks bad. It’s probably inherited from my main theme I don’t know.

    Can someone point me where the styling for the post edit screen is. I tried using an editor but it only shows styles that seem to be for main posts.

    Latest BBpress,latest WordPress. No link as it’s an edit screen, but you can view the site at https://jwfsanctuary.club

    #189458

    Topic: Hold topic

    in forum Troubleshooting
    max143
    Participant

    I click topic to make it hold on the top, but on another page there are no topic on the top

    Первое обсуждение


    http://prntscr.com/i1vufg – hold On
    http://prntscr.com/i1vurr second page

Viewing 25 results - 2,001 through 2,025 (of 11,605 total)
Skip to toolbar