Search Results for 'private'
-
AuthorSearch Results
-
September 22, 2010 at 8:33 am #93077
In reply to: Registered Users Only 2: Allow some pages please
Stacy (non coder)
ParticipantWp- private claims to do this (https://wordpress.org/extend/plugins/wp-private/).
September 22, 2010 at 5:53 am #93071In reply to: Migrate from Mingle to Buddypress
paulhastings0
ParticipantWhile I don’t have personal experience with Mingle, it makes sense that you should at least be able to migrate the userbase over. As for Private Messages, Friendships, etc. that sounds more like a job for a plugin.
Make sure though that before you do anything that you create a backup.
September 21, 2010 at 3:14 pm #93032@mercime
Participant@Tolden Do post in the plugin’s forums
https://buddypress.org/community/groups/buddypress-private-community/forum/September 21, 2010 at 3:11 pm #93031Tolden
MemberDoes no one use this plugin and can help me?
September 21, 2010 at 2:49 pm #93027In reply to: Displaying Categories in Groups
phos flip
ParticipantDon’t know if this is any use to anyone and no doubt there are far better ways of doing it but just in case it is of use….
I’ve created (hacked really) a plugin made up of 3 files, one of which is useless for now but at a future point I’d like to play around with it.
bp-group-catdisp.php
`<?php
/*
Plugin Name: Display Categories
Plugin URI:
Description: Displays a blog category in groups
Author: Mas
Version: 0.1
License: GNU General Public License 2.0 (GPL) http://www.gnu.org/licenses/gpl.html
Site Wide Only: true
*/
if ( !defined( ‘BP_GROUP_CATDISP’ ) )
define ( ‘BP_GROUP_CATDISP’, ‘programme’ );function bp_group_catdisp_init() {
bp_group_catdisp_wrapper();
}if ( defined( ‘BP_VERSION’ ) )
bp_group_catdisp_wrapper();
else
add_action( ‘bp_init’, ‘bp_group_catdisp_init’ );
//above links to admin screen in backend
require(dirname(__FILE__) . “/bp-group-catdisp-admin.php”);// group options
function bp_group_catdisp_wrapper() {
class bp_group_catdisp extends BP_Group_Extension {
var $visibility = ‘private’;var $enable_create_step = false;
var $enable_edit_item = false;
var $has_caps = false;function bp_group_catdisp () {
global $groups_template;// group title
$this->name = __( ‘Programme’, ‘programe’ );
$this->slug = BP_GROUP_CATDISP;
$this->nav_item_position = 12;
$this->create_step_position = 12;// group ID for displaying category within
global $bp;$group_array = array( 17,11 );
if ( in_array( $bp->groups->current_group->id, $group_array) )
//group ID to display in array. Note can reverse this code ie. set it not to display in listed groups by placing !in_array( $bp etc.{
$this->enable_nav_item = true;
} else {
$this->enable_nav_item = false;
}}
function display () {
global $bp, $groups_template;include(“bp-group-catdisp-edit.php”);
//bit above links to file that prints to tab
}
}
bp_register_group_extension( ‘bp_group_catdisp’ );
}?>
`bp-group-catdisp-edit.php
`
<a href="” rel=”bookmark” title=”Permanent Link to “>
Sorry, no posts matched your criteria.
`
bp-group-catdisp-admin.php
`<?php
function group_catdisp_add_admin_menu() {
add_submenu_page( ‘bp-general-settings’, __( ‘Group Categories’, ‘bp_group_catdisp’ ), __( ‘Disp Cats’, ‘bp_group_catdisp’ ), ‘manage_options’, __FILE__, ‘group_catdisp_plugin_options’ );
}
add_action(‘admin_menu’, ‘group_catdisp_add_admin_menu’, 15);function group_catdisp_plugin_options() {
if (!current_user_can(‘manage_options’)) {
wp_die( __(‘You do not have sufficient permissions to access this page.’) );
}
$updated = false;
//above this is php for creating admin page and below is printed onto admin page?>
<?php
if ( !$options = get_option( ‘bp_gm_settings’ ) )
$per_page = 10;
else
$per_page = $options;$args = array( ‘type’ => ‘alphabetical’, ‘per_page’ => $per_page );
if ( $_GET == ‘name’ )
$args = ‘alphabetical’;
else if ( $_GET == ‘group_id’ )
$args = ‘newest’;
else if ( $_GET == ‘popular’ )
$args = ‘popular’;if ( $_GET )
$args = $_GET;
else
$args = 1;if( bp_has_groups( $args ) ) :
global $groups_template;
?>Category <?php
if ( !$group )
$group =& $groups_template->group;
?>Categories You don’t have any groups to manage.
<?php
}
?>
`The first two hard code a group by ID and display a selected wordpress category within that group. The last file is the useless one. I’d started hacking from one of @boonebgorges plugins with the idea of creating an admin screen from which groups could be linked to blog categories.
I’ve run out of time for now to play with that further and so for now am just going to duplicate the first two files for another couple of groups which will work for my purposes.
September 19, 2010 at 2:45 am #92834In reply to: Make Private Groups Visible
amahesh
MemberI have been playing around with this for quite some time but cant get it to work. I just want it so that anyone can see who the members are of a private group. I got close and you can see at http://snipbids.com/groups/electronics-1682147612/members/
Something is showing but I cant get the list of group members to show
Any ideas? please any help would be greatly appreicated
@r-a-y: I made the changes in the templatetags file to get to this result
September 18, 2010 at 1:24 pm #92787Dickson Waudo
Participant@nuprn1 thats a nice idea, I don’t know about the apply_filter though. the `$browse_sql` var is a new var that I initiate in just that function and within the scope of the if statement. Reasons being I added a whole other table to be queried in `$paged_groups` and `$total_groups` array being returned by the `get_active` function.
Its a small line of code, easily replaced on upgrade and works perfectly fine for me right now, I just wanted to be able to access, append/modify and object oriented class function from an outside function (that doesn’t make sense) lol. Something like whatever I have in my what if statement gets its own function and the arguments from the get_active function and processes my query after get active is complete (sorta), its not a private function so I can access it outside the BP_Groups_Group class, just don’t know how I can do an add_action or an apply_filter
September 17, 2010 at 1:12 pm #92698In reply to: Activity Stream RSS Parsing Error
Josh Frank
ParticipantI just re-posted this in the Private Community plugin forum. After deactivating the plug-in, the feed works without an error. I will follow up on the plugin’s thread. Let me know if you have any suggestions for making these play nicely! New forum threat at:
https://buddypress.org/community/groups/buddypress-private-community/forum/topic/activity-stream-rss-parsing-error-1/September 14, 2010 at 4:55 am #92374In reply to: How to make a private community?
NipponMonkey
Member@spinhead, the problem seems to be because your blog isn’t in the root domain. I think you need to change the config file a little to get it working. See my reply:
https://buddypress.org/community/groups/buddypress-private-community/forum/topic/redirect-hell/September 13, 2010 at 11:32 pm #92360In reply to: Quick question about “closed networks”
Ray
ParticipantThanks for the response! My goal is to install the classifieds plugin for BuddyPress and then gave different school networks where students can put up classifieds between themselves(the site is more elaborate but that’s the nuts and bolts). Do you think this is something I can achieve with buddy press?
Private groups
Automatic add to particular group based on school selected(could be a predefined group already made)
The classifieds section be different on each group
No friends, PMs if need be but there will be the classifieds bored so there’s really no needThanks!
-Ray-September 13, 2010 at 8:13 pm #92342In reply to: How to make a private community?
spinhead
ParticipantI’ve also had problems; posted my issue on the plugin’s forum.
September 11, 2010 at 8:41 pm #92185In reply to: Site Crash: .htaccess buggered
LPH2005
ParticipantUnless someone can see a better way to optimize this file, this is my final online version:
`php_value memory_limit 256M
RewriteEngine on
RewriteCond %{HTTP_HOST} ^thechembook.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} ^thechemistrybook.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} http://www.thechemistrybook.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} http://www.chemhints.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} ^chemhints.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]php_value session.gc_probability 1
php_value session.gc_divisor 100
php_value session.gc_maxlifetime 3600
php_value session.save_path /path/to/sessions# Protect the htaccess file
Order Allow,Deny
Deny from all# Protect wpconfig.php
Order Allow,Deny
Deny from all# Disable directory browsing
Options All -Indexes# BEGIN COMPRESSION AND CACHING
# Enable compression
AddOutputFilterByType DEFLATE text/css text/javascript application/x-javascript text/html text/plain text/xml image/x-iconBrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html# Make sure proxies deliver correct content
Header append Vary User-Agent env=!dont-vary
# Ensure proxies deliver compressed content correctly
Header append Vary Accept-Encoding# No ETags, No Pragma
Header unset Pragma
Header unset ETag
# Default cache time to 1 year (31536000 sec)
Header set Cache-Control “max-age=31536000, public, must-revalidate”# No ETags
FileETag none# CACHE SETTINGS (mod_expires)
# Turn on Expires
ExpiresActive On
# set default to “access plus 1 year”
ExpiresDefault A31536000
# html – “modification plus 1 hour”
ExpiresByType text/html M3600
# css and JavaScript – “modification plus 6 weeks”
ExpiresByType text/css M3628800
ExpiresByType text/javascript M3628800
ExpiresByType application/x-javascript M3628800# No cache for php-files
ExpiresActive Off
Header set Cache-Control “private, no-cache, no-store, proxy-revalidate, no-transform”
# END CACHING
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]# END WordPress`
September 10, 2010 at 1:00 pm #92074In reply to: Allow Only Public Groups
cbowcutt
Membergotcha – didn’t see that before. in the field next to Create Group Capability it appears I can only leave the text “upload_files” in there (it doesn’t take “subscriber”). I deleted the text for Create private group capability and Create hidden group capability but those options still appear when I go to create a new group. I’m clearly doing something wrong….
September 9, 2010 at 12:06 pm #91963In reply to: Is BP the right plattform for my project?
Boone Gorges
KeymasterSounds to me like most of your requirements could be met with WP Multisite plus a few selected plugins and themes.
– P2 allows for front-end posting
– https://wordpress.org/extend/plugins/more-privacy-options/ expands WP’s default privacy options to allow blog admins to hide their blogs from everyone but themselves
– Forums could be accomplished with bbPress or a forum-specific WP pluginDepending on what you need out of “blogs”, you might also be able to repurpose BuddyPress groups to do something similar. For instance:
– Each member is the sole member of a private/hidden group, and uses BP activity to “blog”. Since this happens through BP, there is no WP Dashboard involved.
– Likewise with Notes
– Depending on what you want with “Link List”, that can be pretty easily done with an additional profile field.
– Forums would of course be built in, in the form of non-private groups that the user could join.How to decide? If you don’t need the rich functionality of blogs (post revision history, out of the box multimedia support, etc), then actually giving each user two WP blogs might be too much overhead. In that case, BP would be a good choice. The functionality that you’d need is all already there; your work would be limited to customizing and configuring the interface.
September 6, 2010 at 9:46 pm #91700In reply to: How to make a private community?
NipponMonkey
MemberI’ve now added greater support for allowing access to your site. In the array of allowed URIs, you can now use ‘*’ at the end of an allowed URI,
e.g. Array(‘/public-blog’, ‘/public-blog/*’) would allow access to ‘/public-blog/post-1’, ‘/public-blog/post-2’, etc…
This is useful for allowing greater access to your site while keeping it private, and for allowing access to parts of your site that certain other plugins might require.
See FAQs for more information:
https://buddypress.org/community/groups/buddypress-private-community/home/September 6, 2010 at 5:16 pm #91673In reply to: How to make a private community?
NipponMonkey
Member@Gpo1, what happened?
Could you give your feedback in the plugin’s forum:
https://buddypress.org/community/groups/buddypress-private-community/forum/The general response has been good so far, it seems to be working fine for everyone else, so I’d be interested to know what’s going wrong for you.
Did you get an error message?
September 6, 2010 at 2:20 pm #91659In reply to: How to make a private community?
gpo1
ParticipantIt killed my site this plugin
September 6, 2010 at 4:00 am #91636In reply to: How to make a private community?
NipponMonkey
MemberHi, I’m the person who started this thread about 5 months ago!
I’ve been messing around with my own solution for a while now, and I’ve created my first couple of WP/BP plugins recently.
In fact, I’ve just released my BuddyPress Private Community Plugin:
https://buddypress.org/community/groups/buddypress-private-community/Somebody has already given it 5 stars!
It’s basically a single static class that has a few customizable settings, you can block RSS feeds, stop widgets from displaying when the user is logged out, and set an array of pages that are public. Of course you can set the redirect page when I logged out user tries to access a private page too. It defaults to the home page, but I suggest you change that in the config.
There is an example of how to create your own config file for the plugin, one that is saved in a place that won’t be overwritten when you update the plugin and that doesn’t require database access – so it should be a lightweight and quick plugin.
It’s been working great for me, let me know what you think and if you find any bugs!
September 3, 2010 at 9:47 pm #91474In reply to: All blogs not showing up in blogs directory
thecorkboard
Participant+1
I’ve got a client who needs private blogs (to hide from the scary google robots) but a public directory.
~Kyle~
September 3, 2010 at 6:40 pm #91450alanchrishughes
Participant@Driftless1 “Are we trying to artificially create a difference where there is none? Or is the difference there – Buddypress is just not making it clear enough?”
I think they are all the same, they are all just conversations, with different ways of going about having it. Buddypress seems confusing or lost in between because it is rightfully tyring to integrate these barely different means of having conversations into one more complete and convenient system.
The site I am working on has had a main news/blog section for about 3 years now. So I am looking at 3 main types of conversations
1. Comments on news articles and the comments on their comments which can become a lot like a forum topic.
2. An actual forum topic started by the user them self about something they feel is important enough for the world to hear.
3. Short and pointless twitter/facebook type comments that they don’t necessarily care to share with the world, whether it is because it is private or they know it just isn’t important enough, just something for friends who might be interested in know “omg! i finally finished all my cleaning my gutters!”
I think it just comes down to the user. It is about a user and their conversations, where ever they are taking place, then being fed back to one convenient location for all their buddies to find. I think it would be really neat to create some kind of universal user profile similar to gravatar so what ever website you are on, you can comment there and it will feed back to your personal profile with a link to that website and that comment so your friends can see what you are talking about out there and maybe jump in the conversation also. This would obviously open a pandora’s box of options on how or where you want your conversations to appear, but I’m certain that is the direction for “web 2.0.” The same way we boycot proprietary code, browsers, file types, or software, I think we will boycot myspaces and facebooks for universal profiles.
September 3, 2010 at 4:14 pm #91438In reply to: weird problem with Private messaging –
kriskl
ParticipantI just had another check, from another profile and
user with ‘normal’ rights
and the same problem happens,
message is sent to 2 people, One random, and one who I have deleted as admin for spamming via wordpress admin panel
September 1, 2010 at 7:02 pm #91240In reply to: weird problem with Private messaging –
kriskl
Participantsorry, it is WPMU 2.9.1 and Buddypress 1.2.3 (I think)
there are many plugins installed and some small modifications, but not related to PMwhat I think may have triggered it, is i had to delete some spammers, and deleting via buddypress did not seem to work, so I went to wp-admin and deleted one or two spammers there,
but it asked me to transfer their posts to my (admin) profile,
there were no posts, but that dialog box came up, so I accepted it.
and it had completed the delete process successfully,September 1, 2010 at 4:18 pm #91228In reply to: weird problem with Private messaging –
@mercime
ParticipantWP/BP versions? Did you change theme, plugins or upgrade something before this PM behavior happened?
August 31, 2010 at 1:17 pm #91108In reply to: aggregate activity stream from public groups
lorenzo
MemberHi Roger (and everyone else!), i think i’m going somewhere now, but will need some extra input. hopefully the thread will be an additional useful example!
ok, this is where i am at: default theme with the ajax controllers at the top of the activity stream. in the activity folder of the child theme i have an index.php and activity-loop.php and and entry.php.
basically i’ve got a ‘private’ area with content accessible only to staff. for normal post/pages i have is an extra check based on a custom field for posts and the category for pages like the following and then based on the group membership i either show a message or the actual content:
http://pastebin.com/E4cnkwZS (top)
now, because the group is private, the BP stuff is not showing in the activity stream already, which is good, but the posts/pages bypass my checks and come up in the list of activities showing the actual content which should be private instead.
so, here is what i came up with so far. using the index.php i check the group membership and then load two different activity-loops:
http://pastebin.com/E4cnkwZS (bottom)how would you exclude stuff? in the bp_has_activity function there is an ‘include’ option which allows to filter content, but not an ‘exclude’ one. it might be trivial to go around it, but not sure how. furthermore if you use the dropdown filter i have the impression that the arguments are passed dynamically resetting whatever is passed in the original query (like in your example and some i’ve tried using the same model).
i would very much appreciate any further suggestion! thanks
August 31, 2010 at 3:12 am #91068In reply to: How to make a private community?
Josh Frank
ParticipantWanted to say thank you and put in my endorsement for @Travel-Junkie ‘s great, simple privacy solution.
Re-posting that code below for simplicity’s sake, found at this comment link:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-make-a-private-community/?topic_page=2&num=15#post-44616Running WP 3.0.1 single-site with BuddyPress 1.2.5.2.
Add to functions.php (may be titled Theme Functions in your Dashboard Theme Editor):
function sh_walled_garden()
{
global $bp;if( bp_is_register_page() || bp_is_activation_page() )
return;if( ! bp_is_blog_page() && ! is_user_logged_in() )
bp_core_redirect( $bp->root_domain .’/’. BP_REGISTER_SLUG );
}
add_action( ‘get_header’, ‘sh_walled_garden’ ); -
AuthorSearch Results