Search Results for 'private'
-
AuthorSearch Results
-
August 25, 2013 at 4:20 pm #170386
In reply to: Private Message Button Label Change
Henry
MemberYou could do it like that but each time you update BuddyPress you’ll lose the changes you’ve made to bp-messages-template.php. I’d try to avoid making changes to the plugin core.
August 25, 2013 at 4:18 pm #170385In reply to: Private Message Button Label Change
tayenewm
ParticipantThat process seems beyond me and very long (and I cannot find the /plugins/buddypress/bp-languages folder) I just want to change the “Private Message” button label. Can I access/change it quickly like this:
1. access buddypress/bp-messages/bp-messages-template.php
2. change the ‘link text’ to the new label name in this block of code?function bp_get_send_message_button() {
// Note: ‘bp_get_send_message_button’ is a legacy filter. Use
// ‘bp_get_send_message_button_args’ instead. See #4536
return apply_filters( ‘bp_get_send_message_button’,
bp_get_button( apply_filters( ‘bp_get_send_message_button_args’, array(
‘id’ => ‘private_message’,
‘component’ => ‘messages’,
‘must_be_logged_in’ => true,
‘block_self’ => true,
‘wrapper_id’ => ‘send-private-message’,
‘link_href’ => bp_get_send_private_message_link(),
‘link_title’ => __( ‘Send a private message to this user.’, ‘buddypress’ ),
‘link_text’ => __( ‘Private Message’, ‘buddypress’ ),
‘link_class’ => ‘send-message’,
) ) )August 25, 2013 at 4:15 pm #170384In reply to: Hide/restrict access to Private Messaging
Henry
Memberyou would add something like this to your theme’s functions.php
function bp_disable_messaging() { global $bp; if ( USER_TO_DISALLOW && bp_is_current_component('messages') ) { wp_redirect( home_url() ); exit(); } } add_action('wp','bp_disable_messaging');Note: USER_TO_DISALLOW would be your unpaid WooCommerce users. You would need to get whatever this was from WooCommerce as I’m not familiar with the plugin. Once you’ve added that bit in the code should work.
August 25, 2013 at 1:58 pm #170380In reply to: Private Message Button Label Change
Henry
MemberThis will help you. It shows you how to change most of the text labels and messages outputted by BuddyPress:
https://codex.buddypress.org/developer/customizing/customizing-labels-messages-and-urls/
August 23, 2013 at 3:30 pm #170297Peter Hardy-vanDoorn
ParticipantWill there ever be a resolution to this problem? BP 1.8 with bbPress 2.3.2 on WP 3.6 still sees forum posts in Private groups appearing in non-group members’ activity streams!
August 19, 2013 at 2:47 pm #170052shanebp
ModeratorYou’ll need to know the user_id for the teacher.
Then check the array for that id. If it’s found, remove it.
And tell the student why, something like:
bp_core_add_message( __( 'You cannot send a private message to the teacher.', 'buddypress' ), 'error' );August 19, 2013 at 2:26 pm #170051Artisantopia
Participantthank you @shanebp.
I only know enough about filters to get myself into trouble! I’ve just had a look at that one. Are you suggesting that I remove the teacher from the array so they don’t show in the list of members to send to? Is that how that works?
How would that work from the member/student perspective?
I really appreciate any guidance you can give me.
Thank you.
August 19, 2013 at 2:02 pm #170049shanebp
ModeratorDo you know how to use filters?
Take a look at function send() in
\buddypress\bp-messages\bp-messages-classes.phpIt has lots of filters.
I’d use the do_action_ref_arrayAugust 15, 2013 at 9:22 pm #169911Rachel Biel
ParticipantA related issue is how forum post links show up elsewhere. For example, we have a private group on facebook and I am directing them to the various forum topics that I am creating. All of the links show up as TAFA Forum Group. It gets really confusing if you post a lot of them. I would think this also has to do with how the permalinks and feeds show up. I don’t know if this is a buddypress or bbpress issue, but I hope it’s addressed in future updates. Social media is a part of our world now and buddypress needs to be able to function just as wordpress does if content can have viral potential.
August 12, 2013 at 8:36 am #169733Hugo Ashmore
ParticipantClosing thread.
@whitewolf1988 Please avoid name calling, even in jest. People have the right to monetize their work if they so wish, it’s a common plugin model to have free version and premium, why do think people should work for no return?August 12, 2013 at 12:02 am #169726whitewolf1988
Participant@bp-help WordPress is free and so’s buddypress. If you dont give me free then you suck!
August 11, 2013 at 9:33 pm #169722bp-help
Participant@whitewolf1988
Negative! I want a lot but I ain’t to old for my wants to hurt me! So please don’t ask this again!August 11, 2013 at 9:25 pm #169721whitewolf1988
Participant@bp-help I need for free! I want all for free please!
August 11, 2013 at 9:17 pm #169719bp-help
Participant@whitewolf1988
Negative! The only free version is on the WP repository.August 11, 2013 at 9:14 pm #169718whitewolf1988
Participant@bphelp Can I have for free please?
August 11, 2013 at 8:05 pm #169715bp-help
Participant@whitewolf1988
Updated to 3.6 and I also have a version that allows to unblock entire categories but I am thinking on monetizing it because hardly no one donates and I think the flexibility of unblocking an entire category is worth a couple bucks. Let me know if your interested.August 11, 2013 at 7:29 am #169696bp-help
Participant@whitewolf1988
Just updated Private Community For BP to 3.5 you can now unblock your posts as well as pages.August 9, 2013 at 6:26 pm #169644In reply to: Block This Page From Logged Out Users?
meg@info
Participanthi @tduschei, i suggest you use private-community-for-bp-lite plugin by @bp-help
August 9, 2013 at 12:32 pm #169630In reply to: DONATE TO SEE BP MESSAGES
shanebp
ModeratorWe should continue this conversation in private.
You can contact me via my profile info.August 9, 2013 at 1:15 am #169616In reply to: non-mod/admin of a group can't see contents
@mercime
Participant@rairai-ni What other plugins do you have activated in your site? Check if those are compatible with latest BP version. If not, deactivate those plugins and check if members of private group can see group’s contents.
August 7, 2013 at 9:05 pm #169545In reply to: Registration page not working
bp-help
Participant@grmadmin
It makes no logical since to view the registration if you already have the credentials to be logged in. That is default behavior. Instead of using another computer to check it why not just use a different browser on the same computer? Alternatively you could use the same browser by using firefox’s private window or chromes incognito window.August 4, 2013 at 5:15 pm #169334bp-help
Participant@whitewolf1988
There are other plugins out there that will accomplish this. This plugin is primarily for BP and bbPress pages. I may however integrate this in a future update.August 2, 2013 at 12:43 am #169235LogicWolf
ParticipantHi David,
Hoping I’ll be able to help. I’ve seen alot of questions on the topic of How To Change and Reorder BuddyPress Group tabs and not much great direction. Hopefully you won’t be saying that after my posts… What I’m really hoping is someone comes in with a simpler, more elegant solution 🙂
Were you able to control the standard tabs?
For the standard group tabs, you can control them directly like this:
if (isset($bp->groups->current_group->slug) && $bp->groups->current_group->slug == $bp->current_item) { $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['position'] = 10; $bp->bp_options_nav[$bp->groups->current_group->slug]['members']['position'] = 60; $bp->bp_options_nav[$bp->groups->current_group->slug]['notifications']['position'] = 110; }So the code to put in functions.php might look like this:
function whff_setup_nav() { if (isset($bp->groups->current_group->slug) && $bp->groups->current_group->slug == $bp->current_item) { $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['position'] = 10; $bp->bp_options_nav[$bp->groups->current_group->slug]['members']['position'] = 60; $bp->bp_options_nav[$bp->groups->current_group->slug]['notifications']['position'] = 110; } } add_action( 'bp_setup_nav', 'whff_setup_nav', 100000 );CUSTOM BUDDYPRESS GROUP TABS
Now, the non-standard tabs are the tricky ones. You can’t access them through $bp->bp_options_nav (at least I couldn’t figure out how to do this.)Nonstandard Group tabs through the $wp_filter global. A good starting point is to dump the $wp_filter variable and get a look at it’s guts. Add this code in functions.php:
global $wp_filter; foreach ( (array)$wp_filter as $key => $value ) { echo '<pre>'; echo '<strong>' . $key . ': </strong><br />'; print_r( $value ); echo '</pre>'; }$wp_filter is a bunch of nested arrays. Search through the output for your Group Tab Names (i.e. search for “Calendar”) and you will find something like this:
[00000000746c6153000000004e38ec1f_register] => Array ( [function] => Array ( [0] => BP_Group_Calendar_Extension Object ( [visibility] => private [enable_create_step] => [enable_nav_item] => 1 [enable_edit_item] => [name] => Calendar [slug] => calendar [admin_name] => [admin_slug] => [create_name] => [create_slug] => [create_step_position] => 81 [nav_item_position] => 40 [nav_item_name] => [display_hook] => groups_custom_group_boxes [template_file] => groups/single/plugins ) [1] => _register ) [accepted_args] => 1 )That’s your Group tab and all the hooks you need to change attributes (in this case it’s the tab that says “Calendar”.)
But… unfortunately you can’t use the [00000000746c6153000000004e38ec1f_register] as a handle — that string is random and changes every time. But, now you know the class name is BP_Group_Calendar_Extension Object and you can search for that in the $wp_filter array and make the changes.
Hope this gets you closer, let me know how you make out. Cheers David!
August 1, 2013 at 2:26 pm #169213In reply to: js loaded but AJAX doesn't work on custom bbp theme
kuching
ParticipantI did further tests.
If I try to disable bbpress only, I still don’t get it working; however I noticed that I can attempt to send private message replies – although it will throw an error after redirect and page reload.
If I try to disable all other plugins (including bbp) it still doesn’t work. Could it be my own theme? It’s hard to debug…Anyone ever ran across similar problems?
🙁
July 31, 2013 at 3:39 pm #169167In reply to: Removing members tab kills links
b1gft
ParticipantOn the default theme I just removed it from the menu bar. On the other theme which automatically shows pages, I made it private.
Same results both ways, stoped the links working. -
AuthorSearch Results