Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 9,776 through 9,800 (of 64,495 total)
  • Author
    Search Results
  • #180324
    davemiller58
    Participant

    blank white page.

    Thanks for your help but gave up on bbPress and using wpForo now.

    #180318

    In reply to: Random Topic Link

    johnskennedy
    Participant

    I have used Stephen’s code above and it works perfectly.

    However, I have 8 forums on my site so if I wanted to add a random button for each separate forum that only selects topics from that forum would I have to create 8 different function ntwb_bbpress_random_single_topic() in my .php and include only a single forum ID every time or is there a better way to implement this? Also, how and where would I add the shortcodes so that they only show on the relevant forum?

    #180317
    davemiller58
    Participant

    Am using:

    Twentythirteen wordpress theme

    bbPress – Version 2.5.12

    With bbPress I have created a number of forums

    But – when I put the following short code into a page:
    [bbp-forum-index]

    it shows nothing …

    Please – what am I doing wrong?

    #180313
    casamia743
    Participant

    I have same problem. Here is my error log

    [06-Jan-2017 10:47:16 UTC] PHP Fatal error:  Uncaught Error: [] operator not supported for strings in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/bbpress/includes/forums/functions.php:1800
    Stack trace:
    #0 /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))
    #1 /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
    #2 /Applications/MAMP/htdocs/wordpress/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
    #3 /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-query.php(1681): do_action_ref_array('pre_get_posts', Array)
    #4 /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-query.php(3238): WP_Query->get_posts()
    #5 /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp.php(617): WP_Query->query(Array)
    #6 /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp.php(735): WP->query_posts()
    #7 /Applications/MAMP/htdocs/wordpress/wp-includes/functions.php(955): WP->main(Array)
    #8 /Applications/MAMP/htdoc in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800
    #180312
    stagezero
    Participant

    How to create same page as https://bbpress.org/forums/new-topic/

    mth75
    Participant

    Hi all,

    I’m trying to integrate the BuddyPress favorite (aka like system) system with BBPress.

    On my site: http://www.starry-night.nl I use the BuddyPress Activity page as homepage, this means that forum topics and replies are
    shown on the activity wall, and can be liked.

    SN Activity (Home) Page

    For easy navigation I made a custom “comment” button which links to the BBPress topic or reply. BBPress activity items (topics or replies)
    can be liked.

    Going to a forum topic of replies of course doesn’t show any likes in the BBPress topic and replies.

    SN Topic/Replies

    Integrating the BuddyPress favorite system with BBPress is at least in my mind the cleanest way and from a functionality point of view, the way
    to go.

    On the BuddyPress forum I found the following code (below) which implements the BuddyPress favorite button in blogpost (and this works), so a rewrite
    should be possible to make this work for BBPress.

    In single.php for blogpost and in the future in the loop-single-reply.php for BBPress.

    <?php echo get_fav_or_unfav_button_for_post( $post ); ?>

    In function.php:

    / Buddypress favorites
    function get_fav_or_unfav_button_for_post( $post ) {
    global $bp, $activities_template;
            // user is not logged ? Show nothing.
    	if ( ! is_user_logged_in() ) {
    	return '';
    	}
    	
    	$activity_id = bp_activity_get_activity_id( array(
    		'user_id' => $post->post_author,
    		'type' => 'new_blog_post',
    		'component' => 'blogs',
    		'item_id' => 1,
    		'secondary_item_id' => $post->ID
    		) );
    	
    	if ( ! $activity_id ) {
    	return '';
    	}
    	
    		bp_has_activities(); // update $activities_template of user's fav
    		$old_value = false;
    		
    		if ( isset( $activities_template->activity->id ) ) {
    		$old_value = $activities_template->activity->id;
    		$activities_template->activity->id = $activity_id;
    		} else {
    		$activities_template->activity = (object) array( 'id' => $activity_id );
    		}
    	
    		// building the template
    	$code = '';
    	$code .= '<div class="activity-meta">'."\n";
    
    		if ( ! bp_get_activity_is_favorite() ) {
    		// if not favorited, add a fav button
    		$code .= ' <a href="'.bp_get_activity_favorite_link( ).'" class="button fav bp-secondary-action" title="'.__( 'Like', 'buddypress' ).'">'.__( 'Like', 'buddyboss' ).'</a>'."\n";
    		
    		} else {
    		
    		// if already favorited, a button to unfav
    		$code .= ' <a href="'.bp_get_activity_unfavorite_link( ).'" class="button unfav bp-secondary-action" title="'.__( 'Unlike', 'buddypress' ).'">'.__( 'Unlike', 'buddyboss' ).'</a>'."\n";
    		
    		// bonus button to show user's all favs
    		$code .= ' <a href="'.bp_loggedin_user_domain() . 'activity/favorites/" class="button unfav bp-secondary-action">'.__( 'My Likes', 'buddyboss' ).'</a>'."\n";
    		}
    		
    		// closing .activity-meta
    	$code .= '</div>'."\n"; 
    
    		if ( false !== $old_value ) {
    		$activities_template->activity->id = $old_value;
    		} else {
    		$activities_template->activity = null;
    		}
    	return $code;
    }

    I’m having problems with rewriting the array for bbpress:

    $activity_id = bp_activity_get_activity_id( array(
    		'user_id' => $post->post_author,
    		'type' => 'new_blog_post',
    		'component' => 'blogs',
    		'item_id' => 1,
    		'secondary_item_id' => $post->ID
    		) );

    Help for figuring this one out is appreciated.

    Best regards,

    Marc

    #180298
    roquec
    Participant

    Dear Friends,

    I’m using WP 4.7 and bbPress 2.5.12. I’m using the importer under Tools->Forums->Import forums to import a MyBB Forum (version 1.6), with 4000 topics, 50.000 messages, and 3000 users.

    The performance is Ok, it takes two hours more or less. The problem, is that at certain point, the message Conversion complete is displayed, and certainly, the users / topics count is the right one. And then, without my interaction, it starts again.

    I’m not sure if this “second pass” is the normal procedure, or it is an error.

    Any help would be very appreciate.

    That’s the output of my last attempt

    Calculating forum hierarchy (0 - 999)Converting forums (0 - 999)Delete users WordPress default passwords (5000 - 5999)Delete users WordPress default passwords (4000 - 4999)Delete users WordPress default passwords (3000 - 3999)Delete users WordPress default passwords (2000 - 2999)Delete users WordPress default passwords (1000 - 1999)Delete users WordPress default passwords (0 - 999)Converting users (2000 - 2999)Converting users (1000 - 1999)Converting users (0 - 999)<strong>Conversion Complete</strong>No reply_to parents to convertConverting replies (3000 - 3999)Converting replies (2000 - 2999)Converting replies (1000 - 1999)Converting replies (0 - 999)No tags to convertNo super stickies to stickCalculating topic stickies (0 - 999)Converting topics (51000 - 51999)Converting topics (50000 - 50999)Converting topics (49000 - 49999)Converting topics (48000 - 48999)Converting topics (47000 - 47999)Converting topics (46000 - 46999)Converting topics (45000 - 45999)Converting topics (44000 - 44999)Converting topics (43000 - 43999)Converting topics (42000 - 42999)Converting topics (41000 - 41999)Converting topics (40000 - 40999)Converting topics (39000 - 39999)Converting topics (38000 - 38999)Converting topics (37000 - 37999)Converting topics (36000 - 36999)Converting topics (35000 - 35999)Converting topics (34000 - 34999)Converting topics (33000 - 33999)Converting topics (32000 - 32999)Converting topics (31000 - 31999)Converting topics (30000 - 30999)Converting topics (29000 - 29999)Converting topics (28000 - 28999)Converting topics (27000 - 27999)Converting topics (26000 - 26999)Converting topics (25000 - 25999)Converting topics (24000 - 24999)Converting topics (23000 - 23999)Converting topics (22000 - 22999)Converting topics (21000 - 21999)Converting topics (20000 - 20999)Converting topics (19000 - 19999)Converting topics (18000 - 18999)Converting topics (17000 - 17999)Converting topics (16000 - 16999)Converting topics (15000 - 15999)Converting topics (14000 - 14999)Converting topics (13000 - 13999)Converting topics (12000 - 12999)Converting topics (11000 - 11999)Converting topics (10000 - 10999)Converting topics (9000 - 9999)Converting topics (8000 - 8999)Converting topics (7000 - 7999)Converting topics (6000 - 6999)Converting topics (5000 - 5999)Converting topics (4000 - 4999)Converting topics (3000 - 3999)Converting topics (2000 - 2999)Converting topics (1000 - 1999)Converting topics (0 - 999)Calculating forum hierarchy (0 - 999)Converting forums (0 - 999)Delete users WordPress default passwords (2000 - 2999)Delete users WordPress default passwords (1000 - 1999)Delete users WordPress default passwords (0 - 999)Converting users (2000 - 2999)Converting users (1000 - 1999)Converting users (0 - 999)Starting Conversion

    #180289
    maxc246
    Participant

    Hi Robin! Thanks so much for your reply. I’ll do my best to answer your questions.

    1 – Yes, I’m using the account I used to create the site and the forum, and I’ve double checked to make sure it has Admin and KeyMaster rights.

    2 – GoDaddy is hosting my site. I’m vaguely familiar with phpmyadmin, but I just logged in to my GoDaddy account and didn’t see an obvious way to access the database for editing. I don’t see anything in the WP dashboard either. I’m guessing I’m missing something obvious. Everything else in WP is pretty straight forward.

    3 – WordPress 4.6.1 and bbPress 2.5.10.

    4 – Yes, I can see topics and replies in the Dashboard. I’m able to Edit, Trash or mark them as Spam from the Dashboard. I used to be able to do that with links above each post in the forum, but those links no longer appear.

    Hope that helps you help me. Thanks again!

    #180287
    Robin W
    Moderator

    ok.

    1. are you admin and keymaster?
    2. do you have phpmyadmin access? (if you don’t know what that is – don’t worry, just say !)
    3. what version of bbpress and worpdress are you running?
    4. In dashboard – can you see forums topics and replies?

    maxc246
    Participant

    When I first set up my BBPress forum at libertydebater.com, I was the keymaster of the forum. I could see options to edit posts, trash them, move them and a number of other options.

    At some point (I’m not clear when) I lost the ability to do practically anything as the keymaster on my forum. When I try to reply to a post, I get an error that says “ERROR: You do not have permission to create new topics.”

    Also, where I used to see moderating options above each post, I no longer see those. I’ve spent the last 3 days searching for a fix and trying everything I’ve found. So far I’ve tried:

    – disabling all plug-ins, testing, then re-enabling them and testing. The problem persisted even when all plugins were disabled.

    – Running every tool under Tools > Forums.

    – Changing the Forum roll of that user to Participant and then back to Keymaster.

    – Changing my theme (currently Tortuga) to the default 2014 theme. It made no difference so I changed it back.

    – Restoring the database back to the oldest copy I had available.

    – I made a test user account. The test user can post and reply, even as Keymaster, but didn’t have the ability to Edit, Move, Trash posts.

    I have also seen suggestions of getting rid of the Yoast plug-in as a solution, but I don’t have that plug in.

    This was all working fine and then one day it wasn’t. I’m a total newb to Word Press, so please go easy on me. If you have any suggestions, some guidance on how to implement them would be most appreciated.

    Thanks!

    #180285
    Jon Fergus
    Participant

    I’m using threaded/nested replies in my topics, and I’d love a “reddit-esque” toggle button to open/close a given set of nested replies. Does anyone know if this is possible, and if so, how to accomplish it?

    We’re running (along with several other plugins):
    WP version 4.7
    bbPress 2.6-alpha
    BuddyPress 2.7.3

    #180284
    reedy
    Participant

    I am having a number of issues with slow posting times. Posts are taking up to 30 seconds to submit in many cases.

    I spoke to my webhost who offered the following details:

    We have reviewed your case in details. As you probably know the BBPress plugin saves each forum new topic or post to a topic as a new post in the WordPress database. Due to this reason your WordPress’ posts database table and its meta data is getting quite big.

    I believe that the main reason for your slow performance is the size of the _posts and _postmeta database tables.

    Decreasing their size will speed your website up.

    I did actually try the fix suggested at the end of this forum topic by editing the functions.php file.

    This way I have managed to post a test topic for about 12 seconds instead of the previous 30-35 seconds time frame.

    My forum contains 500,000+ posts, so I accept that the database will be getting large. Is there nothing that can be done to improve the awful performance I am seeing until the much rumored bbPress 2.6 is released?

    #180280
    peetdapriest
    Participant

    Hi,

    My site was messed up (only in mobile) when I’ve enabled nested replies in the settings of bbpress.

    Screenshots:
    https://drive.google.com/file/d/0B1PjCg-T3hWabUZuY0JZVmN3X1E
    https://drive.google.com/open?id=0B1PjCg-T3hWaWnJEU0xCbUI2am8

    Do you know about this issue? Is there a plan to resolve it?

    Thank you very much in advance!

    Peter

    #180279
    mth75
    Participant

    The trick is to relate the activity ID to the Post ID of the forum topic or reply. This code (used for liking (aka favouriting) ) blogpost works. I’m trying to rewrite it for bbpress

    In single.php:

    <?php echo get_fav_or_unfav_button_for_post( $post ); ?>

    In function.php:

    // Buddypress favorites
    function get_fav_or_unfav_button_for_post( $post ) {
    global $bp, $activities_template;
            // user is not logged ? Show nothing.
    	if ( ! is_user_logged_in() ) {
    	return '';
    	}
    	
    	$activity_id = bp_activity_get_activity_id( array(
    		'user_id' => $post->post_author,
    		'type' => 'new_blog_post',
    		'component' => 'blogs',
    		'item_id' => 1,
    		'secondary_item_id' => $post->ID
    		) );
    	
    	if ( ! $activity_id ) {
    	return '';
    	}
    	
    		bp_has_activities(); // update $activities_template of user's fav
    		$old_value = false;
    		
    		if ( isset( $activities_template->activity->id ) ) {
    		$old_value = $activities_template->activity->id;
    		$activities_template->activity->id = $activity_id;
    		} else {
    		$activities_template->activity = (object) array( 'id' => $activity_id );
    		}
    	
    		// building the template
    	$code = '';
    	$code .= '<div class="activity-meta">'."\n";
    
    		if ( ! bp_get_activity_is_favorite() ) {
    		// if not favorited, add a fav button
    		$code .= ' <a href="'.bp_get_activity_favorite_link( ).'" class="button fav bp-secondary-action" title="'.__( 'Like', 'buddypress' ).'">'.__( 'Like', 'buddyboss' ).'</a>'."\n";
    		
    		} else {
    		
    		// if already favorited, a button to unfav
    		$code .= ' <a href="'.bp_get_activity_unfavorite_link( ).'" class="button unfav bp-secondary-action" title="'.__( 'Unlike', 'buddypress' ).'">'.__( 'Unlike', 'buddyboss' ).'</a>'."\n";
    		
    		// bonus button to show user's all favs
    		$code .= ' <a href="'.bp_loggedin_user_domain() . 'activity/favorites/" class="button unfav bp-secondary-action">'.__( 'My Likes', 'buddyboss' ).'</a>'."\n";
    		}
    		
    		// closing .activity-meta
    	$code .= '</div>'."\n"; 
    
    		if ( false !== $old_value ) {
    		$activities_template->activity->id = $old_value;
    		} else {
    		$activities_template->activity = null;
    		}
    	return $code;
    }
    #180272
    mth75
    Participant

    I’m still trying to integrate the Buddypress favorite (like) system with BBPress, I think this would be the best way to go to integratie the 2 system. Not easy, did any of you guys look at this problem before?

    My site: http://www.starry-night.nl

    TheDream18
    Participant

    Hello,

    I’m not good at code. Can you please step by step what to do?

    I added following code to function.php childe-theme, it leaved me a blank page.

    <span class=”bbp-last-post-by-author”><?php printf( __( ‘Last Post: %1$s’, ‘bbpress’ ),bbp_get_topic_freshness_link( array() ) ); ?></span>
    <?php _e(‘ by ‘, ‘bbp’); ?>
    <span class=”bbp-topic-freshness-author”><?php bbp_author_link( array( ‘post_id’ => bbp_get_topic_last_active_id(), ‘size’ => 14 ) ); ?></span>

    #180261
    anigif
    Participant

    Hi

    I’m new to bbPress and Buddy Press, but I’m experiencing the same thing. I get a notification when I’m mentioned in a Buddy Press activity, but not if I’m mentioned in a bbPress forum (on the same site ofcourse).

    Have you previously seen this work – I mean, is it a bug? Or is it just a feature that would be nice to have? (I clearly don’t know since I haven’t tried earlier versions)

    #180251
    siparker
    Participant

    oh and here is the plugin to amke vbseo style urls in bbpress https://github.com/siparker/bbpress-vbulletin-permalink

    #180241

    In reply to: Can not open Forum

    Robin W
    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    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

    #180233
    michal_80
    Participant

    Forum onkologiczne


    Wordpress 4.7
    bbPress 2.5.12

    Hi, I want to create different sections in my forum like on this picture

    Screen

    I’ve tried to make categories and then add forums to it but always the result is not like I want… Do anybody know how to do that?
    It is probably very easy;)

    stagezero
    Participant

    @robin-w
    by the way its the bbpress style pack plugin Thanks Rob!
    version 3.4

    #180214
    Robin W
    Moderator

    Do you know how to put code in your theme’s function file ?

    if so add this to it

    add_filter( ‘bbp_get_do_not_reply_address’, ‘noreply@swissinformatics.org' );

    and that will not get overwritten on upgrade of bbpress plugin

    Of course that will need a child theme, as otherwise it will get lost on a theme update !

    If any of that not clear (or not possible) come back !

    #180212
    Robin W
    Moderator

    The below is offered as potential help, and in an effort to help, so if it is rubbish, then please come back, and I will try to help further.

    bbpress uses the standard wordpress posts, but with post types of ‘forum’, ‘topic’ and ‘reply’ instead of ‘post’ and ‘page’, and bbpress code itself basically uses wp_query to access the database.

    The glossary for wordpress api says

    GET /wp-json/wp/v2/posts to get a collection of Posts. This is roughly equivalent to using WP_Query.

    so I’d imagine that you would just use the same sort of call, and use wp_query parameters to return what you wanted.

    So if for wordpress you had a command that gave you say the latest 5 posts, then this same command would work but just changing whatever that code has for post_type=’post’ to post_type=’topic’

    If you wanted topics from a particular forum, you would add the equivalent of post_parent = ID where ID was the forum ID

    In essence if you can tell me what you want, I can give you the wp_query, and you could hopefully translate this into json.

    Does any of that make sense? 🙂

    #180211
    perkiins
    Participant

    Hello I installed BBpress, created categories, forums, replies.. I have problems, in all Forums I see all Topics on all Forums.. I see Topics of Forum (General) in the forum (Games), what I do to only see Topics of Games in the forum Games?

    And when I create topic, replie, etc.. in the web I didn’t see the HTML helper bar, with the italic, Bold, etc… what i do to put that?

    #180210
    Gilbert
    Participant

    Hi,
    WP 4.7, latest BBpress. I have a multisite: swissinformatic.org, magazine.swissinformatics.org, [other stuff]swissinformatics.org. My mail server is @swissinformatics.org and the plugin picks up $_SERVER['SERVER_NAME'] to create the no reply address.
    COULD YOU HELP US with a setting box to supersede this value?
    Meanwhile I replaced it with my site name in the functions.php code, but mind the next plugin update!
    $sitename = strtolower( ‘swissinformatics.org );
    Always beware of “Educated guess’ I’m not going to buy a mail server for each subdomain and with the present security of providers,…
    I also created a no reply alias of my administrative e-mail address.
    Everything is fine now

    Subscriptions ***********************************************************/

    /**
    * Get the “Do Not Reply” email address to use when sending subscription emails.
    *
    * We make some educated guesses here based on the home URL. Filters are
    * available to customize this address further. In the future, we may consider
    * using admin_email instead, though this is not normally publicized.
    *
    * We use $_SERVER['SERVER_NAME'] here to mimic similar functionality in
    * WordPress core. Previously, we used get_home_url() to use already validated
    * user input, but it was causing issues in some installations.
    *
    * @since bbPress (r5409)
    *
    * @see wp_mail
    * @see wp_notify_postauthor
    * @link https://bbpress.trac.wordpress.org/ticket/2618
    *
    * @return string
    */
    function bbp_get_do_not_reply_address() {
    $sitename = strtolower( $_SERVER[‘SERVER_NAME’] );
    if ( substr( $sitename, 0, 4 ) === ‘www.’ ) {
    $sitename = substr( $sitename, 4 );
    }
    return apply_filters( ‘bbp_get_do_not_reply_address’, ‘noreply@’ . $sitename );

Viewing 25 results - 9,776 through 9,800 (of 64,495 total)
Skip to toolbar