Search Results for 'private'
-
AuthorSearch Results
-
July 4, 2013 at 5:29 am #167540
In reply to: New Private Community Plugin For BP
bp-help
Participant@espellcaste
Thank you, and in future releases I will be using the comments I get to make adjustments but the thing is I will never be able to satisfy everyone’s requirements. You may want it that way but another user may like it the way it is, or want something totally different. I do appreciate the positive comment, I may bump it up to 5 unblocked pages but I plan to release a premium version so I am not certain yet but I do take everything into consideration. Thanks again! 🙂July 4, 2013 at 5:18 am #167539In reply to: New Private Community Plugin For BP
Renato Alves
Moderator@bphelp Yeah, I tested it before commenting… Two pages is very little… My recommendation is to change it to get private only buddypress related pages, like the Private Buddypress plugin does.
Either way, your plugin has great potential. Great work! =)
July 4, 2013 at 1:43 am #167527In reply to: New Private Community Plugin For BP
bp-help
Participant@espellcaste
There is a new version that is totally refactored on the repo.
https://wordpress.org/plugins/private-community-for-bp-lite/July 4, 2013 at 1:38 am #167525In reply to: New Private Community Plugin For BP
Renato Alves
ModeratorGood plugin, works like a charm.. But it would be good if we could set which pages to get private because as of now, it blocks the whole site from outside visitors except the home page.
July 1, 2013 at 5:12 pm #167364In reply to: Creating New Plugins
modemlooper
ModeratorLooks good. One more suggestion per WP standards. Place all add_actions right below it’s function unless the action is inside a function in that case you place that actions function below the function the add action is inside. It’s to keep the code easier to manage when you have really long file and scrolling up and down gets tedious.
/*** Make sure BuddyPress is loaded ********************************/ function private_community_for_bp_lite_bp_check() { if ( !class_exists( 'BuddyPress' ) ) { add_action( 'admin_notices', 'private_community_for_bp_lite_install_buddypress_notice' ); } } add_action('plugins_loaded', 'private_community_for_bp_lite_bp_check', 999); function private_community_for_bp_lite_install_buddypress_notice() { echo '<div id="message" class="error fade"><p style="line-height: 150%">'; _e('<strong>Private Community For BP Lite</strong></a> requires the BuddyPress plugin to work. Please <a href="https://buddypress.org/download">install BuddyPress</a> first, or <a href="plugins.php">deactivate Private Community For BP Lite</a>.'); echo '</p></div>'; } function private_community_for_bp_lite_init() { require( dirname( __FILE__ ) . '/private-community-for-bp-lite.php' ); } add_action( 'bp_include', 'private_community_for_bp_lite_init' );July 1, 2013 at 4:10 pm #167357In reply to: Compose Message and Private Message link problem
kizmark
Participanthow did you get their name?.. I’ve tried to click on the textbox but their names aren’t appearing where it should have automatically searched.
July 1, 2013 at 10:16 am #167337In reply to: show header item when user not login in buddypress
Henry
Member‘Add friend’ and ‘send private message’ aren’t supposed to display when a user is logged out. For example, how would BuddyPress know who the friend request came from? How would BP know who the private message came from?
July 1, 2013 at 10:11 am #167336In reply to: show header item when user not login in buddypress
designweb
Participant@bphelp Thank for your reply. my question is simple. i need to show member header item which include (add friend, send private message etc). which are not showing when user are not login. i need to remove login to see header item button condition . any way to do this.
July 1, 2013 at 9:43 am #167335In reply to: show header item when user not login in buddypress
bp-help
Participant@maan18
I am not certain I understand your requirement but you can try:
https://github.com/bphelp/private_community_for_bp_liteJune 30, 2013 at 6:52 pm #167291In reply to: Creating New Plugins
bp-help
Participant@modemlooper
This is what I am adding in the loader.php per your advice. I hope it looks good. I have tested it and I get the effect I want so thank you for the advice./*** Make sure BuddyPress is loaded ********************************/ function private_community_for_bp_lite_bp_check() { if ( !class_exists( 'BuddyPress' ) ) { add_action( 'admin_notices', 'private_community_for_bp_lite_install_buddypress_notice' ); } } function private_community_for_bp_lite_install_buddypress_notice() { echo '<div id="message" class="error fade"><p style="line-height: 150%">'; _e('<strong>Private Community For BP Lite</strong></a> requires the BuddyPress plugin to work. Please <a href="https://buddypress.org/download">install BuddyPress</a> first, or <a href="plugins.php">deactivate Private Community For BP Lite</a>.'); echo '</p></div>'; } function private_community_for_bp_lite_init() { require( dirname( __FILE__ ) . '/private-community-for-bp-lite.php' ); } add_action('plugins_loaded', 'private_community_for_bp_lite_bp_check', 999); add_action( 'bp_include', 'private_community_for_bp_lite_init' );June 30, 2013 at 5:16 pm #167280Henry
MemberIf you add this to your theme’s functions.php it will basically filter the entire button. You’ll then be free to modify whatever you need:
//filter group button function bp_change_group_button( $button ) { global $groups_template; if ( empty( $group ) ) $group =& $groups_template->group; if ( !is_user_logged_in() || bp_group_is_user_banned( $group ) ) return false; // Group creation was not completed or status is unknown if ( !$group->status ) return false; // Already a member if ( isset( $group->is_member ) && $group->is_member ) { // Stop sole admins from abandoning their group $group_admins = groups_get_group_admins( $group->id ); if ( 1 == count( $group_admins ) && $group_admins[0]->user_id == bp_loggedin_user_id() ) return false; $button = array( 'id' => 'leave_group', 'component' => 'groups', 'must_be_logged_in' => true, 'block_self' => false, 'wrapper_class' => 'group-button ' . $group->status, 'wrapper_id' => 'groupbutton-' . $group->id, 'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ), 'link_text' => __( 'Leave Group', 'buddypress' ), 'link_title' => __( 'Leave Group', 'buddypress' ), 'link_class' => 'group-button leave-group', ); // Not a member } else { // Show different buttons based on group status switch ( $group->status ) { case 'hidden' : return false; break; case 'public': $button = array( 'id' => 'join_group', 'component' => 'groups', 'must_be_logged_in' => true, 'block_self' => false, 'wrapper_class' => 'group-button ' . $group->status, 'wrapper_id' => 'groupbutton-' . $group->id, 'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ), 'link_text' => __( 'Join Group', 'buddypress' ), 'link_title' => __( 'Join Group', 'buddypress' ), 'link_class' => 'group-button join-group', ); break; case 'private' : // Member has not requested membership yet if ( !bp_group_has_requested_membership( $group ) ) { $button = array( 'id' => 'request_membership', 'component' => 'groups', 'must_be_logged_in' => true, 'block_self' => false, 'wrapper_class' => 'group-button ' . $group->status, 'wrapper_id' => 'groupbutton-' . $group->id, 'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ), 'link_text' => __( 'Request Membership', 'buddypress' ), 'link_title' => __( 'Request Membership', 'buddypress' ), 'link_class' => 'group-button request-membership', ); // Member has requested membership already } else { $button = array( 'id' => 'membership_requested', 'component' => 'groups', 'must_be_logged_in' => true, 'block_self' => false, 'wrapper_class' => 'group-button pending ' . $group->status, 'wrapper_id' => 'groupbutton-' . $group->id, 'link_href' => bp_get_group_permalink( $group ), 'link_text' => __( 'Request Sent', 'buddypress' ), 'link_title' => __( 'Request Sent', 'buddypress' ), 'link_class' => 'group-button pending membership-requested', ); } break; } } return $button; } add_filter( 'bp_get_group_join_button', 'bp_change_group_button' );June 29, 2013 at 10:02 pm #167243In reply to: BuddyPress Lke Plugin Updated
bp-help
Participant@darrenmeehan
Alright, then I will test it out and supply feedback. I have a plugin as well that has been submitted to the repo in the last 4 days that is yet to be approved but I could also use some others testing and supplying feedback. You can get it here: https://github.com/bphelp/private_community_for_bp_lite
Thanks!June 29, 2013 at 8:03 pm #167232In reply to: Creating New Plugins
bp-help
Participant@modemlooper
I have tested the plugin:
https://github.com/bphelp/private_community_for_bp_lite
As is it works as expected. If BuddyPress is installed and activated then the notice does not appear, however if you try installing the plugin without BuddyPress installed and activated then the notice appears. Can you test it so you will see what I mean because it simply works!June 29, 2013 at 4:27 pm #167211In reply to: Creating New Plugins
modemlooper
ModeratorActually just wrap notice check in if class because bp_include won’t run if bp isn’t active.
add_action( ‘bp_include’, ‘private_community_for_bp_lite_init’ );
function private_community_for_bp_lite_bp_check() { if ( !class_exists( 'BuddyPress' ) ) { add_action( 'admin_notices', 'private_community_for_bp_lite_install_buddypress_notice' ); } } add_action('plugins_loaded', 'private_community_for_bp_lite_bp_check', 999);June 29, 2013 at 7:39 am #167173In reply to: Creating New Plugins
bp-help
Participant@modemlooper
What extra file? Are you referring to the loader.php? If that is the case then the example you provided above makes no sense. Why would I require private-community-for-bp-lite.php? Are you suggesting I do away with the loader.php and add the example you provided in the main plugins private-community-for-bp-lite.php file as well as the required plugin header info or am I missing something? This is different than my usual workflow so it seems strange to me. I guess you can require a file from within a file but doesn’t it seem redundant? I really do not see what difference it makes. The plugin works as expected either way. So the hold up with the review panel is kinda tedious. Is this some new way of streamlining plugins for consistency or am I missing something that is required? To me it seems any advantages to this approach you offered are negligible and it apparently still has not made any difference in the approval status. Keep in mind this is the first plugin I have released to the WP repo because I am still new to adding the admin settings but what I have works so far and saves the settings to the database so I don’t see what the problem is! Thanks again!June 29, 2013 at 12:51 am #167159In reply to: Creating New Plugins
modemlooper
Moderator/*** Make sure BuddyPress is loaded ********************************/ if ( class_exists( 'BuddyPress' ) ) { add_action( 'bp_include', 'private_community_for_bp_lite_init' ); } else { add_action( 'admin_notices', 'private_community_for_bp_lite_install_buddypress_notice' ); } function private_community_for_bp_lite_init() { require( dirname( __FILE__ ) . '/private-community-for-bp-lite.php' ); } function private_community_for_bp_lite_install_buddypress_notice() { echo '<div id="message" class="error fade"><p style="line-height: 150%">'; _e('<strong>Private Community For BP Lite</strong></a> requires the BuddyPress plugin to work. Please <a href="https://buddypress.org/download">install BuddyPress</a> first, or <a href="plugins.php">deactivate Private Community For BP Lite</a>.'); echo '</p></div>'; }June 28, 2013 at 10:35 pm #167154In reply to: Private Message Button in Member List Loop
Henry
MemberI’m still scratching my head with this one. It must be my install playing games. In the end I got it working with
Anyway I thought why not just build the link and throw it directly in the friends template?
June 28, 2013 at 10:07 pm #167153In reply to: Creating New Plugins
bp-help
Participant@hnla @mercime @modemlooper
I agree there needs sorting out and consistency in how to check for BP etc.
I just got an email from Mika E one of the plugin reviewers and she saysBut … why?
BuddyPress has loader actions you can hook into: https://plugins.trac.wordpress.org/browser/buddypress/trunk/bp-core/bp-core-actions.php#L34
(I’m sitting next to JJJ right now and he pointed this out). So you don’t have to call loader.php, which is slower in the long run, and instead you hook into BP at the appropriate point.
The whole thing it looks like you’re doing is adding this action:
add_action( ‘admin_notices’, ‘private_community_for_bp_lite_install_buddypress_notice’ );
And you want to only add that notice IF BuddyPress is loaded, right? So why not the smaller check? If you do that, you won’t have to call bp-loader, because you’re hooking in after it’s loaded.
Why would I want my install buddypress notice to display if they have buddypress installed and the requirement for BP is met? That makes no sense. Right now it is setup to display only if someone using wordpress does not have BP installed and activated which is what it does and should do correct?
I don’t get it! Any of you guys have advice?
Thanks again!June 28, 2013 at 4:37 pm #167113In reply to: Compose Message and Private Message link problem
shanebp
ModeratorMessages send is okay.
Just sent to kizmark and oz_adminYou have to use the correct name: kiz mark will fail.
June 28, 2013 at 4:16 pm #167111In reply to: Private Message Button in Member List Loop
kizmark
Participant@Henry, Did you got it solved?
I’m having the same question.. I want to get the link to have a send private message button
June 27, 2013 at 6:24 pm #167046In reply to: [Resolved] Adjusting Privacy Settings
bp-help
Participant@synaptic
Still waiting for the plugin review before I move it over to the repo but until then you can get it here.
https://github.com/bphelp/private_community_for_bp_liteJune 27, 2013 at 5:17 pm #167042In reply to: Join a Private Group by Password?
modemlooper
ModeratorDon’t think that exists but sounds like a good plugin.
June 26, 2013 at 8:09 am #166905In reply to: Prevent from spam messages.
Henry
MemberHave you tried searching the WordPress plugin repository for something like ‘buddypress spam messages’?
A good plugin that will certainly resolve the issue is
https://wordpress.org/plugins/buddypress-private-message-for-friends-only/June 22, 2013 at 12:05 am #166572In reply to: Request membership button?
@mercime
Participant@agreenmail @agreenmail I was using the Twenty Twelve theme when I made the tutorial “How to Join a Private Group” around a month ago in this page https://codex.buddypress.org/user/buddypress-components-and-features/groups/how-to-join-a-private-group/
June 21, 2013 at 5:30 am #166526In reply to: New Private Community Plugin For BP
bp-help
Participant@profc
Hi, sorry so late for getting back to you. My ISP has been strange today. I just updated github Repo to 2.1 to allow up to 10 unblocked public pages. As before read the readme.txt and follow the commented instructions in private-community-for-bp.php
https://github.com/bphelp/private_community_for_bp -
AuthorSearch Results