Search Results for 'buddypress'
-
Search Results
-
I found it odd that the Forums tab only shows public topics – this makes it much less useful. So I’ve written some code that would shows all topics for logged in users in the forums tab – both public, private and hidden. I’d like to turn this into a plugin, or maybe it could be added to version 1.3. anyway here is the code, and I’d like some feedback before I make it a plugin.
`
//
// Show private topics in Disucssions tab
//// remove the default forums privacy filter if we’re in the forums section and the user is logged in
function scg_show_private_discussions() {
global $bp;if ( $bp->loggedin_user->id && !$bp->groups->current_group )
remove_filter( ‘bbpress_init’, ‘groups_add_forum_privacy_sql’ );
}
add_action( ‘bbpress_init’, ‘scg_show_private_discussions’, 9 );function groups_add_forum_privacy_sql_better() {
global $bp;// filter only in the forums section for logged in users
if ( $bp->loggedin_user->id && !$bp->groups->current_group ) {
add_filter( ‘get_topics_fields’, ‘groups_add_forum_fields_sql’ ); //unchanged
add_filter( ‘get_topics_index_hint’, ‘groups_add_forum_tables_sql_better’ ); //changed
add_filter( ‘get_topics_where’, ‘groups_add_forum_where_sql_better’ ); //changed
add_filter( ‘get_topics_distinct’, ‘groups_add_forum_distinct_sql’ ); // new filter
}
}
add_filter( ‘bbpress_init’, ‘groups_add_forum_privacy_sql_better’ );// get distinct results otherwise there are duplicates
function groups_add_forum_distinct_sql( $sql ) {
return $sql . ‘ DISTINCT ‘;
}/*
// this function does not need to change
function groups_add_forum_fields_sql( $sql ) {
return $sql . ‘, g.id as object_id, g.name as object_name, g.slug as object_slug’;
}*/// added the left join to the group members table
function groups_add_forum_tables_sql_better( $sql ) {
global $bp;
return $sql . ‘, ‘ . $bp->groups->table_name . ‘ AS g LEFT JOIN ‘ . $bp->groups->table_name_groupmeta . ‘ AS gm ON g.id = gm.group_id ‘ . ‘LEFT JOIN ‘. $bp->groups->table_name_members . ‘ AS gmem ON g.id = gmem.group_id ‘;
}// returns all topics from public/private/hidden groups the user is confirmed member of
function groups_add_forum_where_sql_better( $sql ) {
global $bp;$bp->groups->filter_sql = ‘ AND ‘ . $sql;
return “(gm.meta_key = ‘forum_id’ AND gm.meta_value = t.forum_id) AND (“. $sql.” AND gmem.user_id = ” . $bp->loggedin_user->id . ” AND is_confirmed = 1 AND is_banned != 1 OR g.status = ‘public’ AND “. $sql.” )”;
}`please use the @dwenaus when replying so I’ll get an email response – hopefully.
Hello all,
I used the very useful BuddyPress External Group Blogs plugin and I would like to know if it possible to add a _blank target to the links that are in the RSS items displayed in the activity feed ?
How can I change all instances of “Group” in Buddypress output into “Team”? The internal database table names, function names, etc. should remain as `group` – just looking for the labels output to site users to change.
I’m new to buddypress, and found it VERY annoying that when I tried to install buddypress for the first time, I went to the plugins tab and typed buddypress… AND FOUND EVERYTHING EXCEPT BUDDYPRESS!!!! – I had to go through THREE pages until I found it! – How about changing the code so that it shows up on top – LOL!
Hi,
Im trying to do something which I thought would be a relatively simple task but seems to be impossible without alot of custom coding.
I am using the “More fields” plugin to add some checkboxes to a post. These checkboxes will allow a post to be associated with genre of book.
I am also using buddypress. When a user registers I want to be able to give the user the option to choose which book genres they are most interested in, and then save it into their profile info. These genres obviously have to be the same as the genres which i am tagging my posts as (the custom field ive created in more fields).
Can anyone think of a way I can allow users to choose which genres (multiple checkboxes) they are interested in. I could of course create a profile field containing the book genres in the “profile field setup”, but then they wouldnt be the same as the checkboxes im using to “tag” posts with and therefore id be maintaining two sets of data which are in no way linked and would be useless for reporting purposes.
Thanks for any help, it would be much appreciated.
Hi,
It would be geat to get some help with this problem, as it has plagued for more than a week now.After changing servers, our forums have ceased to display. Precisely, forums of existing group do not display (e.g. http://www.ma-grande-taille.com/communaute/groupes/rondes-a-la-mode/forum/).
Meanwhile, when we try to create a forum within a new group, we get the following message : “Attention Site Admin: Group forums require the correct setup and configuration of a bbPress installation.”
Obviously, we’ve tried to re-install hte forums several times. It does not resolve the issue. Worse, it sometimes causes our whole Buddypress installation to disappear (all is left is WordPress).
I look forward to getting your advice,
Best regards,
Thibault
Topic: Sub-domains
I have a wpmu site http://www.example.com and have create a subdomain http://www.subdomain.example.com
I want each subdomain to run buddypress separately and not revert to the main site (unless they want to) everytime they click on activity or community tabs.
Can anyone help?
Hi,
Im trying to do something which I thought would be a relatively simple task but seems to be impossible without alot of custom coding.
I am using the “More fields” plugin to add some checkboxes to a post. These checkboxes will allow a post to be associated with genre of book.
I am also using buddypress. When a user registers I want to be able to give the user the option to choose which book genres they are most interested in, and then save it into their profile info. These genres obviously have to be the same as the genres which i am tagging my posts as (the custom field ive created in more fields).
Can anyone think of a way I can allow users to choose which genres (multiple checkboxes) they are interested in. I could of course create a profile field containing the book genres in the “profile field setup”, but then they wouldnt be the same as the checkboxes im using to “tag” posts with and therefore id be maintaining two sets of data which are in no way linked and would be useless for reporting purposes.
Thanks for any help, it would be much appreciated.
Topic: Sidebar Navigation Widget
Then it shows up within the top of the first page.