Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'display users posts'

Viewing 25 results - 226 through 250 (of 287 total)
  • Author
    Search Results
  • globe2
    Member

    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

    #10622
    k-z
    Member

    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.

    #73006
    Boone Gorges
    Keymaster

    Perhaps not the optimal solutions, but:

    – https://wordpress.org/extend/plugins/forum-attachments-for-buddypress/ allows users to attach files to forum posts, including pictures (which will then display inline).

    – https://wordpress.org/extend/plugins/bp-tinymce/ *should* work to give basic bold/italic/link stuff for forum posts. I haven’t done a very good job keeping this plugin up with the latest BP developments, so please test in a development environment first.

    #73106
    Boone Gorges
    Keymaster

    Perhaps not the optimal solutions, but:

    – https://wordpress.org/extend/plugins/forum-attachments-for-buddypress/ allows users to attach files to forum posts, including pictures (which will then display inline).

    – https://wordpress.org/extend/plugins/bp-tinymce/ *should* work to give basic bold/italic/link stuff for forum posts. I haven’t done a very good job keeping this plugin up with the latest BP developments, so please test in a development environment first.

    #72261
    snark
    Participant

    Thanks @boonebgorges and @3sixty — I went with @3sixty’s solution and decided to make a copy of the function for the post count and then call them out as separate “Forum Topics” and “Forum Replies” counts, rather than totaled together, in the yellow activity bar on the member profile page like this:

    <span class="activity">
    <?php bp_last_activity( bp_displayed_user_id() ) ?>
    | Forum Topics: <?php echo get_new_forum_topic_count_by_user( bp_current_user_id() ) ?>
    | Forum Replies: <?php echo get_new_forum_post_count_by_user( bp_current_user_id() ) ?>
    </span>

    This works well, as you can see on the member pages at http://www.wordlab.com/. I decided to forgo adding the post count to the topic list anyway, so I’m all set.

    The only bit of information I would have liked to have added to the member profile pages is a count of blog posts, which I figured out easily enough, but to only have that count display on the member profiles of those members who have permission to post to the blog, which on this site is only 3 out of over 200 members. So for the three members who have blog posts, there would be an added count, like this, “Blog posts: 46”, but for all other users instead of saying “Blog posts: 0”, I tried to craft a conditional tag but I couldn’t get it to work right — the count just kept showing up on all user profile pages. Any ideas?

    Liesl Fawcett
    Participant

    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?

    eazee
    Participant

    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

    #10048
    snark
    Participant

    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.

    #69921
    arezki
    Participant

    yes, correct assessment, but there is a potential solution, if i am right. first about BP: the default theme used to be “widget” ready or friendly, meaning that you can decide what goes in there from the Widget Admin area. This latest version brings essentially major changes in the codes that organize user behavior, but not so easy on the theme side. In fact, there aren’t any themes, may be 2 or 3, that are BP1.2.2.1 compliant and easy to just deploy. However, the Buddypress creators and developers say that you have to create what they call a child theme and then make whatever changes you want from there, probably including making the first “Activity” page as your landing page. Now, one very smart developer released this base theme, http://freebpthemes.com/onsite/sense-sensibility/ If you have bandwidth, time and some technical capabilities, I would recommend having a look.

    Now WordPress(MU) may allow u to pick your activity page as the landing page. In your WP Admin section, scroll down to the Settings area (left column). You see “Reading”. In it, it will let you choose “Front Page Display.” You may try to select “Static Page” and open the drop down menu for Front Page and select the Activity Stream page. Then save. By doing, I suspect, since I did not try it, the Activity Stream page (Facebook-like section) will be what your visitors will see when they hit your website.

    One think you may want to consider. The Activity Page puts any acvity across your site on that page. If you have a lot of people, that could be overwhelming. There is, however, one plugin u should find on this site called: BuddyPress Friends Only Activity Stream. It essentially should show only activity from the memeber’s friends. Again, I did not try it, but I plan so.

    Good luck

    Arezki

    #10011
    chopo87
    Participant

    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

    #69665
    jedbarish
    Participant

    Im so impressed with the beta so far!

    Tags: We need to have options for multiple albums by tag or my own created categories like a regular blog to organize posts both ways.

    Member Tags: It worked… when you create tags then it produced as an album on another member’s my pictures which I have to click through twice to see the picture. It will be easier to click once to see the picture instead creating album if I happen to create my own album with same tag as other created then it will be displaying in my existing album. I think the multiple album need to avoid using tags.

    Picture activity and comments: Its cool but not for each single upload if I want to place them under same album instead postin new activity for each picture. Everyone will lose their interests in activity section with lots of members uploading their pictures.

    Upload picture: It took me a while to upload 10 photos using a single upload option :( 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.

    http://deafnation.com/bpalbum.jpg: Check the link for the image. It doesn’t look good on bp default theme when I tried to post 9 images without tag so it created its own album without tag so anyway my theme already been fixed at 960px width and the photos screwed up around. I have an issue with Picture title in the menu/navigation of bp-album because if I create a title longer than it should and it ll not be looking good. It should be removed from that area to avoid messing it up with longer title :)

    Whats the difference between scale and resize option? So far, the admin side looked good and so curious how it looks with facebook and flickr at my end!

    We need to improve creating albums instead tags or display my tags (albums) under upload page instead trying to remember many different tags. We need to polish some features before adding new ones. Hope we ll be seeing a mobile upload feature someday. That’s all folks!

    #69576
    Mariusooms
    Participant

    Thanks for giving it a look guys…it is so helpful to get another set of eyes on there as I was looking at completely different things. Here goes:

    @avi-m

    will the tags show up on the main page tags widget?

    On the blog pages they show in relation to the blogs’ tags. For the main page you would need a sitewide tags widget. Look here: http://wpmututorials.com/plugins/sitewide-tags-0-4/

    @Bowe

    The magazine theme layout looks cool, but I feel it’s bit overwhelming for certain users. especially on lower resolutions I feels a bit crammed

    I agree, it needs some testing and wiggling. I noticed the colums are not behaving how I want them to as well. I like your comp, it is in between a Microblog and Magazine layout. I might just include that unless there are other suggestions.

    To avoid confusion I would probably rename Status Update in the groupblog to something like News Update or Blog Update, so that it does not get mixed up with a status/activity update in BuddyPress.

    Yes, it seems posting updates is not needed and we should encourage users to post media from this point. I think Ideally the update form from buddypress would exist in a top screen dropdown (not sure how you call those web 2.0 things). So you could post updates at any time and doesn’t take away real estate.

    Maybe allow the user to switch to a full markup mode or tiny editor to have more control over longer posts.

    This functionality would have to be born at the P2 theme. We just use there functionality. Whatever they develop, we inherit. I already hacked the main P2 a tiny bit to include the allowed categories and ajax feedback. Since it is a theme created by Automattic I think it is a safe horse to bet on.

    @Anointed

    preview blog post before posting it

    Yes, I was surprissed to by this when using P2 the first time. I didn’t expect img code in the post form, but it makes sense. A preview screen would be very nice. Again, this is something that would needed to be developed by the P2 theme. Unless anybody can supply some code we code integrate.

    ability to edit the post after it’s posted.

    There are actually a bunch of P2 features I omissed. Like keyboard shortcuts and inline editing. I’m going through the P2 theme and comb through what is still missing, inline editing is one of them. Thanks for mentioning that.

    @pcwriter

    preview and edit functions are musts

    As mentioned previous :) Basicly inline editing is a core feature so no problem. The preview of posts I’m not sure. I wonder if there’s a feature request section for the P2 developer crew.

    clicking any category tag displays the archive for that tag on a page that has no group header.

    You are absolutely right. I’m only including the group header in single, but this is something I can add in with a few lines. Just didn’t get to it yet, but was already to excited to share what the development was.

    @R-A-Y

    if you have ”Disable activity stream commenting on blog and forum posts?” set to ”Yes” in the BP admin area, I’m guessing this wouldn’t work

    Ha, yes you are right. I want prioritize buddypress activity comments since they are more sitewide than individual blog comments. This helps prevent forking of discussions and the discussion can take place at multiple stages. We could do an easy conditional to check if activity comments are disabled and then include the regular comment form instead.

    I guess for backward compatibility for old blog comments we should show those on the blog posts as well.

    Agree with Bowe about blog status updates.

    yes…

    I must be daft, but I couldn’t find the alternate layout options screen

    Currently this is controlled by the site-admin. So one layout rules them all. We quickly realized that it would be much better for the site-admin to allow group creators to choose a layout. This way you can have diverse groupblog expressions. We just did not get around coding that yet.

    There is still a bunch of stuff we need to add and fix. Pitfalls also include group admins to change the theme of their blog (I just of that) as well as we need to see if we can omit the featured category from the backend for group members who are not admin or mod. An many other stuff.

    So it is a bold task to include P2 support and does add some dependency, but at the end I do think it adds to the overall value. We just need to smooth out what and who the plugin is used. Your feedback help us with that.

    Come WP3.0 I hope P2 changes to post-types rather than categories, but we will see.

    #68867
    Boone Gorges
    Keymaster

    Yeah, it’s a bit of a change, isn’t it?

    My strategy for making the transition easier for my users is two-fold:

    1) Make the profile the default view for users (rather than activity), by adding

    define( 'BP_DEFAULT_COMPONENT', $bp->default_component = 'profile' );

    to wp-config.php

    2) Adding the @mentions profile tab, plus some explanatory text, to the members/single/home.php template in my child theme. Thus, right below

    <?php locate_template( array( 'members/single/profile.php' ), true ) ?>

    I’m adding

    <h4><?php bp_displayed_user_fullname(); ?>'s mentions</h4>
    <p>Whenever anyone posts an update on this site containing <?php bp_displayed_user_fullname(); ?>'s handle (<strong>@<?php bp_displayed_user_username() ?></strong>), it shows up as a public message below.</p>

    <p>Want to leave your own public message for <?php bp_displayed_user_fullname(); ?>?

    <div class="generic-button" id="post-mention" >
    <a href="<?php bp_send_public_message_link() ?>" title="<?php _e( 'Mention this user in a new public message, this will send the user a notification to get their attention.', 'buddypress' ) ?>"><?php _e( 'Mention this User', 'buddypress' ) ?></a>
    </div>

    followed by the activity loop, taken right from bp-default/activity/activity-loop.php, but with the following relevant modification: the arguments for bp_has_activities are

    <?php if ( bp_has_activities( 'scope=mentions' ) ) : ?>

    (You’ll have to do some styling to make it look right, but you get the idea.)

    It’s not an exact duplication of the Wire – I’ve tried to embrace the new @mention stuff, while still capturing the “leave a note for me” spirit of the Wire.

    Anton
    Participant

    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?

    #68272
    smuda
    Participant

    so same with

    BP_Blogs_Comment::get_total_recorded_for_user($bp->displayed_user->id);

    i guess.

    is there any way to get the total count of a users comments at the moment? i kinda don’t understands Boone Gorges code.

    snark
    Participant

    Ok, I was wrong above. @kriskl is talking about the Forums index page, while my other post — https://buddypress.org/forums/topic/changing-group-tab-display-defaults — is about changing the default tab view within the Groups pages.

    But this is an interesting problem also. I looked at your pointers above, @r-a-y , but I couldn’t figure it out. The Standard Loop page you linked to shows the code for

    bp_has_groups()

    but then below that it has the “accepted parameters” for

    bp_has_site_groups()

    a function which I couldn’t find anywhere in BP. Likewise the “most-forum-topics” & “most-forum-posts” arguments for the “type” parameter of that function.

    Here’s what I think it would be cool do do, but I’m not sure how to do it:

    Currently, logged-in users see two navigation tabs for displaying forum Topics on the “Group Forums Directory” page accessed by clicking “Forums” in the general navigation (default display tab in bold):

    [All Topics (25] [My Topics (12)]

    How to implement the addition of a new default tab that lists all of the Group Forums, with the same filtering options? then the Forums page sub-nav tabs would look like this:

    [All Forums (11)] [All Topics (25] [My Topics (12)]

    Anointed
    Participant

    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….

    #65932
    hotdvl666
    Member

    Thank you! You guys have been of great help.

    @Philip: I have done what you’ve said, exactly, but it seems like I can only make the code work if I edit header.php.

    Here’s the code I used (I adapted the method you used in your first reply and second reply):

    <?php if (is_user_logged_in()) { ?>

    <!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">" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></h1>

    <ul id="nav">

    <li<?php if ( bp_is_front_page() ) : ?> class="selected"<?php endif; ?>>

    " title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?>

    <?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; ?>>

    /<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?>

    <?php endif; ?>

    <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?>

    <?php if ( bp_is_active( 'groups' ) ) : ?>

    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?>

    <?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; ?>>

    /<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?>

    <?php endif; ?>

    <?php endif; ?>

    <?php if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) : ?>

    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?>

    <?php endif; ?>

    <!--<?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>-->

  • Back to The 7th Zone »
  • <?php do_action( 'bp_nav_items' ); ?>

    <!-- #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' ) ?>

    <center>Network: The 7th Zone :: Home | Grand Theft Auto HQ | Hot Devil 666's HQ | Silent Fiona's HQ

    </center><p>

    <div id="container">

    <?php } else { ?>

    <!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">" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></h1>

    <ul id="nav">

    <li<?php if ( bp_is_front_page() ) : ?> class="selected"<?php endif; ?>>

    " title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?>

    <?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; ?>>

    /<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?>

    <?php endif; ?>

    <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?>

    <?php if ( bp_is_active( 'groups' ) ) : ?>

    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?>

    <?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; ?>>

    /<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?>

    <?php endif; ?>

    <?php endif; ?>

    <?php if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) : ?>

    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?>

    <?php endif; ?>

    <!--<?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>-->

  • Back to The 7th Zone »
  • <?php do_action( 'bp_nav_items' ); ?>

    <!-- #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 -->

    <center>Network: The 7th Zone :: Home | Grand Theft Auto HQ | Hot Devil 666's HQ | Silent Fiona's HQ

    </center><p>

    <div id="container">

    <div id="content">

    <div class="padder">

    <div class="page" id="blog-page">

    <h2 class="pagetitle">Welcome to the party!</h2>

    <div class="post" id="post-68">

    <div class="entry">

    <p>Social networking at The 7th Zone is like partying! …and more! Joining in the fun at The 7th Zone is nothing like you’ve experienced on Facebook, MySpace, or any major social networking sites! Akin to a crazed, wild college party, The 7th Zone is where fun-loving youths, as well as video game enthusiasts and tech geeks can hang out!</p>

    <p>Staying up late to snag that cool-sounding medal in Halo 3, or piloting that Annihilator helicopter in Grand Theft Auto IV’s Free Mode? Fancy that VAIO Z laptop, or are you going nuts over a MacBook Pro refresh? Think the iPad is gimmicky and expected so much more? Prefer metal over the Jonas brothers, and classic Hip Hop over auto-tuned sh*t? This site is for you, the cool kid!</p>

    <p>Right here at The 7th Zone Community, you can create your own free blogs. With 500 MB of upload space, a feature-packed plugins set, and 117 beautiful themes, just how much more can you get for $0? More details here.</p>

    <p>Join us now. Registration is as easy as a few clicks! Hit the jump below to register yourself!</p>

    <div align="right">

    <h2>Register Me! »</h2>

    </div>

    <p>Edit this entry.</p>

    </div>

    </div>

    </div><!-- .page -->

    <?php do_action( 'bp_after_blog_page' ) ?>

    </div><!-- .padder -->

    </div><!-- #content -->

    <?php locate_template( array( 'sidebar.php' ), true ) ?>

    <?php get_footer(); ?>

    <?php } ?>

    For some reason, my site still displays whatever page I’m on for non-logged in users, and it does so after the footer for the else case. I have no clue what I did wrong. I have no experience in PHP code, but it looks fine to me. Is there an error I made somewhere?

    It also seems that if I set the activity stream to be the home page, the custom home page title that I’ve set in the All-in-One SEO pack doesn’t seem to take effect too. If I want to show logged in users the activity stream as the home page, with my custom home page title, how do I go about doing that?

    Thanks.

