Search Results for 'private'
-
AuthorSearch Results
-
February 4, 2015 at 9:56 am #233545
In reply to: How to get user id of activity
ARCangelGIRL
ParticipantThank you for your answers! Looks like that I did not describe clear what is my problem, because what I tried from you suggestions it did not work.
There is the code that I’m using to generate “Give a point” button”
function one_star_points() { if ( ! function_exists( 'mycred' ) ) return; $current_id = get_current_user_id(); $profile_id = bp_displayed_user_id(); if ( $current_id == $profile_id ) return; echo '<div class="award-star-rating-img">'; echo do_shortcode( '[mycred_send to="' . $profile_id . '" amount="1" ref="tip" log="Tipping"]Give a point[/mycred_send]' ); echo '</div>'; } add_action( 'one_star_points_button', 'one_star_points' );To give points in user profile I used
$profile_id = bp_displayed_user_id();
To give points in forum I used$profile_user_id = bbp_get_reply_author_id();But i bumped into a problem when I want to give points to user in activity stream. I placed the button near every activity stream entry, so the user could give a point if the like what other user posted in activity stream. I used this code
$profile_video_id = bp_get_activity_user_id();There is no error or warning, but it’s not working, not giving points.Also I would like to give a point if I like private message answer that other user send me. I used this
$profile_message_id = bp_get_the_thread_message_sender_id() ;, but it says that “Missing the recipient for this shortcode.”.Looks like that in the last two cases (activity stream and messages) something is wrong with indicating user id.
Any recommendations on this? I have tried many functions, but still can’t grab user ID in those last two..February 4, 2015 at 9:31 am #233543In reply to: Modify the activity loop
deshmukh
Participant@henrywright I do not want to ‘add’ new activity. I just want that when one visits example.com/activity, it displays all profile updates (these are displayed even now), all updates to public groups (these, too, are displayed currently) AND all updates in private/ hidden groups where the concerned person is a member (this is NOT displayed currently.) How do I do that?
Also, I understood the second part re threads with new comments coming to top. But could you please elaborate a bit? Do I need to add some code to bp-custom.php or mytheme/function.php? In this specific case, what code should I add?
I am sorry if my question appear to be basic. I am a newbie — I like to guess, like many others coming to forums ๐
February 4, 2015 at 1:31 am #233533In reply to: How to make section of profile private?
screampuff
ParticipantAlso my site is private and can only be accessed when logged in, so I’m wondering if I can edit line line 47 in that same code to include the user check and simply display the “Invalid User ID specified.” If someone tries to view another user’s achievements list. That would be fine with me.
I’m still new to WP/BP and PHP in general if you haven’t noticed ๐
February 3, 2015 at 8:42 pm #233512In reply to: How to make section of profile private?
Henry Wright
ModeratorHi @screampuff
You can make that link private by doing something like this:
function screampuff_hide_achi() { // Bail if the current user is the displayed user. if ( bp_loggedin_user_id() == bp_displayed_user_id() ) return; // Bail if the current user is an admin. if ( current_user_can( 'manage_options' ) ) return; // Bail if not the achievements page. if ( bp_current_action() != 'achievements' ) return; // Redirect. wp_redirect( home_url() ); exit; } add_action( 'template_redirect', 'screampuff_hide_achi' );Please note I haven’t tested. Also, I’m assuming the current action is ‘achievements’. It may be something else in which case the function will need a minor tweak.
January 31, 2015 at 3:34 pm #233216skyrant
ParticipantJohn, Thank you for the pointers.
I gave the Role bp_moderate but that did not solve the issue. There must be some other check that needs to be passed for these menu items to show up.
Maybe a compromise could be found and some new functionality for the front end could be introduced that allows you to assign someone as Group Admin. I think i am not the only one that sees value in that Role especially in a big community where you have the need to moderate but do not want to give people access to the backend or higher Administrative privileges.
I also don’t quite understand why a Group admin could not be derived from one of the Forum Roles. A forum Moderator or Keymaster should be able to moderate all Forums incl. the private group ones and could subsequently also be allowed to manage all groups.
Just my 2 cents. let me know what you think.
January 26, 2015 at 11:07 pm #232996In reply to: avatar does not show
Alocin82
ParticipantHi,
i tried …and nothing change…
Any idea?
Thanks Nicolaif you think u can help me..we can private and let me know about your prices.
January 25, 2015 at 10:43 am #232909In reply to: How to assign a WP user role based on a registration
spiritix
ParticipantHello guys
What I used is:
– BuddyPress with combination of either bbP private groups plugin or Members plugin or Restrict Content Pro – bbPress plugin
– I created extended BuddyPress profile fields in registration
– I restricted access to the forum with one of above mentioned plugins
– I used my code mentioned in the beginningHow it looks like:
– my code works like a charm! once you choose User1 type in registration, it applies subscriber role, User2 subscriber as well, contributor for User3 – THIS WORKS.
– what does NOT work is restriction via plugins. Have no clue why. With members plugin od pivate groups, I set Forum1 to be accessable ONLY to User3 type of user, but User1 and User2 can access too! Why?! It has nothing to do with my code, after registration you can clearly check it in WP Users that the role has been assigned.If I knew hot to restrict access to the forum based on the WP Role, my code would be sufficient to solve this. Can you help with that part?
@youmin – are upi saying in BB 2.2 access to forum based on the WP role is fixed?January 22, 2015 at 5:08 am #232746In reply to: Search Activity/ Groups
deshmukh
Participant@style960 there are two problems with that plugin. One, it does not integrate with the filter drop-down box and two, it does not search contents of private groups.
Not searching in private groups is a more severe drawback.
Any suggestions on rectifying the problem? Any other solution?
January 14, 2015 at 1:44 am #231925ronia
Participantbut the tab to see all of their Likes is only available to them for privacy reasons.
In BP-buddyboss river, everyone can see what I have liked – so it is not private. Default BP does allow to see other users’ Favorits in the Favorit tab in Profile page – why does Buddyboss kills this? At least site admin should be able to turn it on or off.
Wall does not have every FB feature,
buddypress-activity-plus allows to post link, video etc quite nicely and is thus more user-friendly than the premium Wall plugin, imho. There is also a plugin by Brajesh that allow front-end blog posting via BP
Buddyboss is never meant to load every plugin but if a chosen few are bundled, it will be really good rather than re-inventing wheels at premium plugins, features of which are already available in the WP-BP repo. If users like us see thay they are well integrated into the Buddyboss look and feel there can be more sales of the Buddyboss theme actually.
We may make a spam solution at some point in time. This is a tricky one. Every solution you make only works for a bit, then the spammers figure out your tactic and update
Let wp com users at least post to pre-sales and/or free discussion forum. You can do this via jetpack
January 8, 2015 at 6:39 pm #231636In reply to: How to force login screen before accessing site?
Paul Bursnall
Participant@jruffellsmith I’d recommend this – https://wordpress.org/plugins/jonradio-private-site/
January 8, 2015 at 8:16 am #231606In reply to: deleting private messages
dainismichel
Participanta member sent me the same private message 4x within the same thread.
i’d like to remove all but one of the messages and respond.
it would be goofy to respond to the 4th message instance — because the message is exactly the same.
so, ideally, i would remove instance2, instance2, and instance4, leaving instance1 and the keeping the thread in tact.
January 7, 2015 at 7:41 pm #231597In reply to: deleting private messages
Henry Wright
ModeratorWhen in doubt, back up your database! You’ve probably heard that lots of times but in situations like this where the outcome is uncertain, it is definitely worth being prudent.
searched a bit and apparently, the word on the forum-street is: there is no way to delete PM except through the DB. is that still true?
Are you referring to an individual private message, or a whole thread? There should definitely be a way to delete an entire thread via the front-end. It will depend on your theme but by default, there should be a delete button available.
January 3, 2015 at 1:26 am #231416In reply to: Reliable hosting for BuddyPress installations?
djsteveb
Participant@sbraiden – I had similar 24 second page load times, and tried to get advice for enqueing, dergistering, and compacting the multiple and overlapping java and css all these plugins attached to buddypress are mixing in on top of the themes stuff.
Y Slow gives my BP site with basic plugins an “F” – WP professionals shrug it off – meh.
(more one all that here: http://premium.wpmudev.org/forums/topic/deregister-enque-compact-css-and-java-jquery-buddypress-load-time )
I have a sneaky suspicion however that my load times were an issue for me when logged in, and perhaps being logged in as an admin, I THINK that the (stupid) wpmudev dashboard plugin was slowing down my page load speed dramatically more than anything else. It was strange that after I complained of my long page loads, that 2 days later wpmudev had an update for their dashboard thing, and then my page load time went to like 3 seconds. – Coincidence, maybe, nothing definitive. – Everyone else said the pages loaded fine – so maybe it was just an admin thing – or maybe my ghostery blocking gravatar loads or something.
ANYHOW – in regards to hosting, I have a small buddypress site running fine on a shared server with amerinoc. I have one that is fairly busy running fine on a dedicated server at certified hosting.
I personally think that most important thing for a WP based site to perform well is blocking all the bad bots.
I have found that blocking all the naver and badu spiders (And most others) with a robots/txt file has decreased the sql over load (at peak times) on my servers by more than 80%.
I found that hosting a few wp sites on a shared server or dedicated could cause problems not just with spiders crawling pages too much too fast for indexing, but also all the attempting account creations / account brute force logins – even if they are blocked with something like sucuri or limit login attempts – every time they tried to login – they were using up server resources to load the login page, then hit the database to check credentials.
I also suggest using a pwd auth like explained here: http://support.hostgator.com/articles/specialized-help/technical/wordpress/wordpress-login-brute-force-attack
locking down the login with a double thing like that is fine for most WP installs, and a private family / friends BP site should be fine – when the bots can’t login through the first thing there is no need for wordpress to load a bunch of php / css files and pull from SQL a bunch of times just to give a bot a failed login – It becomes a problem for general open to the public buddypress comms I guess.
Now I set all my non-BP sites to use the double auth, I block all search engine bots aside from the top three selectively with robots.txt – and now just about any server can run fine with wp / bp – especially if some attention is paid to plugin overhead, wp-cacheing tools.
I have my fingers crossed the new bp-mediapress (sp? and Beta!) plugin thing will decrease the plugin overhead of rtmedia and offer a better alternative for pics and stuff.
Same random thoughts – I’m not an expert so take my 2 cents with a grain of salt or two..
December 21, 2014 at 6:53 pm #230878In reply to: Is a Private BuddyPress Community Possible?
bp-help
Participant@wadsworth4
I also have another plugin that I was told on the plugins forum that it worked on multisite called “Private BP Pages.” However I never actually tested it myself on BP with multisite. I just got that info from some of the users of the plugin. I used to offer it on the WordPress repo up to about 3 months ago but I have since removed it. But to answer your question “Yes” it is possible to create a members-only community with the latest BP and WP multisite by creating a plugin or using a function in bp-custom.php using hooks etc. That way your not hacking BP and if you update BP you won’t lose your changes.December 21, 2014 at 5:26 pm #230872In reply to: Is a Private BuddyPress Community Possible?
wadsworth4
ParticipantThanks for the feedback, bp-help. We didn’t use your plugin. There were others we used (especially BuddyPress Private Community) and some BP hacks.
The BP team and the plug developers all seem like great folks, and the community is friendly and active. Have spent a lot of time with vids of their presentations. Like the product, like the people, but the privacy of closed communities is critical. The question is still out there:
Is it actually possible to create a members-only community with BuddyPress 2.1.1. and multi-site WP without hacking BP?
December 20, 2014 at 1:57 am #230817In reply to: Is a Private BuddyPress Community Possible?
bp-help
Participant@wadsworth4
What plugins did you use for making BP multisite private? I offer some premium plugins to make BP private but I personally haven’t tested it with BP multisite because I don’t really use it. For my purposes my Private Community For BP plugin does everything I need it to do.December 17, 2014 at 6:20 pm #230718In reply to: [Resolved] Hide possibility to change 'Base' name
danbp
ParticipantWhen BP is installed and xProfile is activated, the original WP profile settings are not accessible to user.
The WP register process use only username, password and email and BuddyPress add by default a Name field as base for other extended profile fields.
In short this means that username and name fields can contain a same information(a name, a pseudonym, a first or/and a last name). The plugin you mention is best for a WP install where user had choosen first/last name as output on post, comments, etc Once BP is activated, this became a little different.
Now to the initial question.
The CSS trick is a very inelegant solution as it lets everybody knowing how BP works to surround this invisibility. You’re also loosing any flexibility if you want to show some fields privately for example.You can do this properly with a little snippet, as explained here:
Here’s an example which let you hide fields or fiels group to members, but not to site admin
function bpfr_hide_profile_field_group( $retval ) { if ( bp_is_active( 'xprofile' ) ) : // hide profile group/field to all except admin if ( !is_super_admin() ) { //exlude fields, separated by comma $retval['exclude_fields'] = '1'; //exlude groups, separated by comma $retval['exclude_groups'] = '1'; } return $retval; endif; } add_filter( 'bp_after_has_profile_parse_args', 'bpfr_hide_profile_field_group' );Add it to bp-custom.php or your child-theme functions.php
Of course you can also choose to show a field or group, but remove the possibility for the user to edit it later. Simply add more conditionnal to the function.
Here another example:
function bpfr_hide_profile_edit( $retval ) { // remove field from edit tab if( bp_is_user_profile_edit() ) { $retval['exclude_fields'] = '54'; // ID's separated by comma } // allow field on register page if ( bp_is_register_page() ) { $retval['include_fields'] = '54'; // ID's separated by comma } // hide the field on profile view tab if ( $data = bp_get_profile_field_data( 'field=54' ) ) : $retval['exclude_fields'] = '54'; // ID's separated by comma endif; return $retval; } add_filter( 'bp_after_has_profile_parse_args', 'bpfr_hide_profile_edit' );Hope to be clear.
December 3, 2014 at 8:32 pm #230122In reply to: [Resolved] Private Page for Members
bp-help
Participant@dee987
I offer a premium plugin that would work for your situation. If your interested you can contact me here: https://bphelpblog.wordpress.com/submit-comments-tips-or-tricks-or-job-inqueries/
The name of the plugin is Private Community For BP.December 2, 2014 at 3:40 am #229998In reply to: Deliver Custom Message via BuddyPress to new users
Henry Wright
ModeratorInstead of using
messages_new_message()to send a private message, you’d usebp_activity_post_update()to post an activity update. Note that the function accepts different arguments so you’ll need to amend those.See here for more info on the function.
November 29, 2014 at 3:28 am #229862In reply to: Our Member Posts Pages Not Showing in Buddypress
Brent Havill
ParticipantHi Henry
I went to ‘plugins’/buddypress/settings, and found the following (I note that “account settings” is not ticked – could this be it?)
I have bolded the ones that are ticked currently.Settings:
Component Description
Component Description
Extended Profiles Customize your community with fully editable profile fields that allow your users to describe themselves.
Account Settings Allow your users to modify their account and notification settings directly from within their profiles.
Friend Connections Let your users make connections so they can track the activity of others and focus on the people they care about the most.
Private Messaging Allow your users to talk to each other directly and in private. Not just limited to one-on-one discussions, messages can be sent between any number of members.
Activity Streams Global, personal, and group activity streams with threaded commenting, direct posting, favoriting, and @mentions, all with full RSS feed and email notification support.
Notifications Notify members of relevant activity with a toolbar bubble and/or via email, and allow them to customize their notification settings.
User Groups Groups allow your users to organize themselves into specific public, private or hidden sections with separate activity streams and member listings.
Site Tracking Record activity for new posts and comments from your site.
BuddyPress Core Itโs what makes time travel BuddyPress possible!
Community Members Everything in a BuddyPress community revolves around its members.November 27, 2014 at 4:47 am #229755In reply to: Comment to Updates not triggering notification
hypnoscribe
ParticipantDid you get this fix? I am having the same problem. I get email notifications. I get notifications for private messages. But nothing for any other activity.
Dominic
November 26, 2014 at 7:48 pm #229735In reply to: Send Private Message in HTML
elpix
ParticipantI’ve found by myself ๐
To send HTML private message, you must add :
[
edited – Please use the ‘code’ button when you post code.
Please note that removing that filter creates a major security risk.
It means user input WILL NOT BE SANITIZED.
So some very bad things can happen to your database.
]
remove_filter( 'messages_message_content_before_save', 'wp_filter_kses', 1);To the bp-custom.php file.
I hope it will helps !
November 25, 2014 at 3:23 pm #229545In reply to: BudyPress Activation ?
Eustache44
ParticipantHello Henrywright,
Thanks you for your response.
I tried what you advise me, nothing works ๐When I sent with WP-Mail-SMTP, it’s what I have. Maybe that can give you more informations:
The result was:
bool(true)
The full debugging output is shown below:object(PHPMailer)#5937 (69) { ["Version"]=> string(5) "5.2.7" ["Priority"]=> int(3) ["CharSet"]=> string(5) "UTF-8" ["ContentType"]=> string(10) "text/plain" ["Encoding"]=> string(4) "8bit" ["ErrorInfo"]=> string(0) "" ["From"]=> string(19) "club@ufpcyclisme.fr" ["FromName"]=>UFP Cyclisme" ["Sender"]=> string(0) "" ["ReturnPath"]=> string(0) "" ["Subject"]=> string(45) "WP Mail SMTP: Test mail to k44@gmail.com" ["Body"]=> string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=> string(0) "" ["Ical"]=> string(0) "" ["MIMEBody":protected]=> string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=> string(349) "Date: Tue, 25 Nov 2014 15:21:33 +0000 Return-Path: From: UFP Cyclisme Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit " ["mailHeader":protected]=> string(78) "To: k44@gmail.com Subject: WP Mail SMTP: Test mail to k44@gmail.com " ["WordWrap"]=> int(0) ["Mailer"]=> string(4) "mail" ["Sendmail"]=> string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=> bool(true) ["PluginDir"]=> string(0) "" ["ConfirmReadingTo"]=> string(0) "" ["Hostname"]=> string(0) "" ["MessageID"]=> string(0) "" ["MessageDate"]=> string(0) "" ["Host"]=> string(9) "localhost" ["Port"]=> int(25) ["Helo"]=> string(0) "" ["SMTPSecure"]=> string(0) "" ["SMTPAuth"]=> bool(false) ["Username"]=> string(0) "" ["Password"]=> string(0) "" ["AuthType"]=> string(0) "" ["Realm"]=> string(0) "" ["Workstation"]=> string(0) "" ["Timeout"]=> int(10) ["SMTPDebug"]=> bool(true) ["Debugoutput"]=> string(4) "echo" ["SMTPKeepAlive"]=> bool(false) ["SingleTo"]=> bool(false) ["SingleToArray"]=> array(0) { } ["do_verp"]=> bool(false) ["AllowEmpty"]=> bool(false) ["LE"]=> string(1) " " ["DKIM_selector"]=> string(0) "" ["DKIM_identity"]=> string(0) "" ["DKIM_passphrase"]=> string(0) "" ["DKIM_domain"]=> string(0) "" ["DKIM_private"]=> string(0) "" ["action_function"]=> string(0) "" ["XMailer"]=> string(0) "" ["smtp":protected]=> NULL ["to":protected]=> array(1) { [0]=> array(2) { [0]=> string(18) "kgodin44@gmail.com" [1]=> string(0) "" } } ["cc":protected]=> array(0) { } ["bcc":protected]=> array(0) { } ["ReplyTo":protected]=> array(0) { } ["all_recipients":protected]=> array(1) { ["k44@gmail.com"]=> bool(true) } ["attachment":protected]=> array(0) { } ["CustomHeader":protected]=> array(0) { } ["lastMessageID":protected]=> string(50) "" ["message_type":protected]=> string(5) "plain" ["boundary":protected]=> array(3) { [1]=> string(35) "b1_c85d5f49caeb8fcb01e07b2d5aa70e6f" [2]=> string(35) "b2_c85d5f49caeb8fcb01e07b2d5aa70e6f" [3]=> string(35) "b3_c85d5f49caeb8fcb01e07b2d5aa70e6f" } ["language":protected]=> array(0) { } ["error_count":protected]=> int(0) ["sign_cert_file":protected]=> string(0) "" ["sign_key_file":protected]=> string(0) "" ["sign_key_pass":protected]=> string(0) "" ["exceptions":protected]=> bool(true) }November 24, 2014 at 1:57 pm #229489Cartographer
ParticipantSorry, I couldn’t think this way.
I had in my mind that maybe a company would like to create a private community, so it would make sense to select โDiscourage search engines from indexing this siteโ but without losing the feature of updating the activity stream…
Well, still doesn’t make sense to me to consider it a feature but that’s just me ๐
November 11, 2014 at 8:34 pm #228970In reply to: members list shows when not logged in..
bp-help
Participant@gyfi
Or if you would like a quick and easy plugin solution I offer a couple of premium plugins for that. http://bphelpblog.wordpress.com/2014/09/27/private-bp-pages/
Submit Comments, Tips or Tricks, or Job Inqueries -
AuthorSearch Results