Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 651 through 675 (of 745 total)
  • Author
    Search Results
  • #75954
    Michael McCleve
    Participant

    That was a GREAT lead for me, @pcwriter! Modemlooper has actually created 2 widget-supported themes and I’ve been playing around with both of them. I like the 3-column theme for what I want to show up on the site. It’s working well.

    If you’d like to take a look, see: http://citizensofinfluence.com

    #75944
    Michael McCleve
    Participant

    Thanks for the heads up, @pcwriter! I’ll take a look at that.

    #75818
    pcwriter
    Participant

    @michael

    Try Modemlooper’s widgetized theme as a child theme of bp-default. It might be just what you’re looking for.

    https://wordpress.org/extend/themes/buddypress-widget-theme

    #75317
    agrundner
    Member

    @r-a-y Got it working! The instructions you gave are correct. I didn’t realize that both “Front page” AND “Posts page” under Settings > Reading had to be altered. I originally only altered the Front page.

    Working solution:
    Front page set to “Activity Stream”
    Posts page set to “Blog”

    Thanks @r-a-y!

    #75313
    agrundner
    Member

    @r-a-y So close… I followed the instructions:
    1) Login to the WP backend, navigate to “Pages > Add New”. Create an empty, new page called “News” or “Blog” or whatever you want. This page will contain the blog updates.
    2) Under “Settings > Reading”, set front page to “Activity Stream” and your posts page to the new page that you just created.
    —-

    Using: Default BP Theme
    Front page shows “Activity Sream” but the new “Blog” page I created shows a normal page similar in format to the About page, not the blog’s latest posts.

    Page attributes:
    Parent > Main Page (no parent)
    Template > Default Template
    Order > 0

    #74756
    r-a-y
    Keymaster

    @hotforwords

    I don’t have a file named config.php in the plugin that has the lines you posted above.

    The next release (which I’ve been teasing for awhile now) will allow you to customize the size in the activity stream, and hopefully the activity permalink page.

    #74694

    In reply to: Custom register.php

    thomallen
    Member

    Actually, I’m trying to get BP features to work with the Thesis Theme. I need to use the registration/activation feature, and several other features like Members and Activity.

    What I tried to do is create a custom template with the register.php code, and assigned it to a page called Register.

    Anyway, I’ve looked for days on topics to integrate Thesis and BuddyPress. So I decided I wanted to try and get these plugins to work. I’ve gone down the Thesis road pretty far.

    #74382
    Wildrot
    Participant

    *bump* – Would anyone go to the lengths of reproducing this issue?

    Oh, just to comply with the When asking for support rules:

    1. Which version of WP/MU are you running?

    WP 3.0-beta1

    2. Did you install WP/MU as a directory or subdomain install?

    Subdomain install

    4. Did you upgraded from a previous version of WP/MU? If so, from which version?

    Nope. Fresh from scratch.

    6. Which version of BP are you running?

    1.2.3

    7. Did you upgraded from a previous version of BP? If so, from which version?

    Nope. Out of the box install.

    8. Do you have any plugins other than BuddyPress installed and activated?

    Nope.

    9. Are you using the standard BuddyPress themes or customized themes?

    Standard.

    10. Have you modified the core files in any way?

    Nope. Learned not to do that while BP was in early 0.8 :p

    11. Do you have any custom functions in bp-custom.php?

    Nope.

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?

    The built-in one.

    13. Please provide a list of any errors in your server’s log files.

    None thrown.

    14. Which company provides your hosting?

    Self-hosted V-Server.

    #74328

    In reply to: Group-Rights Plugin

    3sixty
    Participant

    Hmm, RSS… that is a little complicated. Also another implication I did not think of is the activity stream. If the idea is to restrict access to content, then both the RSS, the activity stream (and the activity stream RSS) have to be considered.

    Before we go down the route of considering another plugin, have you already tried this one?

    https://wordpress.org/extend/plugins/bp-groupblog/

    BuddyPress Groupblog

    Description Installation Screenshots Other Notes Changelog Stats

    Author: Rodney Blevins & Marius Ooms

    The BuddyPress Groupblog plugin extends the group functionality by enabling each group to have a single blog associated with it. Group members are automatically added to the blog and will have blog roles as set by the groupblog admin settings.

    Features:

    Full blog theme integration. The included bp-groupblog theme mimics the group pages.

    WP Admin option to set default blog for groups plus bonus options.

    Automated blog registration at group creation stage.

    Bypass default blog validation to allow dashes, underscores, numeral only and minimum character count.

    Blog privacy settings are initially inherited from group privacy settings.

    Group members are automatically added to the blog.

    Blog roles match group roles as set by the group admin.

    Solid error checking that the blog follows validation.

    Group admin tab to access the group-blog settings.

    Recent posts are displayed on the group home page, much like the forum topics.

    A menu tab is added to display the latest blog activity and blog page links.

    Blog themes will have the ability to pull in group info and create a theme that could resemble the group exactly.

    Leaving the group will downgrade the member role to ‘subscriber’.

    Allow the group admin to select one of his/her existing blogs.

    Known Issues: * Group blog post do currently not show up in the group activity stream. Therefore as a short term solution we are including a custom activity loop on the blog page. This should be fixed in the future.

    Roadmap:

    Allow the admin to let group admins choose the blog name, instead of following the group name.

    Frontend posting from the blog home page.

    Redirect options to integrate deeper with the blog.

    Include an RSS icon for easy access to the Blog’s RSS feed.

    Gianfranco
    Participant

    @Dimensionmedia Nice and valuable list of tips, thanks.

    I’m glad that my topic have generated such interesting discussions.

    The community website I build up is for Cure fans (you know The Cure, right?), and since they all are already active on Facebook, MySpace and other existing (traditional) forums, it is quiet a bit of a challenge to bring them over to my site and actually use it.

    The motivation that made me wanna do Cureuphoria (http://cureuphoria.com) is that I felt that althought many places already exist for Cure fans to interact, there isn’t a real Social Network with features “à la Facebook/MySpace” that is specifically built with that particular community in mind.

    I feel that the major value of using BuddyPress, and the main difference with the above mentioned social networks is that you can offer basicly the same feautures, BUT in an environement created and adapted around a specific community, which is the strongest point to my opinion.

    From look and feel, to functionalities, you can build something up that is indeed unique to a given community.

    Something that a rather impersonal environement such as Facebook, is not able to offer.

    For example, I used custom profile fields to build a Cure-oriented member profiles, because it is about The Cure, right?

    You can check an example here: http://cureuphoria.com/gian, which is my profile, but you can go and see others too.

    Also, because I believe the register page is a key page of the site, I designed a very simple, basic form with a prominent call to action button, and argued some benefits about registering and using the site, that would accompany the registration form.

    And, because during the intial lunch phase you don’t see many members profile avatars active, I decides to design a visual graphic with different avatars in order to give the potential subscriber a feeling of community. To do so, I asked permissions to Facebook users (within the Cure fans community) to use their avatars, and they all agreed. That gave me already the possibility to communicate the existence of the new site to some.

    By the way, this is the register page: http://cureuphoria.com/register

    At the moment I did get quiet a few registrations in a week time period, but unfortunately, users don’t turn out to be as active as I expect them to be. So, beside the first point of bringing people in and register, the following point would be, how to make them use the website and be active? Maybe it takes time to achive that.

    Maybe their passivity is due to the fact of being troubled by the slight diffrences with (again) Facebook, or other traditional forums structure.

    I mean, the majority of other Cure forums out are built with calssical bulletin board systems, such as phpBB or vBulletin and are (sorry, but I need to say it) quiet ugly. Still they are widely populated with topics.

    My users, I feel, are probably troubled by the Groups/Forums relation. Some posted on the Group homepage activity, thinking that it was answearing to a topic in the forum for that Group.

    I mean, I do think that the Group/Forum as a value and I totally understand the principle behind it. But do my users?

    In order to push them to post Topics that are not necessarily associated with a Group, I did create a Group called Open Topics, that would act as a general topic forum.

    And, I wrote a sticky topic on “How to use Cureuphoria”, which you can find here, even if not finished yet at the moment of this writing: http://cureuphoria.com/groups/cureuphoria-feedback/forum/topic/how-to-use-cureuphoria-read-this/

    I would like to have them create their own groups, write topics, invite their friends over and all that, instead of coming to the site, putting up a video form YouTube, add a friend and then leave to just check if something more exciting is happening after a day, and since it’s not the case, leave again.

    Anyway, I don’t think there is a magic formula to make your BuddyPress site have the success you expect, but it is probably a lot of little things that need to be manged toghether, from design, to functionalities, to constant marketing (social public relationship). Or… something I am just missing.

    I want to thank all of you who contributed to the topic. Keep it going: advices, ideas and thoughts about this are never enough.

    #72746
    dre1080
    Member

    got this thanks to Boones Gorges..

    insert this in your bp-custom.php to get the total count of activity posts of a user:

    function get_activity_count_by_user( $user_id ) {

    $args = array(

    ‘per_page’ => 10000,

    ‘show_hidden’ => true,

    ‘user_id’ => $user_id

    );

    if ( bp_has_activities( $args ) ) {

    global $activities_template;

    $count = $activities_template->total_activity_count;

    } else {

    $count = 0;

    }

    return $count;

    }

    then use this template tag in your theme <?php echo get_activity_count_by_user( $user_id ) ?>

    Chris Houghton
    Participant

    Hmm – strange. It mostly works. For some reason on some pages of the site something breaks:

    One page would be /groups/GROUPNAME/admin/ – I get the following error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/smartauk/public_html/wp-content/plugins/bp-custom.php:3) in /home/smartauk/public_html/wp-includes/pluggable.php on line 868

    Any idea what might be causing this?

    Thanks

    3sixty
    Participant

    I’m at a convenient but vaguely unsatisfying stopping point in this saga.

    I ended up nuking all the lovely AJAX buttons on the /activity page in favor of HTML form buttons like this one

    <li style="float:left;" <?php if ($_POST["activity-tab"] == "friends") { echo 'class="selected"'; }?>">
    <form action="" method="post">
    <input name="activity-tab" value="friends" type="hidden" />
    <input style="border:0px" type="submit" value="My Friends" />
    </form>
    </li>

    Then later include()ing a custom stream and resetting the $_POST value to empty:

    ...
    <?php if( $_POST["activity-tab"] == "friends" ) { $_POST["activity-tab"] = ""; include( 'activity-loop-friends.php' ); } ?>
    ...

    The ideal solution here would be to somehow rewrite the cookie/display functions in global.js to “forget” the user’s last selected tab, but I was not smart enough to figure that one out…

    #72130
    snark
    Participant

    Thanks @boonebgorges — I got it partially working, but then got stuck. I put the function as is above in my functions.php file, and added this to member-header.php:

    <p><?php echo get_activity_count_by_user( bp_current_user_id() ) ?> Forum posts</p>

    This returned ALL posts for a user, including blog posts. Obviously, based on the text I added above, I only want to include Forum posts (should include both Topics and Replies). I looked at the page you suggested — https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/ — but I couldn’t figure out how or where to implement the filter: what syntax, and where does it go, in the function or in the call-out?

    Also: Using “bp_current_user_id() ” allows the post count to display on the user’s profile page, but how do I display the post count on a different page, such as /single/forum/topic.php, the Forum topics display page, where “bp_current_user_id()” is no longer applicable? On that page I’d like to put a user’s post count in parenthesis next to the user, like this: “John Doe (54 posts)”. That way when you scanned the list of Replies to a Topic, you would quickly see if a user was a long-term and/or hardcore user or a noob based on the number of posts they have contributed to the site, and I’m hoping that little ego boost will help nudge people into posting more frequently. Does that make sense?

    Thanks again for all your help.

    #72109
    Boone Gorges
    Keymaster

    See if this does what you want. Put the following function in [your-theme]/functions.php or [plugin-dir]/bp-custom.php:

    function get_activity_count_by_user( $user_id ) {
    $args = array(
    'per_page' => 10000,
    'show_hidden' => true,
    'user_id' => $user_id
    );

    if ( bp_has_activities( $args ) ) {
    global $activities_template;
    $count = $activities_template->total_activity_count;
    } else {
    $count = 0;
    }

    return $count;
    }

    Then call the function somewhere in a template, something like this:

    <?php echo get_activity_count_by_user( $user_id ) ?>

    making sure that $user_id is populated with the user_id of the person you are querying about.

    You could filter this in various ways. To get just one kind of content, or content from just one component of the site, try some of the filters here: https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/. To exclude things (like anything having to do with blogs) is a bit tricker; after calling the $activities_template global, loop through each member of $activities_template->activities and check to see whether it’s the kind of thing you want. If not, reduce $activities_template->total_activity_count by one.

    #72079
    rich! @ etiviti
    Participant

    you can pull in whatever from the activity stream loop and place it anywhere (surprised no one has created a “stream widget” )

    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    #71863
    3sixty
    Participant

    My aforementioned Privacy Component will offer fine-grained filtering of any activity stream content–that is as long as the plugin developer made sure to register all the activity stream actions for their component. No need for fancy bp-custom.php functions, core hacks, and the like.

    wow… nice!! Another great plugin to melt our heads.

    #71768
    Mariusooms
    Participant

    It depends which page. You’ve got three instances or so, the directory activity page, the profile page and single group page.

    To always show your slider above all instance you could stick it inside the post-form.php with the following do_action:

    <?php do_action( 'bp_before_activity_post_form' ) ?>

    Otherwise, for the directory activity you’ve got the following do_action:

    <?php do_action( 'bp_before_directory_activity_content' ) ?>

    Or for profile views and single group views you have:

    <?php do_action( 'bp_before_member_activity_post_form' ) ?>

    <?php do_action( 'bp_before_group_activity_post_form' ) ?>

    That should give you all possible instances. Just code your slider in your bp-customs.php and use an add_action for your area of choice. Hope this helps.

    #71608
    Hugo Ashmore
    Participant

    It’s no problem of any kind you can do what ever you wish within reason, how you layout the data is your concern really, I’ve approached it from both adding another simple locate_template() to mirror the existing primary sidebar call creating a new file to hold whatever required and by creating a new custom Page along with a new file with a three column layout with two flanking columns containing new widget aware sidebars and the fluid centre column containing the activity loop, that page is simply set as the static index page and posts page set to a new blank Page.

    joescars
    Member

    I fixed it!! Woohoo!!! After much research I found similar issues with IIS 6 and the handling of redirects. I was lead to this page: http://ikailo.com/94/url-modrewrite-workaround-iis-60/ which has a fix for IIS6.. Well, with some tweaking and some magic I was able to come up with a fix for IIS7. it is as folows:

    1. Create a new file called 404-handler.php and put the code found here: http://ikailo.com/94/url-modrewrite-workaround-iis-60/ in it.

    2. You have to now configure your IIS7 installation (in my case IIS 7.5) to allow for custom redirects and to use this page for 404 errors. To do this you have to do the following:

    a) Open up IIS configuration manager (separate install for iis 7, included with iis 7.5).

    b) Browse to system.webServer/httpErrors

    c) unlock defaultPath

    d) unlock allowAbsolutePathsWhenDelegated

    e) set allowAbsolutePathsWhenDelegated to TRUE

    f) go to Error Pages

    g) right click on 404 and click edit

    h) select “Execute a url on this site” and set to /404-handler.php, hit ok

    i) right click 404 and select Edit Feature Settings

    j) set to custom error pages and path to /404-handler.php and path type to execute url

    I then had to reset IIS and IT WORKS!!! Woohoo!! I hope this helps others!!

    Joe

    http://www.561Media.com

    #71455
    3sixty
    Participant

    Jens, I think Rich is referring to this page, which has a link to download the BP skeleton component:

    https://codex.buddypress.org/developer-docs/creating-a-custom-buddypress-component/

    The “skeleton component” is (I think) designed to hook into the Activity Stream, so by looking at that code, you might find what you need?

    #71396
    rogscorp
    Participant

    It’s not working. I’m supposed to change default.css right?

    Do I have to delete some lines after adding that?

    I keep wondering why

    <?php if ( bp_get_activity_count() == bp_get_activity_per_page() ) : ?>

    <li class=”load-more”>

    <?php _e( ‘<img src=”something something’, ‘buddypress’ ) ?>   <span class=”ajax-loader”></span>

    <?php endif; ?>

    doesn’t work. The images shows up but the link doesn’t work. Puzzling.

    David Lewis
    Participant

    I leveraged the existing drop down method in BuddyPress and created the following code. Three files in my child theme. Modify for your needs.

    • header.php
    • _inc/css/custom.css
    • _inc/scripts/nav.js

    header.php

    <div id="wp-nav-bar">
    <ul id="nav" class="main-nav">
    <!-- Community Drop Down -->
    <li <?php if (
    bp_is_page( BP_ACTIVITY_SLUG ) ||
    bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ||
    bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ||
    bp_is_page( BP_FORUMS_SLUG ) ||
    bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
    <a href="<?php echo site_url() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Community', 'buddypress' ) ?>"><?php _e( 'Community', 'buddypress' ) ?></a>
    <ul>

    <?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( 'groups' ) ) : ?>
    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>
    <a href="<?php echo site_url() ?>/<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a>
    </li>

    <?php if ( bp_is_active( 'forums' ) && bp_is_active( 'groups' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) get_site_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 endif; ?>

    <?php if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) : ?>
    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
    <a href="<?php echo site_url() ?>/<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a>
    </li>
    <?php endif; ?>

    </ul>
    </li>
    <?php do_action( 'bp_nav_items' ); ?>
    </ul>
    </div>

    custom.css

    /* Subnav */
    ul#nav li ul {width: 30.7%;}
    ul#nav li ul li {float: none; width: 100%;}
    ul#nav li ul li a {background: none !important; padding: 5px 15px;}
    #wp-nav-bar ul li ul {position: absolute; left: -999em; z-index: 1;}
    #wp-nav-bar ul li ul li a span {display: none;}
    #wp-nav-bar ul li:hover ul,
    #wp-nav-bar ul li li:hover ul,
    #wp-nav-bar ul li.sfhover ul,
    #wp-nav-bar ul li ul li.sfhover ul {left: auto;}

    nav.js

    startList = function() {
    if (document.all&&document.getElementById) {
    navRoot = document.getElementById("nav");
    for (i=0; i<navRoot.childNodes.length; i++) {
    node = navRoot.childNodes;
    if (node.nodeName=="LI") {
    node.onmouseover=function() {
    this.className+=" sfhover";
    }
    node.onmouseout=function() {
    this.className=this.className.replace(" sfhover", "");
    }
    }
    }
    }
    }
    window.onload=startList;

    j(document).ready( function() {
    /* Admin Bar Javascript */
    j("#wp-nav-bar ul.main-nav li").mouseover( function() {
    j(this).addClass('sfhover');
    });

    j("#wp-nav-bar ul.main-nav li").mouseout( function() {
    j(this).removeClass('sfhover');
    });
    });

    #70904
    Hugo Ashmore
    Participant

    Running with a custom page used as a static front page complete with dynamic sidebars and posts page set to a blank page causes issues with missing admin bar and no sidebar. Setting front page to Activity stream and posts page left as the new blank page and issue is resolved. At the moment I can’t see where the problem lies especially as the site functions on a mirror version locally with custom front page.

    #70777
    3sixty
    Participant

    Please don’t use my customization of Boone’s code above. It seems to be causing a failure of the Activity Stream, at least for me. Have not figured out why yet.

Viewing 25 results - 651 through 675 (of 745 total)
Skip to toolbar