#65622
stwc
Participant

Things are looking good! One last thing I’d like to ask about/request: previously, we could link from elsewhere into a single page that displayed all the RSS items for a group, like http://example.com/groups/examplegroup/external-blog-posts. With the advent of dropdown filtering, that doesn’t seem to work anymore, which I understand, but I’d love to be able to do.

Is there anyway we can pass a parameter in a URL, say, that would autofilter the Group page on load, to show RSS feeds (or any of the other ‘sections’ in the Group)? I’d really like to be able to do this, rather than just linking to the Group with instructions (for non-savvy users) to click on the filter button..

#65325
peterverkooijen
Participant

Marius Ooms posted an update about the bp-groupblog plugin here.

Per definition what works within your blog should also work on your groupblog. All you need is the blog id that belongs to the group. If you look at the template files you’ll see how we set the blog id and use switch blog to change blog id’s.

That’s probably what I should focus on to fix my problem!

Looking ahead we are even going further and reversing the concept of pulling in specific blog content into the group, but let the blog be the group and pull in buddypress information to the blog itself. … The main group slug would just forward to the blog home page.

I had thought about that as possible solution to the referrer check mismatch problem; just make the blog homepage, where P2 does work, the group homepage.

But I think it would create more confusion. In my theme I want to keep blogs looking like blogs and turn the group homepages into the centers for social networking activity.

