It s ok don’t worry, I suppose BuddyPress should have something about how to create registration, I gonna check again,,, thanks
Norman
Hi All,
I’ve going down a long path to try and merge buddypress and wordpress “edit profile” pages. Long story short, I’m trying to keep users out of the back end entirely if I can, but they need to be able to edit their wordpress profile somewhere, and logically, it ought to be with the other “edit profile” stuffs.
I’ve found a few free plugins to assist with this, “BuddyPress Xprofile Custom Fields Type” and “Profile Builder”
Profile builder allows me to put a shortcode anywhere in order to allow somebody to edit their profile in the front end. I need to insert this shortcode into a new “field group” in “xprofile custom fields” but I can’t just drop in a shortcode there, only editable fields are permitted – furthermore, if I put any editable fields into the “field group” then that group will have a save button as well as the one produced by my shortcode!
Any suggestions? Also willing to entertain a different suggestion altogether.
Thanks!
Something is missing certainly, all I have in the registration page are the fields for members,, with no choice for either models or members.
I have 2 field groups, Models and members, I ve added in each of the field groups diferent fields for name, country, city etc, different fields since I don,t want the same informations.
In member types, I have also Models and Members
In the registration page of WordPress, should I find a widget for the registration? Or Something else like that? Because I don’t see anything to add in the widget list. Thanks
Norman
Worpress: Version 4.5.3
BuddyPress: Version 2.6.1.1
Theme: Ombre Version: 1.3
There is nothing to do ! Private groups are even private. If user 1 is only member of group A and NOT of group B, user 1 can only act with group A forum.
Aside, question related to bbPress should be asked on bbPress forum, not on BuddyPress forum.
Normally profile field values are clickable and by doing this, each visitor can see a list of user who entered the same value. This is buit-in and intended to work on profiles.
Another approach would be to associate a member type to that value.
MT lets you create specific Member Directory.
Member Types
@sharmavishal thanks again for the response I was able to find some relevant info on the matter from these sources external to this site
Functions.php vs. Functionality Plugin
Separate theme display and functionality with a build-your-own custom functionality plugin
While not specific to Buddypress it is sufficient help me understand what should go into the decision making process.
Documentation for this is in bp-core-buddybar.php
Some working examples for navigation (since 2.6) here.
And here a working example for:
-
remove Delete Account on user profile settings tab
-
add a new sub-nav item for “Memberships” to Profile > Settings
1 )
function bpex_remove_profile_settings_sub_tab() {
// remove Delete Account from Profile Settings
bp_core_remove_subnav_item( BP_SETTINGS_SLUG, 'delete-account' );
}
add_action( 'bp_actions', 'bpex_remove_profile_settings_sub_tab' );
2 )
function bpex_add_sub_nav_to_profile_settings() {
global $bp;
$parent_slug = 'settings';
$child_slug = 'memberships';
//Add subnav item
bp_core_new_subnav_item( array(
'name' => __( 'My Memberships', 'textdomain' ),
'slug' => $child_slug,
'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/',
'parent_slug' => $parent_slug,
'screen_function' => 'bpex_profile_membership_screen'
) );
}
function bpex_profile_membership_screen() {
add_action( 'bp_template_content', 'bpex_profile_membership_screen_content' );
bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
}
function bpex_profile_membership_screen_content() {
do_action( 'my_membership_post' );
}
add_action( 'bp_setup_nav', 'bpex_add_sub_nav_to_profile_settings', 100 );
function bpex_membership_stuff() {
echo 'Some stuff here ?'; ?>
<h2>Lorem Ipsum for ever !</h2>
<p>Aenean suscipit nulla in justo. Suspendisse cursus rutrum augue. Nulla tincidunt tincidunt mi. Curabitur iaculis, lorem vel rhoncus faucibus, felis magna fermentum augue, et ultricies lacus lorem varius purus. Curabitur eu amet.</p>
<?php
}
add_action( 'my_membership_post', 'bpex_membership_stuff' );
Add this to bp-custom.php
yes first check with Customizr theme and then with buddypress media support forums
I want all my uploaded photos to be of the same aspect ratio and the image cropping function comes up whenever the user uploads a photo.
Is there any plugin that can do this trick ?
(Note: I have an activity feed especially for photos and i want to replicate it to look like Instagram)
Please help me!
Buddypress IS network activated.
I know there’s a way. I’ve had buddy press (on a clean install) work on a sub-site before.
Hmm. Those are notices (from Visual Composer, and a buddypress.php file in your theme, and from the WP_Widget_Moon_Phases widget), not fatal errors, so unlikely to be breaking the site, and unfortunately shed no light on what might be happening. Not sure.
On your multisite – is BuddyPress network activated?
p.s. even if this was working, all the existing BP configuration settings would live on Site ID 1. I think the BuddyPress content will come across, but you’d have to check/re-set any BuddyPress options.
Hello,
For some reason our buddypress profile information is displaying in the wrong order when you click ‘view’ on a profile. Can anyone please help?
This is the information fields we created in users>profile fields.
Example
should display on profile in this order section 1, section 2, section 3.
But displays as section 3, section 1, section 2. or some other order.
Thanks
Hi @danbp, thank you for replying. So based on my understanding of your reply. I should repost my query on the plugins support forums? Is that correct?
Regards,
shanehidir
Hi @shanehidir,
it’s not a BuddyPress issue. Ask on buddypres-media and/or theme support.
I found a solution that can help
<?php
// For Custom Notification
// Registering Custom Componet
function custom_filter_notifications_get_registered_components( $component_names = array() ) {
// Force $component_names to be an array
if ( ! is_array( $component_names ) ) {
$component_names = array();
}
// Add 'custom' component to registered components array
array_push( $component_names, 'custom' );
// Return component's with 'custom' appended
return $component_names;
}
add_filter( 'bp_notifications_get_registered_components', 'custom_filter_notifications_get_registered_components' );
// Formatting custom with respect to action
function bp_custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
//$item_id this your id which you can use to get your respected data
$data = get_my_values_custom_function($item_id); // this is custom function it depend on your needs and data
$custom_title = $data->title;
$custom_link = $data->link;
$custom_text = $data->text;
// New custom notifications
if ( 'custom_action' === $action ) {
// WordPress Toolbar
if ( 'string' === $format ) {
$return = apply_filters( 'custom_filter','Your custom notification for <a href="'.$custom_link.'">'.$custom_title.'</a> ', $custom_text, $custom_link );
// Deprecated BuddyBar
} else {
$return = apply_filters( 'custom_filter', array(
'text' => $custom_text,
'link' => $custom_link
), $custom_link, (int) $total_items, $custom_text, $custom_title );
}
return $return;
}
}
add_filter( 'bp_notifications_get_notifications_for_user', 'bp_custom_format_buddypress_notifications', 10, 5 );
// Adding custom Notification in DB
function bp_custom_notification( $item_id, $author_id ) {
if ( bp_is_active( 'notifications' ) ) { // if notification is active from admin panel
// if notification is active from admin panel bp_notifications_add_notification function to add notification into database
bp_notifications_add_notification( array(
'user_id' => $author_id, // User to whom notification has to be send
'item_id' => $item_id, // Id of thing you want to show it can be item_id or post or custom post or anything
'component_name' => 'custom', // component that we registered
'component_action' => 'custom_action', // Our Custom Action
'date_notified' => bp_core_current_time(), // current time
'is_new' => 1, // It say that is new notification
) );
}
}
add_action( 'custom_hooks', 'bp_custom_notification', 10, 2);
/**
* custom_hooks is action name which will be call by do_action() function
* bp_custom_notification your function name
* 10 is priority number
* 2 is number of parameter
*/
/****
* Now Where to call custom_hooks and how
*/
do_action('custom_hooks', $item_id, $author_id );
/****
* place it where you want to call this action and pass parameter
*/
Hi, I’m using WordPress 4.5.3–en_GB, with BuddyPress version 2.6.1.1, running on a Customizr child theme.
I wish to apologise if my following details are too long winded, I wish to include as much details as possible.
I have included a link in my side menu to view site activity.
Site-Wide Activity
It displays all recent site activity. New members, new group creations, new media uploaded, comments on photos etc.. All is displayed well except for the comment on photo part in the activity list.
When user posts an ‘update’ / photo in group, the thumbnail is there on the activity page, and when clicked it displays lightbox feature along with photo details and comments on the right. But when user has commented on the photo, the update displayed in the activity page is correct (user has commented on a Photo in the group xxx, but upon clicking the link, it shows only lots of words.
This is the link to the many words displayed instead of the same lightbox effect as stated above.
http://vacahost.info/groups/sg-24hr-halal-foodfinders/media/7/
Message displayed: Dedicated to shift workers that have to source for food in the wee hours of the night or morning. Group Admins HomeMembers 2Send InvitesMedia 4Manage All4Albums1Photos4Videos0Music0 20160616_232320 EditDelete Like Comment 0 people like this AyraAdelia 12 July 2016 Selling […]
Once again, apologies for the detailed description.
Kindly help me, did I enable or disable something by mistake?
Regards,
shanehidir
this is what I got:
Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). === Trace: #6 /nas/content/live/intothemythica/wp-content/plugins/revslider/includes/tinybox.class.php(49): is_user_logged_in() #7 [internal function]: RevSliderTinyBox::visual_composer_include(”) #8 /nas/content/live/intothemythica/wp-includes/plugin.php(525): call_user_func_array(Array, Array) #9 /nas/content/live/intothemythica/wp-settings.php(277): do_action(‘plugins_loaded’) #10 /nas/content/live/intothemythica/wp-config.php(154): require_once(‘/nas/content/li…’) #11 /nas/content/live/intothemythica/wp-load.php(37): require_once(‘/nas/content/li…’) #12 /nas/content/live/intothemythica/wp-blog-header.php(13): require_once(‘/nas/content/li…’) #13 /nas/content/live/intothemythica/index.php(17): require(‘/nas/content/li…’) #14 {main} === Please see Debugging in WordPress for more information. (This message wa in /nas/content/live/intothemythica/wp-includes/functions.php on line 3897
Notice: Constant BP_AVATAR_THUMB_WIDTH already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 26
Notice: Constant BP_AVATAR_THUMB_HEIGHT already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 27
Notice: Constant BP_AVATAR_FULL_WIDTH already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 28
Notice: Constant BP_AVATAR_FULL_HEIGHT already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 29
Notice: The called constructor method for WP_Widget in WP_Widget_Moon_Phases is deprecated since version 4.3.0! Use
__construct()
instead. in /nas/content/live/intothemythica/wp-includes/functions.php on line 3718
@pws2015
assuming your fields names are Address, City and Postal code, add this snippet to bp-custom.php and any logged-in user will see these fields on the Member Directory page underneath the already existing informations.
function bpex_address_on_directory( ) {
if( bp_is_active( 'xprofile' ) && is_user_logged_in() ) :
echo '<p>';
if ( $address = xprofile_get_field_data( 'Address', bp_get_member_user_id() ) ) :
echo $address.' ';
endif;
if ( $zipcode = xprofile_get_field_data( 'Postal code', bp_get_member_user_id() ) ) :
echo $zipcode .' ';
endif;
if ( $city = xprofile_get_field_data( 'City', bp_get_member_user_id() ) ) :
echo $city .' ';
endif;
echo '</p>';
endif;
}
add_filter ( 'bp_directory_members_item', 'bpex_address_on_directory' );
@slaffik I’m using the Buddypress Groups Extras plugin and recently found the Extend Your Groups extension on Github. I see this was originally a pro option but I cannot find any link to the pro version of BPGE.
Does the free version support search?
Thanks,
Paul
This is also not BuddyPress related.
Hi, I M working on a new version of my modeling website: http://test.dearlydreadeddolls.com/
Models register themselve in the front end. I want to give the opportunity to the fans to become members of the website
I’ve created the primary field group for the models registration and a second group named “Members-Fans”
In the menu registration, I see the form for themodels. How can I show the registration for the Fans? I tried to find the solution in many pages about BuddyPress, and here in the forum, but I can’t find what I need. Thanks
Daragott
Worpress: Version 4.5.3
BuddyPress: Version 2.6.1.1
Theme: Ombre Version: 1.3
Is there a way to have keyboard shortcuts for some of the tasks done in BuddyPress?
For instance, instead of clicking on the ‘Post Update’ on the Activity stream?
I have tried to disable the nesting reply using: ‘https://buddypress.trac.wordpress.org/ticket/1870#comment:2’
which worked.
However, the ‘Delete’ button is still causing a nesting problem so that the ‘Delete’ button from the previous reply is at the beginning of the next reply!
I would like to locate the delete button of each reply on the up-right corner of the reply box. Can anyone help me out here? 🙂
Thank you!