Forum Replies Created
-
In reply to: [Resolved] Base Primary USER REGISTRATION ISSUE
Base is the name of the field group which contains one mandatory field: Name.
You can rename that field but not delete it.See also if this can help you:
How to I delete “This field can be seen by: Everyone?” on my registration page?
In reply to: WordPress 4.5Of course !
https://codex.buddypress.org/releases/ > see latest… πIn reply to: Profile field visibiltiyPerhaps this can help you to go further.
For point 2, maybe this snippet can do the job. Give it a try ! Add it to bp-custom.php
function custom_display_xprofile_fields() { // single field item if ( $data = bp_get_profile_field_data( 'field=Industry' ) ) : // change field name to yours echo '<div class="industry">'. xprofile_get_field_data( 'Industry', bp_displayed_user_id() ) .'</div>'; endif; } add_action( 'bp_after_profile_loop_content' , 'custom_display_xprofile_fields' );In reply to: Sorting activity streamHi @subairtc,
see
bp_activity_get_where_conditionsfilter in bp-activity-classes.php ~L. 418Here a similar question with more details.
Also, maybe you can do something based on this snippet, with a different approach.
/** * Change order of activities query string. * @param string $query Query string. * @return string $query Modified query string. */ function bpfr_filter_activity_default( $query ) { if ( empty( $query ) && !empty( $_POST ) ) { $query = 'order=ASC'; } return $query; } add_filter( 'bp_ajax_querystring', 'bpfr_filter_activity_default', 999 );Apologize if i’m wrong. π
For readers curious about the answer, autoembed does not run on meta items unless the dev runs it manually themselves ( @r-a-y ).
More details on BuddyPress Slack.
In reply to: Edited Forum Posts Repeating in StreamYou’re welcome. But it’s not me who rocks, but the patch author @shanebp !
FYI The issue is resolved for what will be bbPress 2.6.
In reply to: Edited Forum Posts Repeating in StreamHi Julia,
it’s a bbPress bug, patched a while ago, but still in. Maybe a day it will be repaired definetly.
For the moment, you can repair yourself. Open activity.php in wp-content/plugins/bbpress/includes/extend/buddypress/
Replace following code block at line 277/279:
$existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all', ) ); if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) ) return null;by
$existing = new BP_Activity_Activity( $activity_id ); if ( empty( $existing->component ) ) { return null; }Save and reload to to your site by FTP and you’re done.
Private group options are
- Only users who request membership and are accepted can join the group.
- This group will be listed in the groups directory and in search results.
- Group content and activity will only be visible to members of the group.
To modify option 3, you can code something.
Read from here.?????
Some details perhaps ?Hi @megin,
please use the code button when you publish code !
Do you really use wp-content/bp-custom.php ? If YES, it’s wrong.
bp-custom.php should be inwp-content/plugins/bp-custom.phpBut no idea about your function, sorry.
In reply to: [Resolved] BuddyPress Links URLsHi @famous,
anything directly related to URL for bp is listed here:
http://hookr.io/plugins/buddypress/#index=l&search=urlIn most case, you can built a link by array, which generally extend pre existing parameters. It’s very variable and depend where and how the link shoud work.
Here some exemple snippets to add a link to a member’s profile.
/* add external link on buddy menu bar */ function bpfr_menubar_link() { global $bp; if ( !is_user_logged_in() ) return false; $link = bp_get_loggedin_user_link(); $bp->bp_nav[$slug] = array( 'name' => 'View my profile', 'slug' => 'super_link', 'link' => $link, 'css_id' => 'super-link', 'position' => 20 ); } add_action( 'bp_core_new_nav_item', 'bpfr_menubar_link', 999 ); /* link to profile on SWA page */ function goto_my_profile_tab() { if ( !is_user_logged_in() ) return false; if ( bp_is_active( 'xprofile' ) ) echo '<li><a href="'. bp_get_loggedin_user_link() .'">View my profile</a></li>'; } add_action( 'bp_activity_type_tabs', 'goto_my_profile_tab' ); // SWA page add_action( 'bp_members_directory_member_types', 'goto_my_profile_tab' ); // members directory page /* shortcode linking to profile [xyz] */ function bpfr_link_to_profile() { return '<a href="'. bp_get_loggedin_user_link() .'">View my profile</a>'; } add_shortcode( 'xyz', 'bpfr_link_to_profile' );Another technique for groups here.
In hope this will help you to go further.
Please use code buton when you paste code in a topic. Thxs.
In reply to: virtual kiss or winkMaybe this one ?
https://wordpress.org/plugins/buddypress-compliments/In reply to: How to customize the registration fieldsHi,
read here please: https://buddypress.org/support/topic/buddypress-registration-without-username/
Other solutions (untested):
https://wordpress.org/plugins/smart-wp-login/
https://wordpress.org/plugins/ppress/
There maybe other plugins.If you don’t have a good php experience, i would recommand you to not alter this sensible WP core part in any way.
In reply to: Groups/Members alphabetical sort by defaultIn reply to: Non-members can see child forums in groupshi @artisantopia,
seems you found a bug ! π I tested your issue and got the same behave.
Please report this on Trac and mention your first topic. Trac login use same credentials as here.
I report this on bbPress slack immediatly. (in case of)
Thank you.
In reply to: How do i creat a child theme???In reply to: Profile Date Selector always day-month-yearIt’s not an issue, but how it works actually.
Read about date selector on Trac, and if you have some opinion or idea, feel free to participate to the discussion. Old and long thread, but still in debate ! π
https://buddypress.trac.wordpress.org/ticket/5500In reply to: Viewing Extended Profile Data for Pending UsersHi,
no, that thread doesn’t apply to your case. π
this information is inaccessible to administrators as long as the user is βPendingβ.
That’s wrong !
You’re partially right, as you have no direct access, but you can go to a pending user profile information in backend.How ?
– click on a approved member name when on the members management page (backend).
– once on that page, copy the URL and replace the user_id you’ll see in it by the one of the pending member.Problem is to get the pending member user_id. It’s not available outside of the wp_users or wp_signup table.
The link to a pending member on the pending member list looks like:
../wp-admin/users.php?page=bp-signups&signup_id=1&action=activateOn the approved member list, it looks like:
../wp-admin/users.php?page=bp-profile-edit&user_id=41&wp_http_referer=%2Fwp-admin%2Fusers.phpThe difference are:
signup_id=1 – which is not the user_id
and
user_id=41 – which is !But if you take the second link example and replace 41 by the pending user ID you’ll find in the DB you can access to his information.
Pretty easy if you have only 1 or 2 users to check. A great hasle if you have dozens.
Could be a good feature for some BuddyPresser… π
In reply to: assign users to group based on rolethank you for your
kindcomment… 6 months later !
The initial question was: Is there a way, through a function, I can assign users to groups based on their user role? and Venutius jumped in with: iβd like to know the answer too.As i’m not a professional, only volonteer, i answer about what i understand – and not only to things i’m sure. Like you apparently. In hope that my answer to your today’s question will satisfy you.
For now, keep your remarks for you, especially if it is to make such a sterile and unconstructive comment on an old topic.
In reply to: assign existing users to groupsHi,
login as ste admin and go to dashboard > Groups (wp-admin/admin.php?page=bp-groups). There will be a list of all existing groups. Click on the one you want to asign members.
Eventually open screen option tab (underneath top right corner) and ensure that add new members and members admin options are checked.
Below the group description field, you have another box where you can enter a username for the member you want to add. Normaly you’ll get one by auto-completion after typing a letter or two.
That’all.
Codex ref: https://codex.buddypress.org/administrator-guide/groups/#groups-management-panels
In reply to: members directory in list formHi,
You’re probably on a large screen. Default display of the directory is already a list. See template code (members-loop.php) using ul and li !
Check your theme or try to simulate a mobile screen (if u use firefox it’s Ctrl+shif+m) to see if your directory get wrapped or not. If not, adjust your (child)theme CSS.
In reply to: Avatars reset to default when activating BuddyPressHi,
you have to check your custom plugin. Or even to deactivate it, as it is no more necessary when you use BP. Problem seems to be that you created something related to members handling before BP was installed.
BuddyPress handles members and their avatars via the buit-in WP avatar function.
If you need more help, please give details about your config, theme and custom code. Thxs π
In reply to: How to move Profile window like this siteHi,
it’s related to a custom work of the theme used on buddypress.org. You can read more here and get the source code here.
Read also some advice here
In reply to: How to add Base — View InfoPlease find your answer on BuddyPress Codex: