Forum Replies Created
-
In reply to: Add xprofile to user
Amazing!
`if (bp_is_active(‘xprofile’)) {
xprofile_set_field_data( 1, $userId, $form->getValueText(‘quform_7_28’));
}`and its works!`
thanks very much!
In reply to: Disable ActivationResolved!
In reply to: request of friend@dopeboy did you can it?
In reply to: inbox to new user automatic from adminWarning: Cannot modify header information – headers already sent by (output started at public_html/home/wp-content/mu-plugins/message.php:1) in /public_html/home/wp-content/themes/eonet/inc/hooks.php on line 347
Warning: Cannot modify header information – headers already sent by (output started at public_html/home/wp-content/mu-plugins/message.php:1) in public_html/home/wp-admin/includes/misc.php on line 1198
In reply to: inbox to new user automatic from adminHi! i tried but it isnt work.. i mean one message inside buddypress inbox like a user write to another.. is it?
function send_message_to_new_member( $user_id, $key, $user ) { if ( ! bp_is_active( 'messages' ) ) return; $recipients = array( $user_id ); $args = array( 'sender_id' => 1, 'thread_id' => false, 'recipients' => $recipients, 'subject' => 'Hello new user', 'content' => 'Welcome to the site', 'date_sent' => bp_core_current_time() ); $result = messages_new_message( $args ); } add_action( 'bp_core_activated_user', 'send_message_to_new_member', 3 );In reply to: Deletey my feed onlyThanks!! it s works!!
In reply to: how to combine activity tabs to onei found it!!
array( 'column' => 'hide_sitewide', 'value' => 1 ),In reply to: how to combine activity tabs to oneHi! Great post!
But i only need that the user only can be the activity of his friends and group and not to all the community.
Any suggest? i cant found a solution for it.
Thanks!!!In reply to: Rol in cover page of profileGreat @shanebp this works!! =)
these is a custom shortcode from my theme.In reply to: Rol in cover page of profileHi! i tried both options..but it didnt work.
This is the last version with your suggest, any idea?Thanks!!!!function devb_show_role_on_profile() { global $wp_roles; $user_id = bp_displayed_user_id(); $user = get_userdata($user_id); $roles = $user->roles; $profilebuddy = bp_is_user_profile() ; if ( !$profilebuddy ) return ''; if (!$roles ) return ''; if (!isset($wp_roles)) $wp_roles = new WP_Roles(); $named_roles = array(); foreach ($roles as $role) { $named_roles [] = $wp_roles->role_names[$role]; } if ($named_roles) return '<span class="user-role_activity">' . join(', ', $named_roles) . '</span>'; } add_filter('eo_title_content_html_below_title', 'devb_show_role_on_profile');In reply to: Rol in cover page of profileHi Venutio! I modified this
function devb_show_role_on_profile() { global $wp_roles; $user_id = bp_displayed_user_id(); $user = get_userdata($user_id); $roles = $user->roles; if (!$roles) return; if (!isset($wp_roles)) $wp_roles = new WP_Roles(); $named_roles = array(); foreach ($roles as $role) { $named_roles [] = $wp_roles->role_names[$role]; } if ($named_roles) return '<span class="user-role activity">' . join(', ', $named_roles) . '</span>'; } add_filter('eo_title_content_html_below_title', 'devb_show_role_on_profile');This works and show it in the cover page of the profile.
the problem is in the other pages like group or other page out of my profile (when i open it) this error appear in the cover page:
NOTICE: TRYING TO GET PROPERTY ‘ROLES’ OF NON-OBJECT INI tried with !null but it didnt work.
Any suggest?
Thanks!!In reply to: Rol in cover page of profileHello! Thank you! I would want that the role of user to be shown on the cover of the page.
or you want to say that it does and my theme does not interpret it? Can i put this in the header.php?In reply to: Menu mobileI tried with this and it dont works
global $bp;
$hmag_inbox_count = messages_get_unread_count();
echo ‘<span class=”mobile-menu-builder–links mobile-menu-builder–link-2 “>’.$hmag_inbox_count.'</span>’;
In reply to: Sub-menu orientationHello! In the theme that I have installed I can only use Legacy Buddypress, is there any code where I can modify it? or css?
Thank you very much for the response!