So the group blog homepage would display the same posts as on the group homepage, but in a traditional blog view. Most users would see the group blog posts on the group home page or in the single.php view.

Forwarding the group slug to a blog and then make the blog look like a group home page breaks the logic of the site.

EDIT:

I still think that, atm, posting from the front-end is not developed far enough yet … It is fine for micro-blogging, but I don’t think there are option to include image/video/media uploading, tagging, and categories

There is in P2, leveraging WordPress media buttons. It’s very slick, with lightbox etc. (I see they’re missing from the version I had in my zip…)

In my setup I’m trying to get simple, stripped down microblogging front-end posting on the group homepage, with a traditional blog view on the blog homepage. So more advanced users can still go from the regular blog homepage into the wp-admin backend if they want to do more complicated post editing.

P2 has different tabs for Status Update and Blog Post on the post-form. I’d like to have those options in the group homepage if I can get it to work, but the stripped down Status Update would be priority there.

#63815
gregfielding
Participant

Great idea…think of the customization options that this could bring…

Logged in users could see activity from their friends, groups, blogs they “follow”, and even sitewide posts by certain category or tag.

Maybe there would be defaults where certain “top news” posts are displayed to everyone. (which would be incredible for my real estate site)

It could be like an igoogle page…

#8742
snark
Participant

