Search Results for 'buddypress'
-
AuthorSearch Results
-
September 20, 2016 at 4:13 pm #258940
danbp
ParticipantPlease, don’t double post ! You have already asked the same question here:
Closing this topic as duplicate.
September 20, 2016 at 11:49 am #258929In reply to: New user activation emails not sending. Help!
Stormn
ParticipantI am having the same issue. I need members to be able to sign up themselves with a confirmation email rather than me having to approve them manually. This problem also affects my ability to set up a commerce page. I am using BP 2.6.2 with the WP Spirit 01 Theme. I am not using any other Buddy Press plugins other than just BuddyPress.
September 19, 2016 at 4:15 pm #258916In reply to: Group Management Panel
giaschel
ParticipantHi, thank you very much for your reply!
Both links bring me to an error page that says I’m not authorized (although I’m super-admin). I can’t see any buddypress tab in my Dashboard, apart from Forums, Topics and Replies.
Hoping you can still help.
Thanks again.
September 19, 2016 at 12:56 pm #258908In reply to: User dashboard url
MissMad
ParticipantHi all!
Thanks for your answers. Actually, he /members/me/profile/dashboard works (I do have a dashboard that’s not the WordPress one but rather one I can edit with some of the info from Buddypress).
Great help!
September 19, 2016 at 5:07 am #258905In reply to: Adding xprofile fields to activity header
karmatiger
Participantdan that was extremely helpful 🙂 I’m so close now…
I’m using
function text_pre_timestamp() { $link = ''; if ( bp_activity_user_can_delete() ) { $url = bp_get_activity_delete_url(); $link = '<a href="' . $url . '" class="activity-list delete">' . __( 'Delete', 'buddypress' ) . '</a>'; $test = 'sample text '; } $var = ' %s ago ';// %s = timestamp if (!$link == '') $var = $var . '| ' . $test . $link; return $var; } add_filter( 'bp_core_time_since_ago_text', 'text_pre_timestamp' );and it works! Well… for some reason it’s putting the Delete link on a separate line, and I can’t figure out why. As you can see I’ve included test text, which it includes on the same line as the timestamp. If I put $link before the timestamp it displays inline; but if I put it after the timestamp it puts the href one line down. Is this a Buddypress thing?
The CSS used:
.activity-list .delete { display: inline; font-size:10px; padding: 0; margin: 0; }You can see by the display: inline I’m attempting to get the href to be on the same line as the rest of the text. have you any thoughts as to why it’s inserting a line break?
September 18, 2016 at 8:29 pm #258900danbp
ParticipantHere “the best guarded secret” finally revealed !
But it’s not a secret, is part of Codex and a multi handled topic subject on this forum.What we want to do: remove access possibility.
Where: on BuddyBar navigation menu (the one below the profile header).
Specifics: make the activity and forum tabs only visible to the logged in user.NOTE: The activity tab is shown by default when you visit a profile.
As we are going to hide/remove this tab to visitors, we need to define as first another default tab. If we won’t do that, the visitor will get a Page not found error. Which is not exactly the case here, the page exist but the visitor can’t access it.
Let’s define arbitrary Profile as the new default tab. You can of course define what ever other existing tab on your BuddyBar as default.
Add this line to bp-custom.php
define( 'BP_DEFAULT_COMPONENT','profile' );Now the mega “open secret” !
The folowing snippet contains almost any BP menu items you can have on a BuddyBar, and includes also the Forum item, in case you use bbPress.
You can remove or comment out those you don’t want to use.
Note also that it is only an example – you have to play with it to fit your need. But at least you have the right syntax to use.
Note also that some profile menu items are user only, such as message or notice. In other words, these are always private.This function goes preferably to bp-custom.php
function bpfr_hide_tabs() { global $bp; /** * class_exists() & bp_is_active are recommanded to avoid problems during updates * or when Component is deactivated */ if( class_exists( 'bbPress' ) || bp_is_active ( 'groups' ) ) : /** here we fix the conditions. * Are we on a profile page ? | is user site admin ? | is user logged in ? */ if ( bp_is_user() && !is_super_admin() && !is_user_logged_in() ) { /* and here we remove our stuff ! */ bp_core_remove_nav_item( 'activity' ); bp_core_remove_nav_item( 'friends' ); bp_core_remove_nav_item( 'groups' ); bp_core_remove_nav_item( 'forums' ); } endif; } add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );Some other hints for privacy
if you want to allow only the profile owner to view some tabs, replace
!is_user_logged_inby!bp_is_my_profile()– this scenario doesn’t need a check for logged in users as it is made bybp_is_my_profile.If you want only to make a profile private, read here.
If you want to remove a sub-nav item (ie. View on Profile), you use something like:
bp_core_remove_subnav_item( 'profile', 'view' );Many other possibilities for navigation are also available, including for groups. Several examples are given on Codex, here.
And if not enough, RTFM and search the forum ! 🙂
Have fun !
September 18, 2016 at 4:43 pm #258897In reply to: Adding xprofile fields to activity header
danbp
ParticipantThey are filters for timestamp.
To get some text before the ago part, try this:function text_pre_timestamp() { $var = 'custom text %s'; // %s = timestamp return $var; } add_filter( 'bp_core_time_since_ago_text', 'text_pre_timestamp' );September 18, 2016 at 3:31 pm #258895danbp
ParticipantWhat i want is to show view page content in the landing page of buddypress which is home.php . Is there any way i can achieve that?
bp-templates/bp-legacy/buddypress/members/single/home.php contains dynamic templates and shows by default the member activity template.
If you use the above code, you’ll get Resume as default content. This is the simpliest way to achieve what you want.
FYI: the Resume plugin is 4 years old and no more maintained. In 4 years, many things changed in xprofile component and what you actually can do with these fields is much more evoluted than 4 years ago. IMO, you wouldn’t even have to use it, as you can get a similar result directly with BuddyPress.
September 18, 2016 at 3:08 pm #258893danbp
Participantsee here:
September 18, 2016 at 5:59 am #258881In reply to: Not all widgets shows on front page
SunshineMagic
ParticipantI have this issue too. I can’t believe that no one has responded to you in 4 months!??
It’s clearly a buddypress issue too as it doesn’t work with the theme I am using nor does it work with the default wordpress theme and apparently while it used to work with your theme, after a reinstall, not anymore.
So it’s definitely a buddypress issue but no one responds in 4 months?? How on earth are we to get what we need working if the response time is more then 4 months??
Feeling concerned that buddypress was the wrong choice. This is my first issue and it’s a bad first experience! Unfortunately I put 2 months into building this site and I can’t go back now so it looks like I’m going to have broken pieces and likely have to dump buddypress and maybe even wordpress all together and build a custom PHP site asap, unless someone gets back to yoUs soon.
I hope they do cause I’ve been having fun w/ WP and BP but functionality clearly comes before fun…
September 18, 2016 at 2:06 am #258879shanebp
ModeratorThese forums are for BuddyPress.
Please contact me via the PhiloPress website.September 17, 2016 at 6:45 pm #258870In reply to: [Resolved] keep me logged in
danbp
ParticipantHi @kyla123,
if you use BuddyPress Login widget, you have a “Remember me” checkbox by default.
If you added an extra page just to let members log in (?), read this WP documentation and check your customization.
September 17, 2016 at 6:32 pm #258866danbp
ParticipantHi,
not sure i understand correctly, but if you want the resume page to show as default landing tab (in place of the user activity) when you are on a profile, you can use this:
define( 'BP_DEFAULT_COMPONENT', 'resume' );Add it to bp-custom.php
Codex reference.
September 17, 2016 at 10:53 am #258854Topic: How @mention all members
in forum How-to & TroubleshootingJulia_B
ParticipantIs there way to @mention all members?
This is something I’d like to be able to do on the bbpress forum on my buddypress site. I find forum mentions draw more site engagement than emailing all members, but filling a post with all members’ @ names detracts from the post content. So is there a function like @all or @everyone?
Thanks 🙂
September 17, 2016 at 4:58 am #258847themichaelglenn
ParticipantI’ve built a BuddyPress specific menu (using the BuddyPress Logged In links).
In which file, and what location, do I add the code @socialc provided?
September 17, 2016 at 3:53 am #258846In reply to: Adding xprofile fields to activity header
ckchaudhary
ParticipantThe filter you are looking for is bp_get_activity_action. So you’ll need to do something like:
function SN_member_header( $action ) { return $action . "success!"; } add_filter( 'bp_get_activity_action', 'SN_member_header');For a better understanding, you can check the code in function bp_get_activity_action in plugins/buddypress/bp-activity/bp-activity-template.php
September 16, 2016 at 10:03 pm #258842In reply to: Stop confirmation email from settings change email
knowitallninja
ParticipantSorry for all the updates, I have found the problem. In bp-settings-actions.php there is a line in the default handling of a password change that says this: $_POST[’email’] = $update_user->user_email;
By commenting that line out, it fixes the problem and my code works. It’s not ideal though as whenever I update buddypress it’ll change back. So if anyone knows a way around that then that would be great.
Otherwise I have a working script. For future reference it’s here:
function action_bp_core_general_settings_after_save() {
$useremail = $_POST[’email’];
$userpassword = $_POST[‘pwd’];
$current_user = wp_get_current_user();if(wp_check_password( $userpassword, $current_user->user_pass, $current_user->ID)) {
if ( $current_user->user_email != $useremail ) {
delete_user_meta( $current_user->ID, ‘pending_email_change’ );
$userdata = array(
‘ID’ => $current_user->ID,
‘user_login’ => $current_user->user_login,
‘user_email’ => $useremail
);
$result = wp_insert_user( $userdata );
}
}
};
add_action( ‘bp_core_general_settings_after_save’,’action_bp_core_general_settings_after_save’ );September 16, 2016 at 8:18 pm #258828In reply to: Activate Page
Venutius
ModeratorThat’s strange, and you went to settings/buddypress/pages and set the activate page to be the activate page in buddypress?
September 16, 2016 at 7:33 pm #258826In reply to: Activate Page
Venutius
ModeratorAh ok, its the same as for the register page, you create a blank page and link it in the Buddypress page settings.
September 16, 2016 at 5:35 pm #258822In reply to: Order posts
ckchaudhary
ParticipantHi,
BuddyPress has little to do with posts’ order. I can bet its something else. You need to provide more details..September 16, 2016 at 5:34 pm #258821In reply to: Order posts
Venutius
ModeratorI think you need to provide more information about this error, Buddypress does not normally work with posts so I would like to know why you think this is BP? If you unload all other plugins does the issue still appear?
September 16, 2016 at 5:13 pm #258816In reply to: Activate Page
Brajesh Singh
ParticipantHave you associated the newly created activate page in your BuddyPress settings? You can do it from Dashboard->Settings->BuddyPress->Pages screen.
If you have already done that then please do post the error message that you are recieving.
September 16, 2016 at 4:52 pm #258810In reply to: [Resolved] Redirect on Logout
danbp
ParticipantHi,
the warnings cames probably because the logout function is called twice.
Check your theme’s functions.php or see for a specific setting.Can you test the standard behave with a Twenty theme and BP, and all other plugins deactivated.
Remove also the custom code while testing.If still an issue, consider this plugin. All is in the title, but it redirects to homepage on logout.
September 16, 2016 at 4:21 pm #258802In reply to: Buddypress login – logout – lost password
Venutius
ModeratorThis one should be the answer:
https://buddypress.org/support/topic/error-404-page-not-found-3/
However it did not work for me, I’ve raised a thread about it here:
https://buddypress.org/support/topic/redirect-on-logout/
It may work for you, since it worked for the other chap
September 16, 2016 at 4:02 pm #258799In reply to: Buddypress login – logout – lost password
Venutius
ModeratorJust found this, will give it a try.
https://buddypress.org/support/topic/logout-redirect-from-wp-admin-bar-may-be-useful/
-
AuthorSearch Results