Forum Replies Created
-
In reply to: Trying To Get Access BBPress In My BuddyPress Plugin
Have you looked at
function groups_new_group_forumin bp-groups\bp-groups-forums.php ?See
function xprofile_set_field_visibility_levelin /bp-xprofile/bp-xprofile-functions.phpIn reply to: [Resolved] displaying user roles in profileCreate a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.phpThen in that file put one of these snippets wherever you like:
-show all roles for a user
$user = new WP_User( bp_displayed_user_id() ); if ( !empty( $user->roles ) && is_array( $user->roles ) ) { foreach ( $user->roles as $role ) echo $role; }– show just the first role
$user = new WP_User( bp_displayed_user_id() ); echo $user->roles[0];In reply to: Saving an array with xprofile_set_field_dataWP and BP will serialize, if necessary, any user_meta or xprofile data.
If you try to save a serialized array, it will treat it as a string and add slashes.
In reply to: new plugin: BuddyPress Simple Events1) Are users notified when an event they plan to attend is about to start?
No.
If you would like to have one or more of the items you mentioned added to your version, you can contact us through PhiloPress.
In reply to: new plugin: BuddyPress Simple Events@mcpeanut – I hope it will be resolved. Watch the tickets mentioned above to see if any progress is made.
bp-custom.php and a child theme are 2 different things.
Most code that goes in bp-custom.php could instead go into your child-theme/functions.php
If you put the code in bp-custom.php and put that file in …/plugins/ then it won’t be touched when you update BP.
In reply to: new plugin: BuddyPress Simple EventsIn reply to: new plugin: BuddyPress Simple EventsGot a chance to revisit this…
Both versions are now components.
BuddyPress Simple Events in the WP repo.
BuddyPress Simple Events Pro now has options for an Attending button, list of attendees, and notifications. As well as image support and Group assignment options.
Re themes: the templates have been tested with included WP themes. If there is an issue with a particular theme, the templates can be overloaded and adjusted as necessary. The layouts are bare-bones, iow. very basic layouts.
In reply to: User avatar in side widgetbp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'full' ) );‘full’ will be the large size at whatever that is set to – usually 150px.
In reply to: Change group role capabilitiesSo you’re putting the link above the avatar on a Forum page.
And if they select one of the options – then what?
I think your best bet is to write some ajax whose callback function uses custom sql.In reply to: Change group role capabilitiesI don’t think it’s possible without writing some custom sql to set the status of a member that should be kicked/banned.
All of the core group code uses bp_is_item_admin to check whether a person is a group admin.
If they aren’t, then kick/ban is not allowed.>I already set a menu above users avatar’s generating the ban/kick link
On what screen does that link appear?
I would try writing a function that is triggered by the link.
The function would check to see if the clicker is a mod and then run some custom sql.In reply to: User avatar in side widget<?php $user_id = get_current_user_id(); ?> <a href="<?php echo bp_core_get_user_domain( $user_id ); ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $user_id ) ); ?></a>In reply to: Fatal error, help? [Resolved]You’ll need to rename the plugin folder /wp-content/plugins/bp-group-customizer-lite/.
Use ftp or cpanel > file manager if your hosting company provides it.Change the name of:
bp-group-customizer-liteTo something like:
bp-group-customizer-liteXXDoing so will deactivate the plugin and allow you access to wp-admin.
Did you review the s2member documentation?
http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_user_field()try:
get_user_field('s2member_gender_id', $theUserID)If you’re using BP 2.2 +, you should use this approach instead:
My cpts appear.
However, comments on them do not appear in the activity stream.Perhaps because I didn’t create a component for those cpts – I hope that is not the case.
Hopefully this ticket will provide an answer.@aljo1985
WP provides a function for getting users. No need for custom sql.
https://codex.wordpress.org/Function_Reference/get_users@xidea
Have you tried
bp_has_members( bp_ajax_querystring( 'members' ) . '&type=newest' )In reply to: new BuddyPress plugin: BP Local AvatarsGood idea… Group avatars now supported.
Download it from
https://wordpress.org/plugins/bp-local-avatars/
or
It’s possible, but not easy.
You’ll have to start by changing the
form actionon this template:
bp-templates\bp-legacy\buddypress\members\single\settings\delete-account.phpAnd then write a function to handle your new action.
In reply to: Using BuddyPress profile imageYour request is more properly asked of the plugin creator.
You could try this:
Open birds-author-box\public\frontend.php and replace this:if (get_the_author_meta('image', get_query_var('author'))) { $content.= '<img class="birds_box_avatar" src="' . get_the_author_meta('image', get_query_var('author')) . '">'; } else { $blank = plugin_dir_url(__FILE__) . 'img/blank.png'; $content.= '<img class="birds_box_avatar" src="' . $blank . '">'; }with this:
$avatar_args = array( 'item_id' => get_the_author_meta('ID', get_query_var('author')), 'type' => 'thumb', 'html' => false ); $content.= '<img class="birds_box_avatar" src="' . bp_core_fetch_avatar( $avatar_args ) . '">';Send a confirmation to the user being deleted?
Not sure if this will work from Settings > Delete Account:
https://codex.wordpress.org/Plugin_API/Action_Reference/delete_user#Example:_Email_Users_Being_DeletedIn reply to: group for logged in userYou don’t say which hook your class uses.
Have you tried using
get_group_ids( bp_loggedin_user_id() )?
See the function inbp-groups\bp-groups-classes.phpand note the structure of thereturned array.If you’re hooking before BP is ready, you could always run some custom sql.
Use SELECT COUNT via get_var.In reply to: Google Map support using BuddypressYes, probably will require some custom code.
Use the Group Extension API and one of the Google Map APIs.
In reply to: Adding Location to the Bottom of Activity [Code]Try using a different hook.
add_action('bp_activity_entry_content', 'mmActivityAddImage');