Search Results for 'buddypress'
-
AuthorSearch Results
-
February 23, 2018 at 6:04 pm #270998
angrywarrior
ParticipantRight 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!
February 23, 2018 at 5:32 pm #270997In reply to: @mention autosuggest in visual editor
Robin W
ParticipantI 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; }February 23, 2018 at 7:37 am #270989In reply to: Group user list doesn’t work correctly
redbananasander
ParticipantHmm… Maybe this is normal funcition from buddypress? I have 24 active plug-ins:
– ACF Accordion
– Advanced Custom Fields PRO
– Advanced Custom Fields: Font Awesome
– Advanced Custom Fields: Gravity Forms Field
– Black Studio TinyMCE Widget
– BuddyPress
– BuddyPress Activity Plus
– BuddyPress Admin Only Profile Fields
– BuddyPress Edit Activity
– BuddyPress Global Search
– Colsensation Addons (own plugin)
– Custom Post Type UI
– Export User Data
– Gravity Forms
– Gravity Forms (nl)
– Gravity Forms User Registration Add-On
– GravityView – Gravity Forms Import Entries
– Invite Anyone
– Members Import
– Pronamic Pay
– Warpdrive
– WP Pusher
– WP Sync DB
– Yoast SEOThat’s all 😉
February 23, 2018 at 1:08 am #270988amandafrench
ParticipantNever 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.
February 22, 2018 at 11:38 pm #270985In reply to: Post Update Button color change
oliverrealize
Participant#buddypress form#whats-new-form #aw-whats-new-submit { background: transparent; }The above is what chooses the color of the button. Just replace transparent with a hex. i.e. #000000 for black.
You can also limit it to just the activity page with the activity pages class which is .activity:
.activity #buddypress form#whats-new-form #aw-whats-new-submit { background: transparent; }I’d be careful with the .activity class, it’s a really vague class so other plugins, themes may use it.
February 22, 2018 at 2:55 pm #270977In reply to: Users can’t reply to forum
sasenzon
ParticipantSomeone at bbpress told me to come here. I wish I could figure out the answer.
My intent was to have it only available to users in this class.
I set it up as hidden in the manage settings on the front end.
On the dashboard however, it is set to open public.
Also – it is in a group that I set up as hidden.
However, the dashboard it shows that it is in a public group.Perhaps there is a conflict here?
I am self-taught at buddypress. Would love to learn how to be an expert.February 22, 2018 at 12:35 pm #270972In reply to: list of all functions
Venutius
Moderatorhave you looked at http://hookr.io/plugins/buddypress/#index=a
February 21, 2018 at 9:54 pm #270962In reply to: Delete Account
David Cavins
KeymasterHi @mironegrini-
This isn’t possible, and will likely be even less possible in the future (as GDPR becomes a reality). BuddyPress does a bunch of cleanup when a user is deleted. You can search the code base for the actions:
'wpmu_delete_user'and'delete_user'to see all the hooked cleanup functions. You could unhook those actions, but then you’d likely have broken content (all of the user functions would refer to nonexistent users).February 21, 2018 at 9:48 pm #270960In reply to: bp_activity_after_save & page refresh
David Cavins
KeymasterHi @danperis-
This is something that the devs are actively working on with that plugin and it’s a known issue. You can watch their progress here: https://github.com/boonebgorges/buddypress-group-email-subscription/tree/digest-queue
and maybe here: https://github.com/boonebgorges/buddypress-group-email-subscription/pull/100
February 21, 2018 at 9:35 pm #270956In reply to: Moving the group header and image
David Cavins
KeymasterHi 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#L99As 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' ) ) );February 21, 2018 at 9:28 pm #270955In reply to: add link to Skype account to user profile
David Cavins
KeymasterHello, you can take advantage of User Extended Profiles to collect Skype information from your users, like their username or whatever.
February 21, 2018 at 6:19 am #270939In reply to: Public contact form on members profile page
Varun Dubey
ParticipantFebruary 20, 2018 at 9:39 pm #270931In reply to: Disable hidden groups completely
angrywarrior
ParticipantThanks @dcavins for your advise, but that is not a option for us a we run a new public service so it is open for anyone to join and create.
However we have found a solution which is editing the admin.php and removing the code part that displays this option in the groups settings.
I will stop probably 99% of all users and left is only very advanced users that would craft such URL I guess?
On a sidenote:
I think it would be good if you guys that are part of the BuddyPress Team would consider adding an option in BP back-end setting to be able to enable/disable groups types eg. hidden groups and maybe private to give people more control? Well at least hidden groups.Thanks!
Kind regards
AngryWarrior.February 20, 2018 at 8:20 pm #270922David Cavins
KeymasterThis 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:
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.
February 20, 2018 at 8:17 pm #270921In reply to: Disable hidden groups completely
David Cavins
KeymasterI’d say if you’re worried about people creating groups (which is a reasonable thing to worry about), your safest bet is to uncheck the checkbox “Enable group creation for all users” (or something like that) at wp-admin > settings > buddypress , and restrict group creation to site admins only. Then, add a group request form or similar, and you can either create the group or not.
February 20, 2018 at 10:16 am #270907In reply to: Disable hidden groups completely
Venutius
ModeratoraladinDr
Participantthanks but i’m not specialist in buddypress developement , it’s complicated for me
February 20, 2018 at 5:47 am #270903Topic: Disable hidden groups completely
in forum How-to & Troubleshootingangrywarrior
ParticipantHi
Well as the subject says. How can you completely disable hidden groups in Buddypress?Considering that my site is public its dangerous feature that will attract all the worst of the internet has to offer. Criminals and alike. So i need to get this done somehow.
It somewhat surprises me that this isn´t a built in setting in BuddyPress core settings so you could just click to disable it min the first place.
Anyways: i would very much appreciate help with this.Please advise.
Kind regards
AngryWarrior.February 19, 2018 at 8:51 pm #270897David Cavins
KeymasterYes, you can do any amount of extra validation on the hook
bp_signup_validate.Something like this would probably do what you are trying to do:
add_action( 'bp_signup_validate', function(){ $allowed_users = array( 'user1@domain.com', 'user2@domain.org' ); if ( isset( $_POST[ 'signup_username' ] ) && ! in_array( $_POST[ 'signup_username' ], $allowed_users ) ) { $bp = buddypress(); $bp->signup->errors['signup_username'] = 'Sorry, your email address is not able to register with this site.'; } } );There are several examples on the web for doing things on that hook. (BuddyPress Registration Options does some things, for instance.)
February 19, 2018 at 8:44 pm #270896In reply to: Members Component has no Associated Pages
David Cavins
KeymasterHI @baccoeur-
The best way to troubleshoot is to deactivate as many plugins as feasible, ideally leaving only BuddyPress active and using a common theme like Twenty Seventeen, to test the behavior. Then, check to see if the problem is resolved. Reactivate plugins and re-check to see which one is causing the conflict.
It only takes a few minutes to do this test, and will help you figure out where the problem actually is.
February 19, 2018 at 8:26 pm #270895In reply to: Members Page Will Not Associate with Buddypress
baccoeur
ParticipantNo 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
February 19, 2018 at 8:18 pm #270894starvoters1
ParticipantAfter 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}February 19, 2018 at 6:58 pm #270880In reply to: Templates for Buddypress
David Cavins
KeymasterBP adapts to any theme you use. If you’re looking to customize specific aspects, you can take advantage of the BP template hierarchy:
February 19, 2018 at 6:56 pm #270879In reply to: Selecting role at registration
David Cavins
KeymasterAre you using BuddyPress member types, or something else?
February 19, 2018 at 6:54 pm #270878In reply to: New user not receiving activation email
David Cavins
KeymasterHi, 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.
-
AuthorSearch Results