Search Results for 'private'
-
AuthorSearch Results
-
November 30, 2016 at 11:25 am #261531
In reply to: Error 404 for non logged in users
peterspliid
ParticipantI had the same issue, and since I couldn’t find a solution, I had to make one myself. I thought I’d share.
Add the following to your functions file
function fix_private_message_login() { Global $bp; if (isset($bp->canonical_stack['component']) && $bp->canonical_stack['component'] == 'messages' && !is_user_logged_in()) { header('Location: ' . get_site_url() . '/wp-login.php?redirect_to=' . $_SERVER['REQUEST_URI']); die(); } } add_action('bp_do_404', 'fix_private_message_login');If you’re admin, you will most likely be redirected to the admin panel after login (instead of the message), however for all other users, it will redirect you to the message.
November 29, 2016 at 4:31 pm #261493In reply to: BP Perma Link structe went wrong
danbp
ParticipantHi @excel1,
such URL is odd and shouldn’t appear on a correctly install setup:
example.com/index.php/beispielbeitrag/In brief, your install WP at the site root which is: exemple.com
BP is a wp plugin and by the way, will also be at the root.And as wp is also a blog, that blog is also at
example.com(on a page defined in wp’s Read settings).This means that you can create a page for the blog and name it “besipielbeitrag” and asign this page to posts in WP settings. And make it private or whatever.
BP members or groups will be at
exemple.com/members/orexample.com/groups/and the users atexample.com/members/USERNAME/index.php is one of the files in a theme, but has nothing to do with BP pages or a dedicated blog page.
Also, if
emxampel.comandexample.comare 2 URL for the same site, or if you installed wp in emxampel.com and BP in example.com, BP won’t work.I would recomend you to read attentively the install guide from the begin.
November 25, 2016 at 11:53 pm #261336In reply to: General Usage Question
shanebp
ModeratorEach group has the option to have an associated forum.
Groups can be public, private or hidden.
There can also be site-wide or ‘general’ forums.Forums require the use of an additional plugin: bbPress.
I also want people who are workshop leaders to be able to see and post to any forum.
You make them members of all groups.
If you’d rather not, then you’ll need to write some custom code.November 19, 2016 at 2:16 pm #261183In reply to: How to make Buddypress support my Theme completely
Venutius
ModeratorFor option 1 it sounds like you want to set up a private network – not allowing non-logged in users to view profile details etc.
There’s a few options as to how to go about this, here’s a few:
http://buddyuser.com/category/plugin-review/private-network
For option 2, one option might be to display the registration form in a widget area on the front page, it’s possible to only display this widget for logged out users:
http://buddyuser.com/plugin-review-buddy-registration-widget
November 16, 2016 at 5:17 am #261060In reply to: Resctrict private messages
empressdianna
ParticipantThank you so much for this code! I’ve spent several hours trying to use other people’s code to hide the button and even tried to make my own but nothing worked until I found your code. I just switched it around because I only wanted one particular group to not be able to send messages while the rest can.
Posting in case someone in the future needs the opposite of your code:
add_filter( 'bp_get_send_message_button', function( $array ) { if ( pmpro_hasMembershipLevel('NAMEOFPMPLEVEL') ) { return ''; } else { return $array; } } );Also, I am looking for the same code as you to restrict non-paying users from sending private messages. I found a code that looks promising but unfortunately doesn’t work. It sees if the user is logged in and if not redirects them. Then if the person is logged in it checks their role but if they’re not that role they’re supposed to be redirected. But it just breaks my whole site. Any ideas?
function my_function() { if ( ! is_user_logged_in() && bp_is_current_component( 'messages' ) ) { // Current user is not logged in so don't let them see stuff. In this case, private messages wp_redirect( home_url() ); exit; } $flag = false; // Get current user info. $user = wp_get_current_user(); if ( ! in_array( 'student', $user->roles ) ) { // The current member is not a student. $flag = true; } if ( $flag && bp_is_current_component( 'messages' ) ) { The currently logged-in member is not a student and is trying to view private messaging. Let's redirect them away. wp_redirect( home_url() ); exit; } } add_action( 'init', 'my_function' );November 15, 2016 at 9:35 pm #261049In reply to: Hiding a forum from the forum list
shanebp
ModeratorHave you tried setting the forum to Private? Or Hidden?
Go to wp-admin > Forums > Forum Name > Edit > Visibilitybtw – these are the BuddyPress forums.
For support for bbPress you should use their forums.November 15, 2016 at 8:50 pm #261044In reply to: Hiding register link
Venutius
ModeratorThere’s a few plugins that do that but BP Registration Options allows you to set it as a private network, in BP Registration>>BP Registration
November 15, 2016 at 8:30 pm #261040In reply to: Hiding register link
joeaj111
ParticipantHow do I set it as private?
November 15, 2016 at 2:50 pm #261032In reply to: Group header file problems
manueldo
ParticipantI asked seventhqueen for help and they said the problem is from buddypress, they can not help.
When you have a private group and go to approve some member the warning is showed but after approving, when the page reload saying that the membership was approved, the warning dissapears, is the only page where the warning is not being showed.
November 15, 2016 at 2:32 pm #261031In reply to: Problem with message for all users
ico33
ParticipantUPDATE
No, there is not the problem of users deleted with the same name.
Now after having deactivated and reactivated buddypress, private messages are working. The only issue, at the moment, is that strange sentence. You send a message to a user named ABCDEFG
and after sending, it says
Conversation between Deleted User, Deleted User, ABCDEFG and you.
I can’t understand who are the deleted user, and how to fix the issue
November 15, 2016 at 2:12 pm #261027In reply to: Problem with message for all users
ico33
ParticipantI deactivated PRIVATE MESSAGE in Buddypress options, and then re-activated.
How strange… now I can send a message to a user named XXX
When I send the message, after that it appears below as “Conversation between you e DELETED USERS, DELETED USERS, XXXX”
Then if you refresh the page, the message count is 0, as it disappeared. My god, I just opened I new website, it worked till yesterday. It’s a great problem and I don’t think it’s simple to understand
November 15, 2016 at 1:58 pm #261026In reply to: Problem with message for all users
ico33
ParticipantDamn: also private messages now they don’t work. It says “message not sent, retry”.
WHY??
November 13, 2016 at 9:22 am #260966In reply to: Hiding register link
Venutius
ModeratorSet it as a private network?
November 10, 2016 at 4:37 pm #260909Topic: Resctrict private messages
in forum How-to & Troubleshootingtalvasconcelos
ParticipantHi guys, need a little help with some custom action. I need to restrict private messages to paying members only, or if the message (thread) comes first from a paying user.
I use Paid Membership Pro to manage the membership. I tried including this function in the theme’s function file:
function message_from_non_premium($message_info) { $user = get_current_user_id(); $premium = pmpro_hasMembershipLevel('1', $user); if(!$premium) { if(!thread_id) { unset( $message_info->recipients ); return false; } } } add_action('messages_message_before_save', 'message_from_non_premium');but when testing, users can still send private messages, even without the required membership to do so. I used info from the forum and the pmp website: https://www.paidmembershipspro.com/documentation/content-controls/require-membership-function/
November 8, 2016 at 9:09 pm #260857In reply to: Disable or Hide Private Message Button
maccast
ParticipantThis works and hides the button, but I’m curious. Can someone still send a private message to another user when they are “not” friends using URL manipulation or should the
_wpnoncestop that?November 7, 2016 at 9:21 am #260810In reply to: searchable directory and forum
Venutius
ModeratorIt could be, difficult to answer since you have not given a great deal of detail on what features you want. You can create multiple extra profile fields which are searchable, you can use a plugin like BP Profile Search to enable all sections of the profile to be searchable, and of course BP supports public and private forums.
November 4, 2016 at 4:56 am #260703L.A. Randle
ParticipantHi,
I switched to twenty-sixteen theme, and tried creating a private group;posted and I got the same results. Anything that I posted in the private group was posted on my personal profile. So it isn’t the theme…..November 3, 2016 at 2:47 pm #260675Venutius
ModeratorHave you tried deactivating all plugins and testing this? By default, activity in private groups stays within the group.
October 30, 2016 at 11:34 pm #260568In reply to: [Resolved] show buddypress private message button
danbp
Participanthi @masoud1111,
all i found was how to hide that button, or remove it.
but not show it only on some profilesYou just need to add some conditionnals.
Try this (in bp-custom.php) and give feed back if it works.
function bpex_private_message_button( $button ) { $user = bp_loggedin_user_id(); if ( is_super_admin() ) { return $button; } if ( !empty( $user->roles ) && is_array( $user->roles ) ) { if ( $role == 'subscriber' || $role == 'contributor' || $role == 'author' || $role == 'editor' ) { // hide button for these roles $button = ''; } } // allow the button to appear on admin's profile only if ( bp_is_active( 'xprofile' ) && bp_is_user() ) { $user_id = bp_displayed_user_id(); // assuming admin's ID is 1 if ( $user_id == 1 ) { return $button; } } } add_filter( 'bp_get_send_message_button', 'bpex_private_message_button', 1 , 1 );October 30, 2016 at 6:44 pm #260564In reply to: “Send Message” without reloading the page
Md Sadiqur Rahman
ParticipantI tried the trick but comes with some critical problems. https://buddypress.org/support/topic/subject-field-in-private-messages/
This problem’s been discussed for more than 4 years. (https://buddypress.org/support/topic/cant-send-a-message-without-a-subject/)
I thought it might have been solved. Anyway, thank you so much for your kind reply. Have a nice day 🙂
October 29, 2016 at 12:13 pm #260544In reply to: menu link member list
reivilob
ParticipantI absolutely agree with you but it make sense to allow access to the member list only for login users and to be able to easily place it in a menu, at the position you want and this is not possible now …
If you select it from the page list, you can not specify if user must be login to have it in a menu (genera menu or personal)
It is not available in the buddypress login section. Here are only user related informations, but no resources reserved for buddypress login users, like private pages or others private features …
I think the only way to process is to create (php) a menu menu for the login user, and create a menu that concatenate the basic menu with this one and display the result…
OB
October 27, 2016 at 5:54 pm #260457jenfilgate
Participant1. Which version of WordPress are you running? 4.6.1
2. Did you install WordPress as a directory or subdomain install? directory
3. If a directory install, is it in root or in a subdirectory? root
4. Did you upgrade from a previous version of WordPress? If so, from which version? yes 4.6.0
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. yes
6. Which version of BP are you running? 2.7.0
7. Did you upgraded from a previous version of BP? If so, from which version? 2.6.2
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
– AsynCRONous bbPress Subscriptions
– BackWPup
– BAW Login/Logout menu
– bbP private groups
– bbPress
– bbPress auto subscribe for new topics and replies
– BP Direct Menus
– BuddyPress
– BuddyPress for LearnDash
– BuddyPress NoCaptcha Register Box
– Cloudflare
– CodeStyling Localization
– Contact Form 7
– Content Aware Sidebars
– Custom Post Type Page Template
– Draw Attention
– Gallery Carousel Without JetPack
– Google XML Sitemaps
– LearnDash & BBPress Integration
– LearnDash – Gradebook
– LearnDash Content Cloner
– LearnDash LMS
– LearnDash Pro Panel
– LearnDash WooCommerce Integration
– Livemesh SiteOrigin Widgets
– MailChimp for WordPress
– Members page only for logged in users
– Page Builder by SiteOrigin
– Post Types Order
– Postman SMTP
– Prevent Content Theft Lite
– Revolution Slider
– Simple User Profile
– SiteOrigin Widgets Bundle
– Slideshow
– Slim Stat Analytics
– The Events Calendar
– Theme My Login
– Ultimate Posts Widget
– User Login Log
– W3 Total Cache
– Widget Importer & Exporter
– WooCommerce
– WooCommerce MailChimp
– WordPress Importer
– WP Better Emails
– WP Smush9. Are you using the standard WordPress theme or customized theme? customized
10. Which theme do you use ? Invent
11. Have you modified the core files in any way? no
12. Do you have any custom functions in bp-custom.php? no
13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? 2.5.10
14. Please provide a list of any errors in your server’s log files. none
15. Which company provides your hosting? InMotion Hosting
16. Is your server running Windows, or if Linux; Apache, nginx or something else? Apache
I did the tests you recommended and it was my W3 Total Cache plugin that was causing the issue. I will have to look into that to figure out what setting was messing it up. @Scaffies doesn’t have that plugin, so guess our issues were caused by different things.
October 26, 2016 at 4:27 pm #260398ico33
ParticipantNothing to do!
Error:
Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/mondolap/public_html/wp-content/plugins/bp-custom.php on line 3
This is the bp-custom code:
<? php
function buddydev_hide_members_directory_from_all_except_admin() {
if ( bp_is_members_directory() && ! is_super_admin() ) {
//should we add a message too?
//bp_core_add_message( ‘Private page.’, ‘error’ );
bp_core_redirect( site_url(‘/’) );
}
}
add_action( ‘bp_template_redirect’, ‘buddydev_hide_members_directory_from_all_except_admin’ );October 26, 2016 at 12:26 pm #260381danbp
ParticipantThe function is working correctly on my install.
Perhaps you have an issue with quotes, ie after copy/pasting the snippet from a topic where the code whas inserted without using the code button.
Which software do you use to publish bp-custom ?Copy/paste following and give a try:
function buddydev_hide_members_directory_from_all_except_admin() { if ( bp_is_members_directory() && ! is_super_admin() ) { //should we add a message too? //bp_core_add_message( 'Private page.', 'error' ); bp_core_redirect( site_url('/') ); } } add_action( 'bp_template_redirect', 'buddydev_hide_members_directory_from_all_except_admin' );October 26, 2016 at 9:55 am #260371ico33
ParticipantThanks! I did it with your suggest, so the file is
<? php function buddydev_hide_members_directory_from_all_except_admin() { if ( bp_is_members_directory() && ! is_super_admin() ) { //should we add a message too? //bp_core_add_message( 'Private page.', 'error' ); bp_core_redirect( site_url('/') ); } } add_action( 'bp_template_redirect', 'buddydev_hide_members_directory_from_all_except_admin' );
But every page of the website is now again a blank page with this error:Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/mondolap/public_html/wp-content/plugins/bp-custom.php on line 2
-
AuthorSearch Results