Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 9,676 through 9,700 (of 64,472 total)
  • Author
    Search Results
  • #180550
    Barry
    Participant

    This is great news!

    Unfortunately I did pretty much hit a fatal error straight away (I reported it and added a patch here – hopefully that was the right place/course of action) though I believe that will only impact those who test this out in a site that was already running bbPress, vs a clean installation.

    #180548
    Barry
    Participant

    Additionally, as an example of how you can add pretty much anything you want to the JSON responses returned by the REST API:

    function bbpress_rest_api_replies_extra_data( WP_REST_Response $response ) {
    	if ( ! is_array( $response->data ) ) {
    		return $response;
    	}
    
    	foreach ( $response->data as $key => $single_item ) {
    		// Only modify replies
    		if ( bbp_get_reply_post_type() !== $single_item['type'] ) {
    			continue;
    		}
    
    		// Add the author's details using a custom format
    		$author_id = get_post( $single_item['id'] )->post_author;
    		$author = get_user_by( 'ID', $author_id );
    		$response->data[ $key ]['author'] = "{$author->display_name} <{$author->user_email}>";
    	}
    
    	return $response;
    }
    
    add_filter( 'rest_request_after_callbacks', 'bbpress_rest_api_replies_extra_data' );

    You could say this is a bit of a brute force hack and although when combined with my last snippet it successfully adds the author’s display name and email address to replies (not topics), it shouldn’t really be used for that purpose “as is”: it doesn’t escape the author details, you probably don’t want to expose their email addresses, plus it’s out of alignment with how author meta is returned for other post types … However, I felt it was worth sharing an example of how you can quite quickly add arbitrary fields to REST API output.

    #180547
    Barry
    Participant

    What do you know, it worked!

    So getting back to business – thanks for catching that error in my earlier snippet, Robin. I think yours is perfectly fine (also, great links re adding author meta) but just to ‘close the circle’ on my own snippet, here’s a revision:

    function bbpress_enable_rest_api() {
    	$types = array(
    		bbp_get_reply_post_type(),
    		bbp_get_forum_post_type(),
    		bbp_get_topic_post_type(),
    	);
    
    	foreach ( $types as $slug ) {
    		$definition = (array) get_post_type_object( $slug );
    		$definition['show_in_rest'] = true;
    		$definition['rest_controller_class'] = 'WP_REST_Posts_Controller';
    		register_post_type( $slug, $definition );
    	}
    }
    
    add_action( 'bbp_register_post_types', 'bbpress_enable_rest_api', 11 );
    #180546
    Barry
    Participant

    My replies seem to keep disappearing into the bbPress void … trying again just to see if this one will show up.

    #180545
    bymiki
    Participant

    Thanks bbpress team for your great job!

    #180544
    senatorman
    Participant

    use this pluging for searching.It works perfect.

    Finaly i found perfect search plugin for Bbpress

    Try it live on http://www.opel-forum.nl

    #180543
    senatorman
    Participant

    Great plugin, but there is no option to remove specific forums or topics.

    i mean:
    can i remove also complete forums with related topics and post in one time by forumname (slug)

    And

    Remove topic with related posts by name (slug)

    when you can make this, this is a perfect complete tool for every bbpress owner

    #180537
    Stephen Edgar
    Keymaster

    I hope you saw that we released bbPress 2.6 beta last night ๐Ÿ™‚

    https://bbpress.org/forums/topic/bbpress-2-6-beta-1/

    There are significant performance increases with 2.6, wordpress.org/support is now running 2.6 alpha, we’ll update it shortly to 2.6 beta.

    We’ve got further performance enhancements to come, one that I think you may be running into is the time it takes to post a reply, one change that was merged last night and is now being used here on bbPress.org significantly imporoves that time for adding new replies, another in the works for the same issue is to optimize how subscribers are notified of a new reply in a topic, currently most of that wait period you’re experiencing I would think is coming from topics that have high number of subscribers.

    Anyway, I hope this is better news for you ๐Ÿ™‚

    p.s. WordPress dot org support has ~2.5 million topics and 6 million replies

    #180535

    In reply to: Not found

    Stephen Edgar
    Keymaster

    It sounds like you might be best of posting on buddypress.org?

    If you think it is here on the bbPress side of things could you clarify which menu links you are clicking please? Maybe some screenshots would be helpful, share them via imgur.com

    #180534
    senatorman
    Participant

    Yes i use buddypress and that is not the problem

    i’ve tried all other plugins but iรกm sure the problem is that bbpress is slow with big tables

    #180530

    In reply to: Slow to Post

    senatorman
    Participant
    #180529
    senatorman
    Participant

    i’ve the same problem with 1,1 miljon posts.
    Here it takes 4 to 6 seconds to post. Not very fast.

    There a serveral topics about this problem.
    It looks like the author’s of Bbpress don’t see that as a big problem.
    for them Bbpress posting is fast. (i think they testing on a small forum)

    #180528

    Topic: Not found

    in forum Installation
    unkoff
    Participant

    Hi guys,

    I just installed my gauge theme v6.20 on my localhost. It is supposed to have bbpress/buddypress integration. I activated plugin bbpress v2.5.12 and then imported demo data from the theme. However, when I click on the buddypress menu links, I have the messeage saying on a completely blank page:

    Not Found

    The requested URL /groups was not found on this server.
    Apache/2.4.23 (Win64) PHP/5.6.25 Server at localhost Port 80

    I will be grateful if you share any thoughts why this is happening.

    Thanks,
    unkoff

    #180518
    Robin W
    Moderator

    ok, so something must have happened to make you lose them. Have you installed other plugins or changed themes?

    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

    #180517
    Robin W
    Moderator

    ok, having all results on one page might give you issues.

    bbpress will by default show the number of replies per page that is set in

    dashboard>settings>forums>Topics and Replies Per Page>Replies

    You could up that to say 100, so that you get a decent chuck. But this would change it for forums as well.

    However if you wanted that just for search, so not affecting forums, then you could set it as a filter in your functions file – if you know how to add code to your functions file, then come back and I’ll give you some code. Again I would recommend that you set a limit but it can be as high as you like.

    #180511
    Robin W
    Moderator

    ok, so do the following

    1. If you have WP mass delete already installed then deactivate and delete

    2. the go to

    WP Mass delete bbpress version

    and download the plugin to your PC

    Then go into Dashboard>plugins>add new and upload plugin

    then upload the file you downloaded, and then activate

    To execute go into Dashboard>settings>WP mass Delete, and choose the options with care !!!

    I would suggest you tick Bypass trash, as otherwise you’ll only get them in there instead !!

    The plugin works by using a sql command to make an array of post ID’s needing deleting, and then using wp_delete_post command to do each one in turn, which will pick up post meta and revisions as well, and cycling through the array.

    Given you have 50,000 it may well error as well, so I’d suggest you start by limiting the period to a) check that it is working !
    b) give it something that it might succeed at.

    Once you know it works, you can try a full dump, but it may fall over.

    If it does, then limiting to a period should let you delete a good size chunk each time, so hopefully in a couple of dozen iterations you should be able to get there.

    Please come back and let me know how you get on – I can play with it a bit more if needed

    #180510
    Kiril Ivanov
    Participant

    I believe you could try out the suggestion from the following forum thread:

    Slow to Post

    Check the reply of @daniellajos.nl.

    #180503

    Hey everyone! Guess what?

    bbPress 2.6, Release Candidate 3, is now available for testing.

    Download it from here: https://downloads.wordpress.org/plugin/bbpress.2.6-rc-3.zip

    Why is this cool? For starters, @jeffr0 may finally climb down off my back and stop giving me grief for how long it’s been since we shipped a major release.

    bbPress 2.5.0 in 2014, 3 years ago.

    Most people wouldn’t be proud to say that, but… I am. The 2.5 branch of bbPress has been so stable & well received, we were able to take our time with 2.6 and double-down on upstream improvements to WordPress.

    bbPress 2.6 will come with:

    * Per-forum moderators
    * Improved favorites & subscriptions management
    * Improved BuddyPress integration
    * Performance improvements across the board
    * UX improvements to meta-boxes and admin-area tools
    * Tighter integration with WordPress’s Dashboard
    * Template tweaks & clean-up
    * About 110 other things

    If you’re going to test 2.6 on a live site, maybe don’t just yet. It runs a database upgrade routine to migrate favorites & subscriptions from usermeta to postmeta, and for large forums that may take a while or possibly lock things up for a bit.

    We are already running 2.6 here and on bbPress.org, so enjoy the speedier new posting experience, and we’ll let you know when the next beta is ready!

    #180502
    haddlyapis
    Participant

    Just to let you know that this issue was fixed by uninstalling the plugin “bbPress Login Register Links On Forum Topic Pages” and instead adding a login/logout link using the code provided here:

    Layout and functionality – Examples you can use

    and then adding code provided to make sure the links only appear in the forum and not the whole site:
    change line 3 to
    if ( is_user_logged_in() && is_bbpress() ) {

    and line 6 to

    elseif ( !is_user_logged_in() && is_bbpress() ) {

    #180495

    Hi there @iprg,

    Sorry, but there isn’t yet. It wouldn’t be too difficult for us to implement this feature inside of wp-admin, though.

    Are you comfortable creating a feature request over at https://bbpress.trac.wordpress.org? If so, that’s the best place to log this idea, and we’ll try and get it into a future release.

    #180494
    iprg
    Participant

    Hello,
    is there a possibility of bulk closing old topics? Eg doing it from dashboard? At the moment, I am only able to do it in a very slow way (open every single topics and close it)…
    Or can I set some time limit for automatic closing?

    Thank you for any insight!
    Best,
    Jan
    (BBpress, WP – latest versions, site: http://www.fotoguru.cz/foto-forum/)

    #180490
    jasnlee
    Participant

    Hello,

    Our topics are no longer being listed on our forum except for sticky topics I believe.

    Top blue box says “This forum contains 32 topics and 24 replies, and was last updated by…” but it then only lists 3 topics “Viewing 3 topics – 1 through 3 (of 3 total)”

    WordPress: 4.7.1
    bbPress: 2.5.12
    Theme: Salutation by Parallelus v3.0.2

    Please help. Thank you.

    #180487

    I think I understand the expectation here, but that isn’t how it’s currently designed to work.

    More specifically, bbPress subscriptions do not discriminate against the user’s current role. If they were subscribed before, they’ll be subscribed until they unsubscribe.

    To achieve the behavior you desire, a plugin could be written that either:

    • Filters bbp_topic_subscription_user_ids and removes users with/out desired roles
    • Filter bbp_set_user_role and permanently delete all subscriptions when the new role matches one that qualifies

    Maybe a combination of both of the above, if you need to account for already removed users, but want to clean-up future role changes.

    #180486
    marnieg
    Participant

    Wordpress: 4.7.1
    bbPress: 2.5.12-6148
    theme: Zippy Courses

    I have a new bbPress forum and just recently lost the formatting options–there’s just an empty rectangle where the formatting buttons formerly were. Under Forums and then Settings I have several things checked that don’t seem to be available in the forum. For instance: “Add toolbar & buttons to textareas to help with HTML formatting” and “Embed media (YouTube, Twitter, Flickr, etc…) directly into topics and replies” are selected. But these aren’t available.

    I would love any direction so I can add basic formatting functionality. I added Forum Beginner Posts plugin but that didn’t change anything so I uninstalled it.

    #180483
    Stephen Edgar
    Keymaster

    Closing this as a duplicate (As I already replied to the other topic)

    bbPress Unsubscribe when no longer Participant Role

Viewing 25 results - 9,676 through 9,700 (of 64,472 total)
Skip to toolbar