Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 3,176 through 3,200 (of 22,713 total)
  • Author
    Search Results
  • #271161
    David Cavins
    Keymaster

    Hi, it looks like this rule is what’s active when hovering on your registration form, so I suspect it’s what you’ll need to override:
    https://buddypress.trac.wordpress.org/browser/tags/2.9.3/src/bp-templates/bp-legacy/css/buddypress.css#L956

    #271158
    orribu
    Participant

    Ah, forgot to answer these:

    • WordPress ver. 4.9.4
    • BuddyPress ver. 2.9.3
    • Installation: Runs in main directory (public_html)
    • Upgraded from WordPress ver. — I’m going to guess 4.9.3?
    • Yep, WP was working fine. It still is, I just recovered it from a pretty bad PHP error. (disclaimer, I have NO idea how to PHP)
    • Upgraded from bbPress 2.9.2
    • Other Plugins: Akismet 4.0.3; bbpress 2.5.14; Blackhole for Bad Bots 1.8; Comment Mention Notifications 1.0.0; Custom Sidebars 3.1.2; Fancybox for WordPress 3.0.13; Jetpack 5.8; MailChimp 4.1.15; Maintenance 3.6.1; SiteOrigin Page Builder 2.6.2; Patreon for WordPress 2.6.2; Responsive Menu 3.1.13; Shortcodes Ultimate 5.0.3; SiteOrigin CSS 1.1.5; SiteOrigin Widgets Bundle 1.11.4; UpdraftPlus – Backup/Restore 1.14.4; User Role Editor 4.4; WooCommerce 3.3.3; WooCommerce Services 1.11.0; WordPoints 2.4.1; WP Super Cache 1.5.9; Yoast SEO 6.3.1
    • Parent Theme: Rose
    • I’ve uploaded the Rose theme and made a child theme. I’ve also altered wp-config.php to allow Multisite functionality.
    • bbp-custom.php– I made one now! There are no functions.
    • Hosted through BlueHost.
    • Server OS: More than likely Linux (Apache).

    Recent errors:

    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
    [03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162

    Henry Wright
    Moderator

    “bp_loaded” will also get the job done. You just need to find a hook that’s appropriate. A function needs to be defined before you call it so it’s always worth keeping track of the load order in both WordPress and BuddyPress.

    Feel free to edit the documentation if you find an error. BuddyPress welcomes contributions

    #271104
    Nik
    Participant

    @pandraka

    I can’t personally answer that as it’s obviously down to the Buddypress development team(!) but as mentioned above, the fix which can be found here – https://buddypress.trac.wordpress.org/attachment/ticket/7674/7674.01.patch works perfectly well in the meantime…

    #271101
    David Cavins
    Keymaster

    Hi there-

    There’s a known issue with outlook/hotmail emails being rejected:
    https://buddypress.trac.wordpress.org/ticket/7697#comment:7

    A fix is forthcoming (but there’s no timetable for that update).

    #271100
    David Cavins
    Keymaster

    Ha, that’s because there was an extra semi-colon. Try this:

    
    add_action( 'wp', function() {
    	if ( bp_is_profile() ) {
    		$user_meta = get_userdata( bp_displayed_user_id() );
    
    		if ( in_array( 'subscriber', $user_meta->roles ) ) {
    			wp_redirect( home_url() );
    			exit;
    		}
    	}
    }, 1 );
    

    What I was saying about roles is that WordPress handles roles. BuddyPress doesn’t create or really use them that much.

    Venutius
    Moderator

    I think the first thing I would try would be to disable the plugin that is creating the member types and see if that works. You can do that by accessing your wordpress file structure using FTP and then changing the name of the member type plugin directory.

    #271073

    In reply to: Buddypress.pot corrupt

    Varun Dubey
    Participant
    #271067
    Varun Dubey
    Participant

    Hi @jonowen2k, Seems like you have enabled jetpack single sign-on and it’s added a login with WordPress.com, you can skip it and login with regular WordPress login page. It’s that’s still confusing you can disable single sign-in from jetpack settings.

    #271057
    David Cavins
    Keymaster

    Here’s some untested code that should prevent anyone from visiting the profile of a subscriber user. Roles are not a BP construct, so you’ve got to look to WordPress for that info.

    
    add_action( 'wp', function() {
    	if ( bp_is_profile() ) {
    		$user_meta = get_userdata( bp_displayed_user_id() );
    
    		if ( in_array( 'subscriber', $user_meta->roles; ) ) {
    			wp_redirect( home_url() );
    			exit;
    		}
    	}
    }, 1 );
    
    #271051
    David Cavins
    Keymaster

    Here’s another report of this with a suggested fix: https://buddypress.trac.wordpress.org/ticket/7704

    #271049

    In reply to: User Tag in Profile

    David Cavins
    Keymaster

    Maybe you could use friend relationships for this. If the “friend” terminology doesn’t make sense for your use, there is a plugin that creates one-way relationships called “follows” https://wordpress.org/plugins/buddypress-followers/

    #271048
    David Cavins
    Keymaster

    Hi James, I guess it depends on what a moderator is. (I can only think of Group Mods in BP, not sure what would count as a site-wide moderator.)

    The ability to see private messages is controlled by the check bp_current_user_can( 'bp_moderate' ) which is true for site or network admins.

    You could probably filter that value for some other role, like editor, but it would be a bit complicated to make it work only for private messages. Here’s more information about working with the WP capabilities system: http://mannieschumpert.com/blog/wordpress-capabilities-magic-with-map_meta_cap/

    #271046

    In reply to: email verification

    David Cavins
    Keymaster

    If you are asking about bbPress, try the bbPress forum.

    If you’re asking about removing the BuddyPress email verification step for new accounts, there are several plugins that do that:

    BP Disable Activation Reloaded

    BuddyPress Auto Activate Auto Login

    #271043
    David Cavins
    Keymaster

    There is an issue with hotmail/outlook rejecting activation emails (See the fix here: https://buddypress.trac.wordpress.org/changeset/11862).

    Otherwise, the best way to customize your emails is explained here: https://codex.buddypress.org/emails/

    David Cavins
    Keymaster

    There’s a known issue with hotmail/outlook addresses that will be addressed in the next minor update. You can see the fix here:
    https://buddypress.trac.wordpress.org/changeset/11862

    That may be your issue. If not, please provide more information.

    #271034
    shanebp
    Moderator

    >How to delete activities before a date

    BP Bulk Delete

    #271007
    Nik
    Participant

    @pd9soft

    Ah I forgot to report back here but I’ve been discussing elsewhere and the issue has already been reported here –

    https://buddypress.trac.wordpress.org/ticket/7674

    and a there’s solution by r-a-y here
    https://buddypress.trac.wordpress.org/attachment/ticket/7674/7674.01.patch

    Apparently a fix will be available in next release.

    #271005
    pd9soft
    Participant

    Found the bug tracker & reported here
    https://buddypress.trac.wordpress.org/ticket/7702#ticket

    amandafrench
    Participant

    Never mind! I’ve found a fabulous solution that has gotten me out of SQL query hell. Again, if anyone else is trying to sort a Members Directory, here’s what I did:

    1) Put it in a table, not a list (I had done this anyway, since I wanted a single-page directory that displayed xprofile fields horizontally) — make sure it has a <th> table header row;
    2) Install the plugin Table Sorter https://wordpress.org/plugins/table-sorter/ and add the class “tablesorter” to the table.

    Et voilĂ ! I commented out the sort type dropdown in members/index.php starting with
    <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Members directory secondary navigation', 'buddypress' ); ?>" role="navigation">
    all the way through

    <?php
    /**
     * Fires inside the members directory member order options.
     *
     * @since 1.2.0
     */
    do_action( 'bp_members_directory_order_options' ); ?>
    </select>
    </li>
    </ul>
    </div>

    and I made sure that the default single page list showed all users alphabetically by default in members-loop.php

    <?php if ( bp_get_current_member_type() ) : ?>
    	<p class="current-member-type"><?php bp_current_member_type_message() ?></p>
    <?php endif; ?>
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&per_page=500' . '&exclude=1,2,3,4,6' . '&type=alphabetical') ) : ?>

    And then all I had to do was add that tablesorter class to the table as required by the tablesorter plugin, and I got a nice dynamic table with sortable columns, which can also be sorted by multiple criteria by holding down the Shift key on the second column. I set the initial sort order with parameters that select the column by number, as described at http://tablesorter.com/docs/example-option-sort-list.html and elsewhere.

    <table id="members-list" class="tablesorter {sortlist:[[4,0], [3,0], [2,0], [1,0], [0,0]]}" aria-live="assertive" aria-relevant="all">

    Yay.

    #270956
    David Cavins
    Keymaster

    Hi I’m not exactly sure what you mean, but if you’re looking to get the profile image associated with a group or user, you can use the avatar-fetching function that BP uses in its templates, bp_core_fetch_avatar():
    https://buddypress.trac.wordpress.org/browser/tags/2.9.3/src/bp-core/bp-core-avatars.php#L99

    As an example, you might use

    bp_core_fetch_avatar( array(
    			'item_id' => $user_id,
    			'type'    => 'thumb',
    			'width'   => false,
    			'height'  => false,
    			'html'    => true,
    			'alt'     => sprintf( __( 'Profile picture of %s', 'buddypress' ), 'user name' )
    ) );
    
    #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?

    #270922
    David Cavins
    Keymaster

    This plugin is awfully close to what you’re trying to do. You might try modifying it to show groups in a drop down instead of the options offered:

    BuddyPress Registration Groups

    I doubt that any plugin is going to support group creation at registration; group creation is a multi-step process, and is too much to ask a new user to do at the same time as registration.

    #270895
    baccoeur
    Participant

    No pages will register, however WP says that the settings are saved.

    I also have Buddypress Version 2.9.3 and WordPress Version 4.9.4

    #270878
    David Cavins
    Keymaster

    Hi, there are a lot of reasons that email fails. There’s a current issue with non-SSL domains and Outlook.com for instance: https://buddypress.org/support/topic/buddypress-emails-not-going-out/

    If you’re not receiving any emails from your WordPress site, start by testing your site setup with this plugin: https://wordpress.org/plugins/check-email/

    In any case, we’ll need more detail, like what the user’s email address domain is, to help you troubleshoot.

Viewing 25 results - 3,176 through 3,200 (of 22,713 total)
Skip to toolbar