Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 9,726 through 9,750 (of 64,454 total)
  • Author
    Search Results
  • #180360
    DolZikoo
    Participant

    hi.

    Click on ‘forums’ and an error page will pop up.

    # youtube https://youtu.be/1Ylj7TnghUA

    Only WordPress installed.
    I installed bbpress for the first time.

    # wordpress path : korear.net/
    # error page : http://korear.net/wp-admin/edit.php?post_type=forum

    Server Specifications
    – Centos 7
    – Nginx: 1.10.2
    – PHP7: 7.1
    – Mariadb: 10.1
    – WordPress 4.7

    #180355
    Alex Stine
    Participant

    Hello,

    I have a custom user meta field which is a staff label field. For people with “staff” capability, they can go to their profile in WP admin and enter some text for a label such as “Lead Developer, Writer, Support, etc. I would like to output this label on BBPress profile but cannot figure out how to do it. I am using the currently displayed profile ID. In the following file:
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/members-header.php

    I know it’s bad to hack core files, I will move to my themes folder once it’s working. This is the code I have currently.

    <?php
    $member_id = bp_displayed_user_id();
    if ( user_can( $member_id, 'staff' ) ) {
    if ( get_the_author_meta( 'staff') ) {
    $x = ( get_the_author_meta( 'staff', $member_id ) == '' ) ? "Staff" : get_the_author_meta( 'staff', $member_id );
    echo '<div class="staff-label">';
    echo $x ;
    echo '</div>';
    } 
    } ?>

    This code is working fine in the comments area with different logic to grab the user ID, just not working for BuddyPress. Any suggestions?

    Thanks. 🙂

    #180343
    GedBrockie
    Participant

    Hi all, installed Buddypress then BBpress. Everything good. As admin I can do whatever I want re posting etc. Problem is…no-one else can. Every time someone from the site tries to add a topic to a board they get this response…

    “ERROR: Your topic cannot be created at this time.”

    Now, I have scoured this forum and seen things like: “Have you looked at your spam filter”

    It’s not the spam filter. So many people get this error message and problem, yet unbelievably there seems to be no-one who has a solution after all the years of BBpress being around.

    Please, if I have missed a solution on these boards, please reply. My site is here http://www.guitarandmusicinstitute.com/forums/

    Thanks in advance for any help.

    #180340
    blueshiningstar
    Participant

    I would like to remove topic author, but keep reply authors.
    Please tell me how to change php files.

    WordPress4.7
    bbPress2.5.12
    Twenty Sixteen1.3

    (Or please summarize below.)

    Is it possible to remove topic-author, but keep reply-authors

    #180338
    scotth454
    Participant

    I am getting mine started up an have spent most of my saturday with the same problem. action-modeler.com

    <li id="menu-item-1016" class="menu-item menu-item-type-post_type_archive menu-item-object-forum menu-item-1016"><a>All Forums<span class="menu-tag">bbPress Forums</span></a></li>

    menu manager

    Adding a second all forums menu doesn’t have the extra “bbPress Forums”.

    Well I figured out setting it as a page to get the all forums. Apparently using the all forums from the “Forums” in menu manager is bugged.

    #180337
    Robin W
    Moderator

    Just added it as a small plugin available on my site

    bbPress Rest API

    #180334
    Barry
    Participant

    …A PHP 5.2-friendly version that also covers the reply and forum post types:

    function bbpress_enable_rest_api_support() {
    	$enable_rest = array( 'show_in_rest' => true );
    	register_post_type( bbp_get_reply_post_type(), $enable_rest );
    	register_post_type( bbp_get_topic_post_type(), $enable_rest );
    	register_post_type( bbp_get_forum_post_type(), $enable_rest );
    }
    
    add_action( 'bbp_register_post_types', 'bbpress_enable_rest_api_support', 11 );
    #180333
    Barry
    Participant

    To enable default REST API support for topics you could use a snippet like this one:

    add_action( 'bbp_register_post_types', function() {
    	register_post_type( bbp_get_topic_post_type(), [ 'show_in_rest' => true ] );
    }, 11 );

    This waits until bbPress has registered its post types, then modifies the properties of the topic post type so that it is exposed via the REST API. You could of course extend it to cover forum and reply posts, too. With that in place, you should find URLs like the following work as expected:

    http://bbpress.site/wp-json/wp/v2/topic

    #180328

    In reply to: Random Topic Link

    Stephen Edgar
    Keymaster

    @ johnskennedy You’re spot on, creating 8 functions is one way to do that, you’d need to make sure that each function name is unique.

    That said, the above is one way, another way is to use some conditional logic with some if/else statements which is a little trickier, possibly more fun though to update the function in this way even 😉

    See these codex docs for sme very initial hints:
    https://codex.wordpress.org/Conditional_Tags
    https://codex.bbpress.org/bbpress-conditional-tags/

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

Viewing 25 results - 9,726 through 9,750 (of 64,454 total)
Skip to toolbar