Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 976 through 1,000 (of 3,450 total)
  • Author
    Search Results
  • #233545
    ARCangelGIRL
    Participant

    Thank 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..

    #233543
    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 ๐Ÿ™‚

    #233533
    screampuff
    Participant

    Also 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 ๐Ÿ˜‰

    #233512
    Henry Wright
    Moderator

    Hi @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.

    skyrant
    Participant

    John, 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.

    #232996

    In reply to: avatar does not show

    Alocin82
    Participant

    Hi,

    i tried …and nothing change…

    Any idea?
    Thanks Nicola

    if you think u can help me..we can private and let me know about your prices.

    #232909
    spiritix
    Participant

    Hello 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 beginning

    How 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?

    #232746
    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?

    #231925
    ronia
    Participant

    @buddyboss

    but 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

    #231636
    Paul Bursnall
    Participant
    #231606
    dainismichel
    Participant

    a 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.

    #231597
    Henry Wright
    Moderator

    @dainismichel

    When 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.

    #231416
    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..

    #230878
    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.

    #230872
    wadsworth4
    Participant

    Thanks 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?

    #230817
    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.

    #230718
    danbp
    Participant

    Hi @amic58, @tecca

    When 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:

    Using bp_parse_args() to filter BuddyPress template loops

    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.

    #230122
    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.

    #229998
    Henry Wright
    Moderator

    Instead of using messages_new_message() to send a private message, you’d use bp_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.

    #229862
    Brent Havill
    Participant

    Hi 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.

    #229755
    hypnoscribe
    Participant

    Did 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

    #229735
    elpix
    Participant

    I’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 !

    #229545

    In reply to: BudyPress Activation ?

    Eustache44
    Participant

    Hello 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)
    }
    Cartographer
    Participant

    Sorry, 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 ๐Ÿ™‚

    #228970
    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

Viewing 25 results - 976 through 1,000 (of 3,450 total)
Skip to toolbar