Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 9,701 through 9,725 (of 64,472 total)
  • Author
    Search Results
  • #180482
    Stephen Edgar
    Keymaster

    If a “membership” type role plugin is removing the “Participant” role then that plugin I would expect should clean up after itself in general, that is, I would expect that plugin to also remove a users subscriptions.

    bbPress has all of the functionality implemented to perform these said actions, the plugin you are using to do this would just need to implement this functionality.

    juliemarie99
    Participant

    WordPress 4.7 bbPress 2.5.12 http://members.thesoulscripts.com

    There seems to be no way for admins or users to unsubscribe from email notifications when they are no longer Participant. After they stop paying to be a member of our site, their Participant role is removed. They should be removed from all email notifications as well at that point. Many angry people! Help!!

    #180479
    TKServer
    Participant

    I believe I need to make either a custom reply Walker class, or a recursive function. How would I make a bbPress reply walker class and implement it?

    Robin W
    Moderator

    ok, so

    create a directory on your childtheme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your childtheme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-reply.php
    bbPress will now use this template instead of the original
    and you can amend this

    so amend this file – copy it to your Pc and use norepad or similar

    around line 70 you will see

    <?php if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) ) : ?>

    replace this with

    <?php
    	$user_id = wp_get_current_user()->ID;
    	$topic_id = bbp_get_topic_id() ;
    	$topic_author = bbp_get_topic_author_id( $topic_id ) ;
    	$is_topic_author = ($topic_author == $user_id ? true : false) ;
    	if ( bbp_allow_topic_tags() && current_user_can('assign_topic_tags' ) && ($is_topic_author || bbp_is_user_keymaster() ) : ?>

    This is untested, and if it doesn’t work – do come back !

    #180477
    Stephen Edgar
    Keymaster

    There would be two parts to this, the first I think sounds easy enough, when a user updates their profile we submit the updated user bio/description to Akismet. The second part of this is the “management” side, what to do with the profile if it fails the Akismet check 🤔

    With topics and replies, in bbPress we have a new “pending” post status, similar to the “spam” post status for topics and replies awaiting some moderator action. I wouldn’t want (due to Akismet false positives) to automatically mark a user as a “spam user” solely from the Akismet response, we’d want the user flagged for follow up by a moderator or keymaster.

    Anyone else have some thoughts on the workflow and how w should approach this?

    Stephen Edgar
    Keymaster

    @mth75 Sure, kind of like how BP’s profiles, if active, replace bbPress’ profiles we could possibly do something similar for BuddyPress favourites.

    Create a ticket on Trac and if you can, take a stab at writing a patch maybe?

    https://bbpress.trac.wordpress.org/newticket

    #180471
    consultant1027
    Participant

    This codex article is quite comprehensive about how to fight SPAM. (https://codex.bbpress.org/getting-started/forum-moderation/dealing-with-spam/)

    However, although it acknowledges profile SPAM, it fails amongst the many solutions to actually identify a method that is targeted at battling profile SPAM. You could switch to manual registration approval (which would be a pain in any moderate to high traffic site), but that would not solve the problem since the approved user can still post links in their profile.

    Akismet, WangGuard, etc, appear to only work on post/comment spam, not on profile spam, no?

    I don’t even have discussions enabled or commenting enabled so I don’t even care about post/comment spam!

    So as far as I can tell there is no plug-in or feature that will prevent profile SPAM. Someone please tell me I’m wrong!

    #180470
    Robin W
    Moderator

    untested, but this should do it, come back if not

    change line 3 to

    if ( is_user_logged_in() && is_bbpress() ) {

    and line 6 to

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

    #180469

    In reply to: Background Color

    Robin W
    Moderator

    your theme is re-writing the classes used by bbpress.

    Put this into the custom css – either of your theme if it has a custom css area, or into the custom css tab in my style pack plugin settings

    .x-bbp-search-form {
        background-color: #ffffff !important;
        }
    
    .bbp-forums ul, li {
    background-color: #ffffff !important;
    }
    mth75
    Participant

    Hi Stephen @netweb ,

    Is it possible to integrate the above (functionality) (except the theme dependent functionality) in future BBPress releases. As a user, for me it’s a integration issue between Buddypress & BBpress.

    Best regards,

    Marc

    #180466
    Sadegh Hosseini
    Participant

    Hi and thanks for your quick answer.
    I have child theme and I can copy bbpress theme inside it.
    I’d be thankful if you tell me how can I use these codes.
    Please consider that I want to let Keymaster and topic owner to edit topic tags.

    #180464
    haddlyapis
    Participant

    Hi,
    you provide code to add login and logout links on bbpress layout and functionality, which is just what i need.
    Question: Is there any way for it to only appear in my forum http://www.apis.de/forum (and all sub urls) but not on the rest of my site?

    #180462
    mth75
    Participant

    Quick solution but not really what i’m looking for (i’m looking to add a function as a real menu option).

    I order to add a Like option to the BBPress header menu in topics and replies I resorted to this quick solution (not perfect yet):

     <span class="bbp-admin-links">
    		<?php echo get_fav_or_unfav_button_for_bpp(); ?>
     </span>

    Add after <?php bbp_reply_admin_links(); ?> in loop-single-reply.php

    More info: https://bbpress.org/forums/topic/integrating-buddypress-favorite-system-aka-like-system-with-bbpress/

    #180461
    mth75
    Participant

    Hi all,

    Not to hijack the thread, but another solution:

    Integrating Buddypress favorite system (aka like system) with BBPress

    mth75
    Participant

    I order to add a Like option to the BBPress header menu in topics and replies I resorted to this quick solution (not perfect yet):

     <span class="bbp-admin-links">
    		<?php echo get_fav_or_unfav_button_for_bpp(); ?>
     </span>

    Add after <?php bbp_reply_admin_links(); ?> in loop-single-reply.php

    But mission accomplished, the integration of the Buddypress Favorite system with BBPress is complete.

    Buddpress/BBpress Favorites integrated

    #180459
    gameslopedy
    Participant

    Is there any auto social poster for every bbpress topics?

    #180455
    reedy
    Participant

    I had this same problem and had to turn notifications off permanently after the transfer. I believe some people have suggested making sure that buddypress is not activated during the transfer, ie to only activate buddypress after the bbpress migration has taken place.

    mth75
    Participant

    Solved:

    function get_fav_or_unfav_button_for_bpp( $reply ) {
    global $bp, $activities_template;
            // user is not logged ? Show nothing.
    	if ( ! is_user_logged_in() ) {
    	return '';
    	}
    	
    	$activity_id = (int) get_post_meta( bbp_get_reply_id( $reply_id ), '_bbp_activity_id', true ); 
    	
    	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-like-count">'."\n";
    
    		if ( ! bp_get_activity_is_favorite() ) {
    		// if not favorited, add a fav button
    		$code .= ' <a href="'.bp_get_activity_favorite_link( ).'" class="acomment-like fav-comment 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="acomment-like unfav-comment bp-secondary-action" title="'.__( 'Unlike', 'buddypress' ).'">'.__( 'Unlike', '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;
    	
    }
    
    ?>

    Add to loop-single-reply.php for BBPress:

    <?php echo get_fav_or_unfav_button_for_post( reply ); ?> or in the bbp_reply_menu, which i’m still trying to figure out:

    add my own menu option to the bbp-reply-header

    #180453
    mth75
    Participant

    Hi all,

    I’m trying to add my own “menu” option to the reply header (let’s call it LIKE)..

    So for admin:

    Edit | Close | Stick (to front) | Merge | Trash | Spam | Reply | LIKE |#10436

    For participants:

    Reply | LIKE | #10452

    I can’t find the right solution for this little adjustment I really need … to add the Buddypress Like (favorite) button:

    Integrating Buddypress favorite system (aka like system) with BBPress

    #180448
    Barry
    Participant

    Apologies all and good catch, Robin!

    I don’t think there’s anything wrong with your version of the code, but for the sake of alternatives here’s a fix for what I posted originally:

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

    Beyond that, the links you shared (in terms of mixing in extra info such as the author’s details) look solid to me 🙂

    #180446
    Robin W
    Moderator

    http://artintheblood.net/wp-login.php?redirect_to=http%3A%2F%2Fartintheblood.net%2Fwp-login

    gets you to a login page – then disable bbpress and then come back

    Robin W
    Moderator

    ok, I’ve just loaded your code to my test site, and I can set a user to member and it holds

    Suspect either theme or other plugins

    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

    #180443

    In reply to: Background Color

    scottwiggins17
    Participant

    Forum Discussions

    here is the forum page. WP and BBpress are most updated versions

    I Think if I could just get the forum pages/topic pages to be a white background, it would be fine.

    kajzh
    Participant

    1. Professional doesn’t stick either. It seems like only the added roles are misbehaving. When I set my Auto Role to a prepackaged role, everything acts fine.

    2. I tried renaming the filter and the roles still don’t stick.

    Thank you for all of your help so far! If you have any other suggestions for creating new/custom roles, please let me know. This is the only modification I’m making to bbPress, so I can definitely try other approaches if any come to mind.

    #180440
    DanaJoy2008
    Participant

    Hello,

    I am getting the following errors:
    Warning: ksort() expects parameter 1 to be array, object given in /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-content/plugins/bbpress/includes/core/template-functions.php on line 316

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-login.php on line 394

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-content/plugins/bbpress/includes/core/template-functions.php:316) in /home/content/p3pnexwpnas10_data01/99/2483599/html/wp-login.php on line 407

    I cannot log in as an admin. My site is artintheblood.net. I should have the latest update of WordPress, but I cannot confirm because I cannot enter the site. Any advice you can offer is greatly appreciated.

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