Search Results for 'display users posts'
-
Search Results
-
Hi,
I’ve got the following setup:
wpmu 2.9.2
bbp 1.0.2
bp 1.2.3
They all work, bp and bbp appear to be integrated – you can move from one to the other seemlessly, bp users appear in the bbp list – but I cannot get the forums page in bp to work.
Issues:
– if I try and create a topic there is no group in the drop down
– I tried (eventually) to disable and re-enable the group discussion field, but when saving it as enabled I got a blank screen. Going back to the page after the event it appears enabled, but still no group in the drop down when posting a topic
– I’ve tried to create new group from scratch, but if the ‘enable discussion forum’ is checked I get a blank screen; if it is not checked I can proceed
– new topics posted on bp go into thin air once posted, nothing shows in bp or bbp
– posts created in bbp seem to work fine but do not show in bp (not sure that they should if done directly?)
Research shows a possible(?) need for buddypress-enable.php but this seems to be for older versions?
Other info:
– bbp is in a sub-directory of bp
– bp and bbp use separate databases
I think I may have to start from scratch (the forums page in bp no longer displays at all) but I’d like to know where I am going wrong before I have to start again.
Thanks
Please give your reviews over the concept that I am planning to implement for buddypress ,plugin of wordpress.
The purpose of this app is to make commenting function more functional and appealing by allowing users to give positive, negative or neutral comments to a post. Similarly, others are allowed to do the same with their replies. Various features will be added in the app to make it more worthy and making it useful for online discussions. Another novel sequel of this app is its ability of determining user’s characteristics based on his behavior.
User’s characteristics:
User’s characteristics (in terms of percentage) will be determined depending upon his posts and way of replying in a social networking site.
a) Confidence : The extent to which user refers discussions before responding to a post.
b) Daring : The extent to which user gives negative replies as identified.
c) Influence : The extent to which user’s posts are favored.
d) Agreeableness : The extent to which user favors other posts.
e) Interaction : The number of posts responded by a user with respect to total number of posts in his updates.
Additional features
The following features will also be added in the app.
a) Provision of various categories for using CCD app for starting discussions.
b) Automatic clearance : Removal of defied comments over a limit set by the user of a post when publishing it.
c) Showing most appraised and resisted comments of the session of any post. This would also help to show the result of any discussion.
d) Linking comments : In this scenario, user can use his previous comment or post to reply other posts (or comments). The comment along with its complete session will be displayed.
e) User will also able to keep a log of his comments or posts appraised more than a limit set by him in his account. He will be able to track down the all comments related to those present in his log.
f) Ranking of all users according to their per characteristic value and publicizing the excellencies.
More features may be added during development period of the app.
I looked for a plugin that did this as well as posts on here but didn’t find anything. I’m hoping to find a way to display links under ‘Notifications’ on the top admin bar when someone replies to an “update” you posted on either your profile or on a group. Users get email notifications (if they choose to in their settings) when someone replies but I’ve been told tons of times that it would be more effective to have this show up on the ‘Notifications’ section on top just like friend requests and messages. Is there a way to do this?
As the topic says,i want to hide activity ,members and the search bar from unregistered/not logged in users
below is my header code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bp_page_title() ?></title>
<?php do_action( 'bp_head' ) ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />
<?php endif; ?>
<?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" />
<?php endif; ?>
<?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" />
<?php endif; ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class() ?> id="bp-default">
<?php do_action( 'bp_before_header' ) ?>
<div id="header">
<h1 id="logo"><a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>
<ul id="nav">
<li<?php if ( bp_is_front_page() ) : ?> class="selected"<?php endif; ?>>
<a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a>
</li>
<?php if ( 'activity' != bp_dtheme_page_on_front() && bp_is_active( 'activity' ) ) : ?>
<li<?php if ( bp_is_page( BP_ACTIVITY_SLUG ) ) : ?> class="selected"<?php endif; ?>>
<a href="<?php echo site_url() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?></a>
</li>
<?php endif; ?>
<li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>>
<a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a>
</li>
<?php if ( bp_is_active( 'forums' ) && bp_is_active( 'groups' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) bp_get_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?>
<li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
<a href="<?php echo site_url() ?>/<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a>
</li>
<?php endif; ?>
<?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>
<?php do_action( 'bp_nav_items' ); ?>
</ul><!-- #nav -->
<div id="search-bar">
<div class="padder">
<form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
<input type="text" id="search-terms" name="search-terms" value="" />
<?php echo bp_search_form_type_select() ?>
<input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
<?php wp_nonce_field( 'bp_search_form' ) ?>
</form><!-- #search-form -->
<?php do_action( 'bp_search_login_bar' ) ?>
</div><!-- .padder -->
</div><!-- #search-bar -->
<?php do_action( 'bp_header' ) ?>
</div><!-- #header -->
<?php do_action( 'bp_after_header' ) ?>
<?php do_action( 'bp_before_container' ) ?>
<div id="container">Any help would be appreciated thanks
Topic: Admin user management issues
Ok, now that the latest version BP is sending out an email to new users with a link to click to complete their registration, we still need better user management in the back end. For instance, as soon as a new user registers, they enter the database and are listed in the Users section of the admin, even if they never click the emailed link to complete their registration. It would be nice to be able to filter the list to quickly find different types of users.
Here’s what I think would be helpful to see displayed on the admin Users page:
— Date of user registration
— Registration completed or not?
— User’s IP address / country of origin
— Number of Buddypress posts — topics, replies, activity stream posts, etc, as opposed to just the current “posts” field, which is just for WP blog posts.
Is there a way to filter the Users section of the admin, maybe a BP or WP plugin, to make some or all of this happen? I looked and looked but couldn’t find anything. This becomes a bigger deal in BuddyPress than standard WP, because you might have thousands of users, so we need a better way to manage them.
Hi,
I’m trying to make a plugin to allow users to upload documents to their buddypress profile. I’ve manage to setup the database, and the admin settings menu. Now what I need to do is add the code that generates a tab within the user’s profile where the user can upload/delete files and others can brows through them.
I don’t really have a deep understanding of the inner workings of BuddyPress, all I’ve done so far is based on reading through other similar plug-ins and forum posts:
The current code I’ve writer when activated brakes the individual members profile to the point that wordpress returns a blank page with not a single html tag. Here is the relevant code I’ve written so far. All I want to do at the moment is make the tab appear when I click on a users profile. I’ll deal with populating it later,
// Create Slugs and global variables<br />
if ( !defined( 'BP_PROFILE_DOCUMENTS_SLUG' ) )<br />
define ( 'BP_PROFILE_DOCUMENTS_SLUG', 'profile_documents' );</p>
<p> function bp_profile_documents_setup_globals() {<br />
global $bp, $wpdb;</p>
<p> /* For internal identification */<br />
$bp->profile_documents->id = 'profile_documents';<br />
$bp->profile_documents->table_name = $wpdb->base_prefix . 'bp_profile_documents';<br />
$bp->profile_documents->format_notification_function = 'bp_profile_profile_format_notifications';<br />
$bp->profile_documents->slug = BP_PROFILE_DOCUMENTS_SLUG;</p>
<p> /* Register this in the active components array */<br />
$bp->active_components[$bp->profile_documents->slug] = $bp->profile_documents->id;</p>
<p>}</p>
<p>/*/ add navigation item for user --<br />
function bp_group_documents_setup_nav() {<br />
global $bp, $current_blog, $group_object;</p>
<p> bp_core_new_nav_item( array(<br />
'name' => __( 'Chopo87' ),<br />
'slug' => $bp->profile_documents->slug,<br />
//'position' => 50,<br />
//'show_for_displayed_user' => false,<br />
//'screen_function' => 'messages_screen_inbox',<br />
//'default_subnav_slug' => 'inbox',<br />
//'item_css_id' => $bp->messages->id<br />
) );<br />
}/**/As you can see the “bp_group_documents_setup_nav()” function definition is commented out. This is because as soon as I insert that piece of code I brake the user profile web page. I’ve added the other code based on the group documents plugin to see if it helped, but this may not be necesary or helpful. I’ve also commented out most of the bp_core_new_nav_item as i read (here http://codex.buddypress.org/developer-docs/functions/core/bp_core_new_nav_item/) that they are optional.
You can find my full code at http://aitzol.com/buddypress_profile_documents.txt
Any help would be apreciated
Chopo
I’ve been trying to get my admin theme panel gui working so that my users can select from a list of their categories, in order to choose which categories to exclude from the homepage loop.
I believe that I am very close, but can’t seem to get the output correct.
Here is where I am:
I have the following code inside my theme functions file admin panel
// CUSTOM LOOP (homepage)
function category_loopes($options) {
$cats = get_categories('hide_empty=0');
foreach ($cats as $cat) {
$options[] = array( "name" => $cat->cat_name,
"desc" => "Check this box if you wish to exclude this category of articles from the homepage display",
"id" => "zoo_cat_box_".$cat->cat_ID,
"std" => "",
"type" => "checkbox");
}
return $options;
}I then have the ‘selector’ code as:
$options[] = array( "name" => "Homepage Categories to Exclude from homepage articles",
"type" => "heading");
$options = category_loopes($options);Ok so far so good…
What this gives me is another panel in my wp theme admin where it actually lists the categories properly, with a checkbox next to each one.
The user is able to select the categories to exclude and they are saved.
The database has entries in the options table like:
zoo_cat_box_4 true
zoo_cat_box_3 false
Perfect… so i am getting a true in the database for each category to exclude, so far so good.
The problem:
I have to modify the homepage loop to exclude those categories, that part is not working.. Here is the function I am trying for that.
// Custom loops
function get_exclude_categories_loop($labelz) {
$labelz = "zoo_cat_box_";
$include = array();
$counter = 0;
$cats = get_categories('hide_empty=0');
foreach ($cats as $cat) {
$counter++;
if ( get_option( $labelz.$cat->cat_ID ) == 'true') {
$excludecats[] = $cat->cat_ID;
}
}
if(!empty($excludecats)){
$excludecats = implode(',',$excludecats);
}
return $excludecats;
}Finally I place the following on the homepage:
<?php {
$args=array(
'paged'=>$paged,
'category__not_in' => get_option('get_exclude_categories_loop'),
);
};
query_posts($args);
if (have_posts()) : while (have_posts()) : the_post();
?>What is happening is that I am seeing all the posts from all the categories on the homepage. It is not excluding the ones I wish it to.
I’m guessing that something is either wrong with my final function, or I am not filtering the loop properly.
Would a code ninja mind taking a peek?
(I know this is not bp related, more wp, but once I learn this, I plan on using the same logic to exclude bp groups from the listings)
sorry for such a long post, I’m really trying hard to learn this stuff the right way….
In my non-ending quest to ‘mu’ buddypress so that each of my blogs can have their ‘own’ buddypress, I’ve come to a roadblock.
Basically my premise is simple.
1. I have buddypress multiblog set to true, so that each blog on my mu install can have bp enabled in their site itself.
2. I use the wpdev plugin so that members can register on a subdomain blog in mu without ever leaving the subdomain. That way they show up as a user of the blog as well as my blog id#1 default one.
3. The key is I only want bp information such as activity/members lists/groups/forums/etc. that were created by users of the blog in question to be displayed. (think ning)
So after days of reading through the wp codex, I think I found the function that will work:
$blogusers = get_users_of_blog();
It seems that is the function used by mu to display the users of a blog in the admin panel when viewing the blogs on my mu network.
Where I am stuck:
I’m guessing that the best approach is to filter all the bp functions for grabbing information via the get_users_of_blog so that only posts/members/groups/forums/etc that were generated by the users of the blog is displayed.
I’m curious if it’s possible to have a general ‘overall’ function that would filter everything in bp through the users of blog function. (what a dream that would be)
Or if I need to manually create a filter for all the bp functions independently, that would suck lol.
Does this look like a good approach to use to ‘mu’ buddypress, or is there an easier way to do this?
If I do indeed have to filter all the functions independently, I’m guessing that there are only a few that I actually need to deal with in order to filter the ouput. Is there a list of those functions that would need to be filtered, or am I on my own to read through all the bp code and figure out which to filter and which not to…
We must improve in this area to attract users to stay around instead going back to Facebook. It needs to improve when I upload multiple photos with my categories/albums instead tags because if I mistype the tag name then it create its own album instead the place where I want it to be in.
Running on wp single 2.9.2 and bp 1.2.2.1, I have set the discussion settings to “Comment author must have a previously approved comment” on the discussion settings of WP so that I must approve the comments from the blog first before they are made public.
If a registered member posts a comment, the comment doesn’t display on the blog because it has to be approved first but it adds the comment to the activity stream so if users click on the comment from the activity stream, they are taken to the blog post where the comment isn’t visible because it hasn’t been approved yet.
Is this a bug? Is there anyway to prevent this?