Search Results for 'buddypress'
-
AuthorSearch Results
-
June 16, 2016 at 8:23 pm #254710
navyspitfire
ParticipantEssentially my issue is I am trying to see a users profile/registration before I activate them because their registration process includes info/files that need to be vetted before activation. Now it appears there’s no way to do that under vanilla buddypress/manage signups menu, but per this thread I can see all that info under the BP registration plugin.
The issue becomes I need to activate/approve the user twice; once under manage signups, once under BP registration.
June 16, 2016 at 8:06 pm #254707In reply to: CV upload in Profile
aamirpsy
ParticipantThanks, i found helpful plugin for solution.
Plugin Name:
BuddyPress Xprofile Custom Fields Type
https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/June 16, 2016 at 8:02 pm #254706In reply to: colors on emails
r-a-y
KeymasterCheck out this codex page:
https://codex.buddypress.org/emails/#customize-headerJune 16, 2016 at 7:41 pm #254703danbp
ParticipantBy default these buttons are showing on the profile header.
The action location is defined in
/bp-templates/bp-legacy/buddypress/members/single/member-header.php:66
/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php:45When Profile Cover option is enabled (see bp settings), BP use the cove-image-header file.
If the option is disabled, he use member-header.In both case, these buttons need the displayed_user_id and the loggedin_user_id to work. This means you need to be at least in the member loop.
You want these buttons to appear elsewhere. OK. But where exactly ?
Don’t hesitate to provide a screenshot sketching the new place.June 16, 2016 at 7:14 pm #254701In reply to: CV upload in Profile
danbp
ParticipantAdd a a new field group to profiles, call it CV, add some fields and options and you’re done.
As you certainly want to get this part a bit apart of the other profile fields, you can also use this plugin who brings a nice tabbed profile page.
June 16, 2016 at 6:44 pm #254697In reply to: [Resolved] Editing code in bp-members-function file
danbp
ParticipantError message can be changed to whatever by using the language file (even if your site use en_Us or en_GB…).
June 16, 2016 at 6:38 pm #254695danbp
ParticipantI made some changes on BuddyPress theme
– if don’t show what you did, how could it be possible to help you ?
Revert back step by step to find what you did wrong.
June 16, 2016 at 6:32 pm #254694In reply to: Remove nav items and hide header
danbp
Participantyou can use a function within bp-custom.php
Something like:function bpfr_remove_nav_tabs() { bp_core_remove_nav_item( 'messages' ); // and so on for each item you want to remove } add_action( 'bp_setup_nav', 'bpfr_remove_nav_tabs', 15 );References
nav-item
http://hookr.io/plugins/buddypress/2.4.3/functions/bp_core_remove_nav_item/
sub-nav-itemFor the header thing, see template file and made your modification from within a child-theme.
– profile pic and username: bp-templates/bp-legacy/buddypress/members/single/member-header.php
– cover image: bp-templates/bp-legacy/buddypress/members/single/profile.phpJune 16, 2016 at 6:21 pm #254691In reply to: Adding another Sublink Under Members/Groups?
r-a-y
KeymasterGroup Extension API only works for groups. Andrew is asking about member navigation.
There is currently no member extension API.
Check out the
bp_core_new_nav_item()andbp_core_new_subnav_item()functions inbp-core/bp-core-buddybar.php:
https://buddypress.trac.wordpress.org/browser/tags/2.6.0-rc1/src/bp-core/bp-core-buddybar.php?marks=15-38,369-399#L15You’d want to register your navs on the
'bp_setup_nav'hook.eg.
function my_custom_bp_nav() { // Fill this in from the documentation. $nav_args = array(); // Add nav. bp_core_new_nav_item( $nav_args ); // If you need to add another nav, copy and paste the block above and paste here. } add_action( 'bp_setup_nav', 'my_custom_bp_nav' );Check out this older example on the codex as well:
https://codex.buddypress.org/developer/function-examples/core/bp_core_new_nav_item/Depending on your requirements, you could also use the BP Skeleton Component:
https://github.com/boonebgorges/buddypress-skeleton-componentHowever, that might be too much for what you need.
June 16, 2016 at 5:07 pm #254688r-a-y
KeymasterYou should only activate group extensions on the BuddyPress site whenever possible, not network-wide.
What happens when you activate the group extensions only on the BuddyPress site?
June 16, 2016 at 5:01 pm #254687sharmavishal
Participantif i deactivate BuddyPress Event Organiser By Christian Wach and wise chat the sub domain comes up
June 16, 2016 at 4:43 pm #254680sharmavishal
Participantrefreshed the page and strangely line number changed
Fatal error: Call to undefined function bp_get_current_group_id() in /wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php on line 488
June 16, 2016 at 4:41 pm #254677sharmavishal
Participant@danbp thanks..yeah read that…
added the code…line number changes..
Fatal error: Call to undefined function bp_get_current_group_id() in /wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php on line 486
June 16, 2016 at 4:30 pm #254672r-a-y
Keymaster@sharmavishal – Can you add the following in
wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php:if ( defined( 'WP_NETWORK_ADMIN' ) ) { echo get_called_class(); }Right before this:
// Usually this will work. $group_id = bp_get_current_group_id();This should print the names of the group extension classes that are being loaded right before the fatal error.
Can you copy and paste this info here?
Thanks!
June 16, 2016 at 4:12 pm #254667sharmavishal
ParticipantBuddyPress Groups Extras am using deactivated it…created a new site via add new same issue
June 16, 2016 at 4:04 pm #254662sharmavishal
Participant@r-a-y existing multisite site setup. bp activated network wide. added a new site via add new site in admin….the site added page comes up..but when u click on dashboard of new site or visit new site both dont come up….the error mentioned before….tested with rc1 bp also..following debug error with rc1:
Fatal error: Call to undefined function bp_get_current_group_id() in /wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php on line 484
June 16, 2016 at 3:46 pm #254647In reply to: Private messages isn’t working
r-a-y
KeymasterSjoerd – I think your issue should be fixed in BuddyPress 2.6.
BuddyPress 2.6 is going to be released next week, so if you can wait until then that would be great.
Or, you can test our release candidate version here:
BuddyPress 2.6.0 Release Candidate 1 now available for testing
June 16, 2016 at 3:44 pm #254646In reply to: Adding Sub-groups
r-a-y
Keymasterbut BP Group types is comming in BuddyPress 2.6..just wait for that if that would meet your requirements cause that would be in the core of bp…
For BuddyPress 2.6, group types will not allow you to sort groups into sub-groups. It’s only a developer feature for organizing groups into different types (think tagging posts) at the moment. We hope to expand this feature in future versions.
Check out the codex article for more info:
https://codex.buddypress.org/developer/group-typesJune 16, 2016 at 3:35 pm #254644In reply to: BuddyPress 2.6RC Embeds for activity
r-a-y
KeymasterWe do not show the preview of the URL in the actual activity stream. It shows up in the activity embed when you want to share your activity update on other sites.
Check out the codex article for more info:
https://codex.buddypress.org/activity-embedsYour suggestion is something I’ve been thinking about as well, but this will be changing the default behavior of oEmbed items since BP v1.5. We might think about this for a later version of BuddyPress.
June 16, 2016 at 2:23 pm #254641Masoud
Participant@shanebp
hi. tnx for answer and patience. got 5 more minutes? 🙂
i read and worked on what you said. and if i want to be honest, i could’t do anything special unfortunately.
now, i want to ask your opinion about this idea:
i’ve come up with the idea of hiding that field. (not email field), how?
with the use of if condition… (if it’s not empty show it. if it has data, hide it)!
——-
i’ve created a custom-meta with this code in theme functions:add_action( 'personal_options_update', 'my_save_extra_profile_fields' ); add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' ); function my_save_extra_profile_fields( $user_id ) { if ( !current_user_can( 'edit_user', $user_id ) ) return false; /* Copy and paste this line for additional fields. */ add_user_meta( $user_id, ‘person_relation’, 30318 ); update_usermeta( absint( $user_id ), 'person_relation', wp_kses_post( $_POST['person_relation'] ) ); update_user_meta( $user_id, 'person_relation', $_POST['person_relation'] ); }and used it in my buddypress signup form, to get data from users. ok?
after what you said, i went to edit.php (copy to my theme buddypress folder…)
and added these codes. but it seems that they do not recieve/send data at all.
it looks like they are empty!! 😐
after<?phpat the start,
i added :global $user, $user_id; $person_relation = get_the_author_meta( 'person_relation', $user->ID ); $user_id = get_current_user_id();and in the
<form>,
i added this piece of code (not working)
then copied and changed the “save changes button”.
so there is 2 buttons. one is for my-custom-meta, and the other is for buddypress form.
buddypress edit page
if user writes the name and click save. the box/button, all should gone. and i have to see the data in Users admin panel.
but nothing is getting save… and i dont know where am i doing it wrong<?php if( $person_relation == '' ): ?> <tr> <th><label for="person_relation">Invitor's Name</label></th> <td> <input type="text" name="person_relation" id="person_relation" value="<?php update_usermeta( $user_id, 'person_relation', $_POST['person_relation'] ); ?>" class="regular-text" /><br /> <span class="description">Please enter your invitor's name.</span> </td> </tr> <input type="hidden" id="userID" value="<?php echo $user_id ?>"/> <div class="submit"> <input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php esc_attr_e( 'Save Name', 'buddypress' ); ?> " /> </div> <input type="hidden" name="person_relation" id="person_relation" value="<?php update_usermeta( $user_id, 'person_relation', $_POST['person_relation'] ); ?>" /> <?php add_action( 'personal_options_update', 'my_save_extra_profile_fields' ); ?> <?php add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' ); ?> <?php do_action( 'xprofile_profile_field_data_updated'); ?> <?php endif; ?>so sorry for long description. tnx for help.
any suggestions do you have?June 16, 2016 at 1:16 pm #254636valuser
Participantsee
BuddyPress 2.6.0 Release Candidate 1…
perhaps best, if not already, to leave a ticket at
https://buddypress.trac.wordpress.org/newticket
hope you get it sorted.
June 16, 2016 at 12:37 pm #254630In reply to: @mention notification not working on blog posts
danbp
Participantnotification not working on blog posts.
It’s not implemented. See why on #4046
But you can eventually try the one or other plugin actually available on WP repository.
Particulary Mentionable, Email Mentioned or Mention comment’s Authors
June 16, 2016 at 12:15 pm #254627In reply to: Problem with Private message
danbp
ParticipantPlease don’t double post. I answered you on this topic.
June 16, 2016 at 12:11 pm #254626In reply to: Private messages isn’t working
danbp
ParticipantPrivate message
A user must have friends to send private messages or visit the profile of another user to send him a msg.
To get it to work, you need also to enable following options in BP settings:
– Friend Connections
– Private messaging
Additionnally, if you want to be notified by email
– NotificationsWhatever the option you activate, best practice is to control how it works on your config. To do that, use only WP, BP and one of Twenty’s theme before activating a third party theme and any other plugin.
This will ensure you that BP is fully working on a standart WP config.Mention
@mention use AJAX which can in some case, mostly with sophisticated themes or frameworks, lead to conflict. In that case, the culprit isn’t BP or WP, but the theme or a plugin whose code (generally) use a different standart as WP.
If you get issues with mention or messaging, activate wp_debug in wp-config and check your browser JS console to track down errors. The one or the other can give you precious debug information. You can also use a debug tool like Firebug.
June 16, 2016 at 10:29 am #254625In reply to: Adding Sub-groups
sharmavishal
Participantgo to pull requests
https://github.com/ddean4040/BP-Group-Hierarchy/pulls
exampe: check christianwach request…you would get the files he would have modified….
you can see the latest one would be for BuddyPress 2.6 which would release soon…
dont think so this would be merged in bp…the moderators would have better idea on this…but BP Group types is comming in BuddyPress 2.6..just wait for that if that would meet your requirements cause that would be in the core of bp…
-
AuthorSearch Results