I am running a fresh install of BP 1.2-RC2 for WP 2.9.1 single user (not WPMU). I’ve searched all over and I cannot get a clear answer on this. Here’s what I’m looking to find out:

1. Definition of all the user Roles in Buddypress / bbPress

2. Ability to define or change user Roles if possible

3. Using the above to create true Moderators for the Forums in a Buddypress installation.

Here’s the main issue: I’ve tested various user Roles on my test installation, and it looks like only users who are Administrators or Keymasters can moderate the Forums in Buddypress. This is a problem, as Keymasters have access to nearly the entire wp-admin backend, almost as much as Administrators. I would have thought that the Moderator user level would have limited backend access, but would be able to truly Moderate the Forum — delete topics, for instance. But I tried it, and a user with a Role of Moderator cannot delete topics.

I want to be able to launch this for a new version of a forum that currently have over 15,000 members, and for it to work I’ll need about 10 or 20 Moderators who can edit, delete and close topics and posts as necessary, without access to the backend. This should be easy and built-in, but I can’t make it work.

I notice that the Moderators of this Buddypress forum all have the ability to at least close topics to further discussion. Am I missing something?

Also, what code to add to the template to display a users’s Role next to their user name, the way you are doing here on the Buddypress Forums?

#62492
paulhastings0
Participant

So here’s my line of new code:

<?php if ( /*bp_has_activities( 'type=sitewide&max=' . $instance['max_items'] . '&per_page=' . $instance['per_page'] ) */ bp_has_activities( 'type=sitewide&action=new_blog_comment' ) ) : ?>

But it hasn’t made a difference. Like you said, it’s only showing the comments sitewide. It’s killed the rest of the activity stream (posts, wires, status updates, etc). But it’s still not showing comments made by unregistered users.

Are we both running the same versions? WPMU 2.8.6 and BP 1.1.3?

#62340
Anointed
Participant

@Headmine — JJJ had responded to some of my prior posts about this same thing, and he believed it is possible. So instead of just flooding him with a bunch of questions I spent the past few weeks reading through the codex and the bp code to see if I could figure it out on my own.

At this point I am unsure which direction to go, but I’m confident it can be done. Honestly, once people realize what I am asking for I’m pretty certain it will become a highly requested feature.

In a nutshell it would give us the ability to run our own social networks independent of each other.

#8631
Anointed
Participant

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…

Viewing 25 results - 226 through 250 (of 287 total)
Skip to toolbar