Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 1,626 through 1,650 (of 3,450 total)
  • Author
    Search Results
  • #153173
    Brajesh Singh
    Participant

    Hi James, Here is an example code

    http://pastebin.com/WA2rBjvH

    You are right about the url part 🙂

    #153171
    James
    Participant

    thanks Brajesh, recently wanted to write about it.

    As I understand, we should use this function as a href, but how to write the parameters in, since for some reason I cannot get it working. thanks!

    #153170
    Brajesh Singh
    Participant

    Ok, forum does not allow me to post the html code.

    After including the above code, you can use this function bp_custom_get_send_private_message_link to get the appropriate url.

    #153168
    Brajesh Singh
    Participant

    Here is a simple solution. You will need to add following lines to your theme’s functions.php or bp-custom.php

    `

    /**
    *
    * @param int $to_id the user id to whom we plan to send the message
    * @param string $subject : if you want to specifuy a predefined subject
    * @param string $message: any predefined message
    * @return string: link for sending message
    */
    function bp_custom_get_send_private_message_link($to_id,$subject=false,$message=false) {

    //if user is not logged, do not prepare the link
    if ( !is_user_logged_in() )
    return false;

    $compose_url=bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/compose/?’;
    if($to_id)
    $compose_url.=(‘r=’ . bp_core_get_username( $to_id ));
    if($subject)
    $compose_url.=(‘&subject=’.$subject);
    if($message)
    $compose_url.=(“&content=”.$message);

    return wp_nonce_url( $compose_url ) ;
    }

    //for auto populating message content
    add_filter(‘bp_get_messages_content_value’,’bp_custom_message_content_value’);
    function bp_custom_message_content_value($content){

    if(!empty ($content))
    return $content;
    $content=$_REQUEST[‘content’];

    return $content;
    }

    //for auto populating message subject

    add_filter(‘bp_get_messages_subject_value’,’bp_custom_get_messages_subject_value’);

    function bp_custom_get_messages_subject_value($subject){

    if(!empty($subject))
    return $subject;

    $subject=$_REQUEST[‘subject’];

    return $subject;

    }

    `

    and then, you can use following in your code to send the user with id:2 a message as

    `
    <a href="”>Send Message to xyz

    `

    hope that helps.

    #153158
    Renato Alves
    Moderator

    Hi @James,

     

    I’m also looking for a solution like this and haven’t found so far. I believe I’ll have to hard code it. If I come to a solution I’ll post here!

    #152880
    @mercime
    Participant

    thousands of private social networks within my site

    Sure. Not everything’s out of the box so one can only be limited by skillsets and server.

    #152779
    Florence
    Participant

    Ahh, I wanted to achieve something like this as well. Like you, I’m using S2members (which I absolutely love – lets you hide/text menu items, text, posts, pages, downloadable content ect based on user role).

    This is what I’ve done: For the registration process I’m using BAW invitation codes. Users need to register for a health course (using Event Espresso), and in the confirmation email they recieve an invitation code they can use to log in and access course materials.

    #152755
    k.gray
    Participant

    I am looking to do the same thing and installed WP-Members. I find that it allows me to moderate members signing up which is great, but even though I have it set to block all pages and posts from non-members they are still showing. I’m using the BP default theme.

    Anyone have suggestions?

    Here is the site – http://forums.saintelia.com/

    #152654
    @mercime
    Participant

    Given that you’re using a premium theme with customized forum templates, it would be guesswork . to help you with the styles aside from the fact that the site is private. Since you have access to the site, I suggest using Chrome where you can right click on the Topic tile and Inspect Element. The developer console would show up and highlight what you need to change.

    #152647
    PurnimaGore
    Participant

    Hi. They are group member forums so don’t have a public link to them as they within private members pages. I have uploaded the images to flickr though http://flic.kr/ps/Lvkkb and hopefully that will give you an idea. Thanks for having a look

    danbpfr
    Participant

    you may found these kind of information in the language pot file

    #: bp-messages/bp-messages-template.php:657
    msgid “Private Message”

    #: bp-activity/bp-activity-template.php:2430
    msgid “Public Message”

    etc

     

    I mean file which says: Mention this user in a new public message, this will send the user a notification to get their attention.

    Ok @hnla thanks, I mean where it says :`<a href="” title=””>`

    Not the functions. I have checked member-header.php but not there.

    what am trying to do is list mention and private message under Add friend button as li .

    I know how to do it but dont know where to locate the file anymore.

    Regards

    Hugo Ashmore
    Participant

    functions.php ?

    #152397
    Mitesh Patel
    Participant

    I finally yielded, and messed up (so to speak) the function messages_screen_compose, adding conditional custom redirects with if else statements like…

    `
    if(wp_get_referer()){//to check origin of form submission, returns false for self submission
    bp_core_redirect(wp_get_referer()); //custom redirect, as this isn’t self submission
    } else {
    bp_core_redirect( bp_loggedin_user_domain() . $bp->messages->slug . ‘/view/’ . $thread_id . ‘/’ );// this was originally there, for submission from original php file
    }
    `

    As I think the issue is ‘resolved’, for time being, I should document the solution here.

    I intended to use buddypress private messaging as feedback form, with various feedback options like Question, Suggestion, Feedback etc. Thus, I created corresponding users (Question, Suggestion, Feedback etc.) who will receive the feedback. The idea is super-elegant from my purpose, as not only the submissions be automatically segregated and stored in database, but responding to the feedbacks would be as simple as responding to PM, all without the hassle of email, spam etc. An added benifit is, users can draw attention to various issues site wide by @mension, like :@question What about this?”

    So I tried to imitate the buddypress compose form, and I succeeded, except the redirect problem as described here.
    https://buddypress.org/support/topic/create-a-feedback-form-using-buddypress-messaging-functionality/

    What I was doing was, creating a duplicate form, but calling the original form action (fooling buddypress 🙂 ). I did so, because, I don’t even know how to submit the copy-pasted form I created, and get the same thing done as the original compose.php was doing when it called itself (self submission).

    Anyways, this hack with unforgivable modifications in buddypress files works beautifully. I feel I’ll have to go through the plugin route finally though, as this is make-shift arrangement (but will work as long as I don’t update the buddypress plugin 🙂 ).

    Thanks shane for your help.

    #152215

    @fordp The @DCraft11 account looks like it has all the proper capabilities. Are you able to log into Freenode server in IRC and join #buddypress-dev to privately message more information back and forth?

    myladeybugg
    Participant

    @modemlooper any news on this? I just switched one of my groups from private to public and lost all of its content.

    #152156
    modemlooper
    Moderator

    This field is required. If you don’t want a user to have to enter something then you have to hide it and fill it in for them.

    #152154
    Roman
    Participant

    Thanks for the advice but this method completely remove this field from the message form.
    I would like to make this field not required to fill.
    Is it possible to do?

    #152151
    modemlooper
    Moderator

    I did not test this but go into the theme folder members/single/messages/compose.php

    find this:

    `<input type=”text” name=”subject” id=”subject” value=”<?php bp_messages_subject_value(); ?>” />`

    change it to this:

    `<input type=”hidden” name=”subject” id=”subject” value=”private message” />`

    #152052

    In reply to: Codex Posting

    danbpfr
    Participant

    @johnjamesjacoby, @modemlooper,

    one of you decided finally to erase my contributions to the codex. Well ! I invited you to do so if necessary.
    But a private message explaining me your decision would have been appreciated, but it isn’t the case.

    Also, who is responsible of the Codex ? Didn’t know that Ryan is the codex chief editor !

    This tread is also unhelpfull at least.
    The tips & tricks page is still nested with 1 tuto page, despite the tech explanation above.

    And with this on the customize page, i’m very doubtfull too
    Customizing

    This page has no content of its own, but contains some sub-pages listed in the sidebar.
    (between other nested pages “tips & tricks”…)

    Please edit this page and add something helpful! (and probably nested pages too, no ?)

    I thought I was right by adding my tips, even if not on the same page as “Tips – Tricks – Code Snippets” by misunderstanding the existing nesting which is not to use finally ! Sorry for my ignorance of this detail.

    Support users are not code snippets, but real humans. Your method and reaction are simply unbelievable !
    Be sure i’m discouraged and that i don’t add anything to the codex in the 100 next years. 🙁

    Dan

    #152033
    omgbud
    Participant

    Oh is ok 🙂 thanks for help anyway, I just want to check whether the profile has any privacy setting and than display a lock pic to show other this is a private profile.

    #151831
    wpmirwin
    Participant

    Hi there… I’ve racked my brain over a very similar issue. I’m wondering if you had any luck finding the answer?

    This is what I’m seeing.

    1). From what I can tell (I used shared hosting), the Centos Linux box that hosts my site has the date/time set correctly.

    I asked them to issue the date command and send the result. What they provided was the result when logging into the box via SSH. i.e. “Sun Jan 27 10:45:24 CST 2013”. The server is hosted somewhere in the CST timezone, and the date/time was correct at the time this info was sent.

    2). I am in the EST time zone. My WP general/settings/timezone is set to Montreal.

    3). When I publish a WP Post (for example) everything is fine. The “published on” date/time is correct (in local / EST / Montreal time). In fact, everything to do with straight WP date/time related handling is fine. BuddyPress is a different story!

    4). BuddyPress: When someone sends a private message, the time on the received email is one hour behind. I assume this can be explained by the CST server time and the EST timezone I’ve chosen in WP Settings/General/timezone. I can live with this – Or could change the timezone to the server timezone (chicago / CST).

    This is where it gets interesting.

    5). BuddyPress: When somebody creates or adds to a topic in BuddyPress Group Forum, the date/time is also correct. i.e. “username said n seconds ago” is 1 second after the update is made. OK.. But, the corresponding Activity entry shows 5 hours and 1 second ago. i.e. 5 hours in the past!

    Looking at the Activity Table record via phpMyAdmin, the date is stored in GMT (i.e. + 5 hours as I am in EST).

    Looking at the Topics Table record via phpyMyAdmin, the date is exactly the same – i.e. stored in GMT.

    So, when the forum topic is displayed, it’s doing a proper conversion from GMT to local time (-5), but the Activity Stream page seems to be doing the conversion twice, and I end up with -10 hours from the stored time in GMT.

    6). BuddyPress: Of course, when somebody just posts something to the activity stream, it always shows up as “username said 5 hours and n seconds ago” also. i.e. a -10 conversion from the stored db time which is in GMT.

    7). BuddyPress: Finally, when looking at the Activity via WP Admin, the date/time on each entry is straight out of the DB – i.e. GMT time – No local time conversion at all!

    So in Summary:

    Server setting for date/time is ok
    Straight WP handling of date/time is ok
    date/time is stored at the DB in GMT in all cases
    date/time is converted properly based on timezone for the BuddyPress Group forum topic itself (-5)
    date/time seems to be converted twice (-10) for the corresponding BuddyPress Activity Stream record as seen by the end user
    date/time is not converted at all when viewed via WP Admin. i.e. it is straight GMT

    If anybody can make sense of what’s going on, I’d really appreciate it! I’ve looked through everything I can find and just cant figure this out.

    Best regards,
    Mike.

    NOTE: Maybe it’s not good that I added to this post? It’s a similar problem, but not exactly the same. I can create a new post if that’s best.

    ngoegan
    Participant

    Okay, the problem is back.

    When I activated WP Super Cache it showed up again.

    On Dashboard, “Incoming Links” and “Plugins” both show this error: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 491520 bytes) in /home/cgoegan/public_html/livingcm.org/wp-includes/SimplePie/Misc.php on line 843

    I tested the cache in WP Super Cache and it said

    The pages do not match! Timestamps differ or were not found!

    Things you can do:

    1. Load your homepage in a logged out browser, check the timestamp at the end of the html source. Load the page again and compare the timestamp. Caching is working if the timestamps match.

    2. Enable logging on the Debug page here. That should help you track down the problem.

    3. You should check Page 1 and Page 2 above for errors. Your local server configuration may not allow your website to access itself.

    So I tried that and they are different. One is:

    http://livingcm.org/wp-login.php?redirect_to=/

    and the other is:

    http://livingcm.org/

    The reason is because I have a private site and unregistered users are directed to a different page than the home page.

    Any idea how to fix this without removing the privacy that I need for the site. Does this occur with everyone who has a different registration page and home page?

     

    #151804

    In reply to: Plugin: BP FriendPress

    Andres Felipe
    Participant

    If BP FriendPress does this

    BP FriendPress is a BuddyPress plugin by Shawn38 that makes BuddyPress specific pages private so logged out users cannot view BP pages making more of a private community.

    I think (but it hasn’t been updated for long time) https://wordpress.org/extend/plugins/private-buddypress/ this could work.

    Now I’m using it as it and it’s working for me.

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