Search Results for 'private'
-
AuthorSearch Results
-
August 18, 2010 at 9:40 pm #89600
Mack
ParticipantThanks a lot, my function now works. Maybe I made sth wrong with these parameters. Messages now appear in database, the problem is that PMs are enabled in buddypress settings. I guess I will have to implement inbox myself, as it would be faster

Thanks for your responds again
.Cheers,
MaciejAugust 18, 2010 at 7:29 pm #89587In reply to: Make Private Groups Visible
r-a-y
KeymasterWhat’s the point of having a group private then?
Just make everything public!
August 18, 2010 at 6:38 pm #89569r-a-y
KeymasterJust looking over the parameters again, it appears that the “recipients” parameter should be an array.
So try changing that.PMs and other BP components can be enabled/disabled from the “BuddyPress > Component Setup” page in the WP admin dashboard.
August 18, 2010 at 6:24 pm #89568Mack
ParticipantAt first I tried to send arguments the way you suggested in last post, but it didn’t work, so I tried to do it in url-style. None of these worked so far.
Can you tell me how to enable PMs?
Thanks for replies!
Cheers,
MaciejAugust 18, 2010 at 6:21 pm #89567In reply to: Make Private Groups Visible
Pisanojm
ParticipantRight, I was saying look at the code to see if you can replicate what you want.
August 18, 2010 at 5:54 pm #89561r-a-y
KeymasterI can see potential problems with that $args variable you have setup.
Try setting up the arguments as an array.$args = array( 'recipients' => $user_id, 'sender_id' => 11, 'subject' => $title, 'content' => $message );If PMs are disabled, the code will not run. In fact, most likely you’ll get an undefined function error.
August 18, 2010 at 5:51 pm #89560In reply to: Make Private Groups Visible
amahesh
Memberthats only for the forum though…I want to make it so that anyone can see the group, but to join, you must request an invite
August 18, 2010 at 12:36 pm #89511Mack
ParticipantThe function I wrote is as following –
function send_msg($user_id, $title, $message){
$args = “recipients=$user_id&sender_id’=11&subject’=$title&content’=$message”;messages_new_message( $args );
}I pass only recipients id, sender id, subject and content, due to call to wp_parse_args in messages_new_message, which fills message parameters which aren’t sent with default values, I believe. But it doesn’t affect database at all, no new messages are inserted.
—
About inbox, the installation I am working on is quite tweaked, so I don’t know what has been enabled and what disabled
. But if pm’s are disabled, is there an easy way to enable them? Also if pm’s are disabled, will message_new_message function do anything at all?Cheers
MaciejAugust 18, 2010 at 5:25 am #89476In reply to: Make Private Groups Visible
Pisanojm
ParticipantI can’t help, but it looks like you might be able to glean something from the Announcement Plugin where anyone can read, but people can’t post….
August 18, 2010 at 4:51 am #89474In reply to: Make Private Groups Visible
amahesh
Membercan anyone please help with this?
August 17, 2010 at 7:53 pm #89412r-a-y
KeymasterDid you pass parameters into the messages_new_message() function?
All the parameters can be found in the /plugins/buddypress/bp-messages.php file like Boone stated.
—
Private messages are disabled on this website at the moment due to spam. However, on a regular install, simply navigate to the “My Account” menu in the BuddyPress admin bar (located at the top) and navigate to “Messages”.
August 17, 2010 at 7:49 pm #89408Mack
ParticipantThanks for quick respond
. I try to call this function, but it doesn’t seem to be working. Nothing is inserted into the bp_messages tables in wordpress db. BTW, how to open my inbox? I can’t find it even here on buddypress.org, and on the site I am working on it’s also invisible. Should I install some new plugin or what?Cheers,
MaciejAugust 16, 2010 at 5:42 pm #89285Boone Gorges
KeymasterCheck out messages_new_message() in buddypress/bp-messages.php.
August 15, 2010 at 10:20 am #89155In reply to: only for logged in members
Roger Coathup
ParticipantYou could look at using functions like:
groups_is_user_member( $user_id, $group_id )
To test if the user is in a specific group, and only show the page if they are in the appropriate group. This is defined in bp-groups.php.bp_is_member()
To simply check whether the current user is a member (and logged in). This is defined in bp-core-templatetags.phpThere is also a group blogs plugin: https://buddypress.org/community/groups/bp-groupblog/
I don’t know if this can be adapted to implement the private pages for your group members.
Cheers, Roger
August 15, 2010 at 1:23 am #89136In reply to: only for logged in members
lorenzo
Memberthanks, this is quite useful to address the issue to block out everything. what i was after is a little more fine-grained. for example there are out there a few plugins which use wordpress roles to limit access to posts or even categories. can anyone suggest a way of using a buddypress group or a field from the extended profile to limit access to posts/pages (rather than activities like forum posts etc?
i understand that if one is not member of a private group they cannot see the group activities in the stream, but how to make certain pages only accessible based on buddypress group membership?
many thanks!
August 14, 2010 at 12:47 pm #89067In reply to: How to make a private community?
imjscn
Participant@hnla, I said “Click it” because it’s on the blog’s main navigation menu. If a visitor click this menu, it will go to the Introduction page.
What you said is exactly what I want— “simply have the text/content you want with a simple link to the registration page and also a simple login, registered users will login and be directed to their profile pag”, but the plugin you mentioned does not perform like this. It works on the action of a user log in(click the log in page) and then redirect.
August 14, 2010 at 11:00 am #89058In reply to: How to make a private community?
Hugo Ashmore
ParticipantThat sounds like you actually need a custom front page, but what do mean by ‘click it’ that’s a rather loose term click what?
Why does that page not simply have the text/content you want with a simple link to the registration page and also a simple login, registered users will login and be directed to their profile page by the plugin mentioned earlier. What you do with the main site home link is another question, suppose it’s possible to have that custom frontpage display your intro page to all logged out users and once logged in if a member navigates back to that page it will display ? activity loop / main site blog posts
August 14, 2010 at 10:47 am #89056In reply to: How to make a private community?
imjscn
Participant@hnla, let me try if my understanding about the codes are correct or not:
BP Redirect to Profile = force user to go profile page on log in. It’s not what I want to achive;
Travel-Junkie’s code = Make all BP communit not accessable for outsiders, they can only access blog page. It’s not what I want;This is what I want: I have an Introduction page for outsiders. I name is “MySpace”. When logged in user click it, it goes to his/her profile. When outsiders click it, it shows the Introduction page and suggest him/her to signup.
Now I see the “Redirects” not working because I need a dynamic URL(depends on user status) as the target URL.
What to do?
August 14, 2010 at 9:36 am #89054In reply to: How to make a private community?
Hugo Ashmore
ParticipantJenny that plugin you found ‘redirects’ is this a BP plugin? if not then use the one I linked to which is custom coded to work for BP (can’t vouch whether it’s currently compatible with latest releases)
At the end of the day I think you are looking for one plugin to cover two different jobs which may prove problematical.
Possibly you need to use your ‘redirects’ if that works satisfactorily with BP AND the other plugin to provide the actual logged in redirect to profile pages.August 14, 2010 at 8:43 am #89053In reply to: How to make a private community?
imjscn
Participant@hnla, logically, I can see his code leads to several posibilities, but coding is really an alien’s job for me

Since I got the plugin, I still need you help me figure out one critical answer– What’s the URL for a logged in user’s Profile?August 14, 2010 at 8:24 am #89051In reply to: How to make a private community?
Hugo Ashmore
ParticipantTravel_junkies code redirects logged out users to the main sign up page which is what I thought you were asking for, it can easily be configured to allow main directory pages to be viewed, but nothing deeper, or I guess to redirect to another page of choice, it’s not a plugin per se it’s the core function and would run from a file such as bp-custom.php it could be turned into a plugin quite easily though as a plugin at basic level is simply a convenient on/off switch. If ‘Redirects’ works for then that’s fine, iot’s not one I’ve run across before.
August 14, 2010 at 8:17 am #89050In reply to: How to make a private community?
imjscn
Participant@hnla, thanks for helping! This plugin doesn’t provide the function of redirecting to a welcom page for outsiders, but following the path, I found another plugin “Redirects” which allow for pointing a target page for outsider users. Many thanks!
August 14, 2010 at 7:58 am #89049In reply to: How to make a private community?
Hugo Ashmore
ParticipantJenny a search of the forum turns up this thread, (always worth a quick search to see what’s been covered )
Give the plugin listed in the last post a go and see if it works for you, and just acknowledge back whether it worked for you
August 14, 2010 at 7:44 am #89048In reply to: How to make a private community?
Hugo Ashmore
ParticipantJenny that’s what Travel_junkies code does (at least the first part of your request); have you tried it? Are you having specific issues with it?
August 14, 2010 at 3:55 am #89043In reply to: How to make a private community?
imjscn
Participant@Travel-Junkie, I’m totally new to this but I want a page to show signup page for outsidders and show user’s bp-profile page for logged in users. How to do this, please?
-
AuthorSearch Results