Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'forum'

Viewing 25 results - 1,101 through 1,125 (of 20,260 total)
  • Author
    Search Results
  • #271040
    Robin W
    Participant

    After kicking this around, I found that

    add_filter( ‘tiny_mce_before_init’, ‘cac_enable_mentions_in_group_forum_tinymce’, 10, 2 );

    is never fired, presume this is an order thing.

    After some further research, I created a small plugin that has some much of the above, but also some js that executes for the visual version.

    available at

    bbp Mentions Suggest

    #271032
    Hugo Callens
    Participant

    That may well be, but a php check by my hosting company says there is a lot of deprecated or forbidden code in the following files:

    /bp-forums/bbpress/xmlrpc.php
    /bp-forums/bbpress/bb-includes/backpress/class.bp-log.php
    /bp-forums/bbpress/bb-includes/backpress/class.ixr.php
    /bp-forums/bbpress/bb-includes/backpress/functions.core.php
    and so on…

    #270999
    sasenzon
    Participant

    I have tried to deactivate all plugins and the theme. Nothing helps.

    When I am logged in as myself and I reply on a forum, I move the cursor into the textbox and click, that sort of resets the page and I get a new url with #post-number. Then I can type in the box and it works every time.

    When I login as the user (and there are a few of them having this issue), when I click the cursor into the box nothing happens. no page load, no #post-number appears. Then when I hit submit the page just goes back to the main forum page.

    #270998
    angrywarrior
    Participant

    Right thanks @derrickhall.

    So is there any Buddypresss admin/dev that could jump in and help out with how to disable that?

    It´s really a privacy concern and issue because groups are somewhat a private entity and updates should stay inside the groups themselves and not be spammed in the general forums update stream.

    Thanks!

    #270997
    Robin W
    Participant

    @r-a-y

    I know this is an old thread, but I can’t get your excellent code working for tinymce on topic/reply front end.

    Works fine in tinymce on backend, Works fine for textarea on front end, but not timymce on front end. I need it working on frontend in forums.

    Is there a more up to date version that works with current bp and bbp, or do you have any ideas how to get it working.

    the code I am using is

    /**
     * Enable at-mention autocomplete on BuddyPress group forum textareas.
     */
    function my_enable_mentions_in_group_forum_textareas( $retval ) {
    	$bbpress = false;
    
    	// Group forum reply.
    	if ( bp_is_group() && 'topic' === bp_action_variable() && bp_action_variable( 1 ) ) {
    		$bbpress = true;
    	}
    
    	// Group forum topic.
    	if ( bp_is_group() && bp_is_current_action( 'forum' ) ) {
    		$bbpress = true;
    	}
    
    	// Do stuff when on a group forum page.
    	if ( true === $bbpress ) {
    		$retval = true;
    		
    		// Ensure at-mentions autocomplete works with TinyMCE for bbPress.
    		add_filter( 'tiny_mce_before_init', 'cac_enable_mentions_in_group_forum_tinymce', 10, 2 );
    	}
    
    	return $retval;
    }
    add_filter( 'bp_activity_maybe_load_mentions_scripts', 'my_enable_mentions_in_group_forum_textareas' );
    
    /**
     * Ensure at-mentions autocomplete works with TinyMCE for bbPress.
     *
     * @param array  $settings   An array with TinyMCE config.
     * @param string $editor_id Unique editor identifier, e.g. 'content'.
     * @return array  $mceInit   An array with TinyMCE config.
     */
    function cac_enable_mentions_in_group_forum_tinymce( $settings, $editor_id ) {
    	// Add bbPress' editor IDs to enable BP mention autocomplete.
    	if ( 'bbp_topic_content' === $editor_id || 'bbp_reply_content' === $editor_id ) {
    		$settings['init_instance_callback'] = 'window.bp.mentions.tinyMCEinit';
    	}
    
    	return $settings;
    }
    #270961
    David Cavins
    Keymaster

    You might try the bbPress support forum for more specific help. https://bbpress.org/forums/

    #270932
    ethanstein
    Participant

    Yes, definitely helpful. Any idea how to implement the solution within the groups index page as a bulk option as oppose to having to go into the individual group?

    I tried using wordpress’s bulk admin similar to the example pertaining to load-users.php, but it isn’t working.

    
    
    add_filter( 'handle_bulk_actions-toplevel_page_bp-groups', 'add_bpgroups_to_bpgroup', 10, 3 );
    
    function add_bpgroups_to_bpgroup($redirect_to, $doaction, $group_ids) {
      trigger_error($doaction);
      trigger_error($redirect_to);
        if( bp_is_active('groups') ):
    
          if ( $doaction !== 'assign_parent_group' ) {
              return $redirect_to;
          }
          trigger_error(print_r($group_ids,TRUE));
          $redirect_to = add_query_arg( 'groups_assigned' , implode(',', $group_ids) , $redirect_to );
        endif;
        return $redirect_to;
    }
    add_filter( 'bulk_actions-toplevel_page_bp-groups', 'register_bulk_assign_parent_action' );
    
    function register_bulk_assign_parent_action ($bulk_actions) {
     $bulk_actions['assign_parent_group'] = __( 'Assign Parent Group', 'assign_parent_group');
     //form submission
     add_action( 'admin_footer', function() { ?>
         <script type="text/javascript" charset="utf-8">
             jQuery("#doaction").click(function(e){
                 if(jQuery("select[name='action'] :selected").val()=="assign_parent_group") { e.preventDefault();
                     gid=prompt("Enter a Group ID","1");
                     if (gid != null) {
                       jQuery(".wrap form").append('<input type="hidden" name="bp_gid" value="'+gid+'" />').submit();
                     }
                 }
             });
         </script>
     <?php
     });
     return $bulk_actions;
    }
    
    add_action( 'admin_notices', 'bulk_assign_parent_action_admin_notice' );
    
    function bulk_assign_parent_action_admin_notice() {
      if ( ! empty( $_REQUEST['groups_assigned'] ) && ! empty( $_REQUEST['assigned_group'] ) ) {
        $groups_assigned =  $_REQUEST['groups_assigned'] ;
        $parent_id = $_REQUEST['assigned_group'];
        $parent_group = groups_get_group($parent_id);
        if ($parent_group->id == 0) {
          printf( '<div id="message" class="error">Unknown group ID %s</div>', $parent_id);
          return;
        }
        $group_ids = explode(',' , $groups_assigned);
        foreach ($group_ids as $group_id) {
          $group = groups_get_group( $group_id );
          if (false === groups_edit_group_settings($group_id, $group->enable_forum, $group->status, false, $parent_id )) {
            printf( '<div id="message" class="error">Failed to add group %s to %s.</div>', $group->name, $parent_group->name);
            break;
          }
    
        }
    
        printf( '<div id="message" class="updated fade">Successfully ' .
          _n( 'assigned %s group',
            'assigned %s groups',
            $groups_assigned,
            'assign_parent_group'
          ) . 'to %s</div>', $groups_assigned, $group_name );
      }

    It fires the
    add_filter( ‘bulk_actions-toplevel_page_bp-groups’, ‘register_bulk_assign_parent_action’ );

    correctly but seems to completely ignore

    add_filter( ‘handle_bulk_actions-toplevel_page_bp-groups’, ‘add_bpgroups_to_bpgroup’, 10, 3 );

    Any ideas?

    starvoters1
    Participant

    After posting this, I found CSS that works to remove the menu items, if it helps anyone else.

    https://premium.wpmudev.org/forums/topic/how-to-customize-or-delete-buddypress-standard-menus

    For the site CSS I set:
    a#user-notifications {display : none !important}
    a#user-invite-anyone {display : none !important}
    a#user-settings {display : none !important}

    #270845
    jameshh93
    Participant

    Or if not how can I just turn off the rel nofollow for all users then?

    Posted on Bbpress forums and looks as though the solution provided their for getting rid of nofollow seem to get ignored when buddypress activated see link to forum thread

    Remove rel=”nofollow” for admin only?

    #270802
    Venutius
    Moderator

    Hi there,

    Are you searching as a none-member of the group using the search bar of the forums page?

    That’s what I just tried and I could not see the content of hidden forums.

    #270601
    Abolfazl Ahani
    Participant

    Thanks Paul

    I hope you are doing well.

    There is still no sign of this long-awaited enhancement.

    Best Regards

    #270571
    Paul Wong-Gibbs
    Keymaster

    If you’ve found a way to change the permalinks directly via bbPress (the /forums/ permalinks), then you know the plugin’s worked. If they’re not working for the permalinks on the Groups Forum screen, you’re probably out-of-luck.

    Unfortunately, most of the permalinks through BP are hardcoded and are very, very tricky to customise.

    #270570
    Paul Wong-Gibbs
    Keymaster

    If you want a traditional forum, you want to use bbPress not BuddyPress. See https://bbpress.org.

    #270563
    David Cavins
    Keymaster

    Keep in mind that BuddyPress is developed and supported by an all-volunteer community.

    If you are in need of more specialized help or more immediate help than this forum can provide, I’d recommend that you develop a business relationship with a local WP developer. Any WP developer who understand the filters/actions approach of WordPress will be able to develop for BP.

    #270551
    iesbakersfield
    Participant

    Accidentally put under this forum, cant move it.

    #270538
    Scott Hartley
    Participant

    Actually, I believe this is in the correct space.

    Currently, my understanding is in BuddyPress we are making an association between the forum that you add during the setup screen and then retrieving the topics of the associated forum.

    Which means this is, in fact, a BuddyPress issue. However, I don’t know how much of an issue this is because while subforums are possible within bbPress, the implementation in BuddyPress has no way to add Subforums (or to even create a forum as a category for that matter). This simply means the use case would only be those who have an administrator level and can create those from the backend.

    #270537
    Andrew Tegenkamp
    Participant

    I cross posted at https://bbpress.org/forums/topic/sub-forums-inside-a-group/ since this is that area where they work with each other, but any guidance even on where to get started to develop this as an option or feature is certainly appreciated.

    Thanks.

    #270523
    Venutius
    Moderator

    Hi,

    This is a bbPress question, you need to ask on their forums.

    #270479
    ulrich.stettler
    Participant

    Thanks, I’ll post it also on the BuddyPress Grpoups Forum, this could also be marked as solved.

    #270478
    ulrich.stettler
    Participant

    Thanks for the information, I posted the question in the BuddyPress forum, so it can be marked as solved.

    Venutius
    Moderator

    That behaviour must have changed since last time I tested it. You should ask in the forum for the plugin

    Shashi Kumar
    Participant

    Hi @ngoegan
    Above code is working fine on my install. I am not facing a redirection issue on forum page. If you closely watch the code there is an if statement which checks if we are on register page.
    You can do a few things
    1. Clear your cache if using a caching plugin.
    2. Clear your browser cookies and check
    3. Go to settings > permalink and re save
    4. Change to default theme and deactivate all plugins except bbpress and buddypress and place the code in theme’s functions.php file and check
    Happy Debugging 🙂

    ngoegan
    Participant

    Oh no! I’m having redirect issues again 🙁

    My Events Page (The Events Calendar plugin) and My Forum Page (bbpress) are both redirecting to the Activity page now. All others are fine – groups, members, etc.

    I tried re-setting them in the navigation menu, I tried disabling plugins, I’m not sure why your code is causing pages other than ‘register’ to re-direct to activity?

    #270464
    David Cavins
    Keymaster

    rtMedia is a plugin of its own and not a part of a standard WordPres install. Check out their support forum here:

    rtMedia for WordPress, BuddyPress and bbPress

    #270439
    Shashi Kumar
    Participant

    Hi @ottiya
    Adding an author box after post which displays author bio need a different approach. I can not explain in this forum as it involves certain difficulties. But, I have written a tutorial on how to add author box below post with author bio. Kindly check and if you need help kindly ask.
    Thanks

Viewing 25 results - 1,101 through 1,125 (of 20,260 total)
Skip to toolbar