Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 7 results - 1,226 through 1,232 (of 1,232 total)
  • Author
    Search Results
  • #42443
    nightstalker101
    Participant

    Thanks again for your help. Oh, no, this time, I´m gonna tell you something ;) :

    ´

    <li class=”group-box”>

    <div class=”left”>

    “><?php bp_the_site_group_avatar_thumb() ?>

    <?php $member_count = groups_get_groupmeta( $group->id, ‘total_member_count’ ) ?>

    <?php echo ucwords($group->status) ?> <?php _e( ‘Group’, ‘buddypress’ ) ?>

    <?php if ( $member_count == 1 ) : ?>

    <?php printf( __( ‘%d member’, ‘buddypress’ ), $member_count ) ?>

    <?php else : ?>

    <?php printf( __( ‘%d members’, ‘buddypress’ ), $member_count ) ?>

    <?php endif; ?>

    </div>

    <div class=”right”>

    <div class=”group-top”>“><?php bp_the_site_group_name() ?><?php bp_group_join_button( $group ) ?>

    <div class=”clear”></div>

    </div>

    <span class=”activity”><?php echo bp_core_get_last_activity( groups_get_groupmeta( $group->id, ‘last_activity’ ), __(‘active %s ago’) ) ?></span>

    <div class=”excerpt”>

    <?php // echo bp_create_excerpt( $group->description ) ?>

    <?php bp_the_site_group_description() ?>

    </div>

    </div>

    <div class=”clear”></div>

    ´

    thsi is the code from my custom theme file. And here the Css, maybe there is a better solution, but it works:

    ´

    .group-box{margin:15px auto 10px -30px;height:80px;width:800px;background: url(../images/group_list_item.jpg);

    padding:10px 20px 25px 15px;list-style:none;text-align:justify }

    .left{float:left;width:65px;height:82px;font-size:9px;color:#686868;line-height:11px;text-align:right}

    .group-avatar img{border:1px solid #686868;height:60px;width:60px}

    .right{float:left;height:82px;margin-left:5px;width:725px}

    ul#letter-list li {float: left;height:25px; width:27px;margin-right:5px}

    .group-top{height:20px;}

    .group-link{text-decoration:none;font-size:16px;color: #ff7f00;float:left}

    .group-link:hover{text-decoration:underline}

    .excerpt{color:#1a1a1a;font-size:12px;}

    .activity{font-size:11px;color:#686868; font-style:italic;display:block;margin:0;padding:0}

    .leave_group, .join_group{float:right;display:block;padding:4px 0 0 24px;margin:0;font-size:10px;text-decoration:none;

    color:#bd2100;height:21px;width:96px;background: url(../../bp-groups/images/leave_group.png);font-weight:bold}

    .leave_group:hover, .join_group:hover{text-decoration:underline}

    .join_group{color:green}

    #group-dir-count{margin:0 0 5px 2px;font-size:12px;color:#686868}

    ´

    Can you still tell me, how I get the recent activities that happened on the page?

    I tried to call the function, but all I got, was the time.

    Thanks

    #3825
    Alex
    Participant

    Hi all,

    I’m developing a custom theme which I’m hoping can create a more comprehensive ‘Activity’ centre, firstly showing recent activity from all of the users friends, groups, events etc, and then being sortable to just show activity of their groups for example.

    Currently, there is no way of getting recent group activity, available somewhere like example.com/groups/groupname/activity or example.com/members/membername/activity/my-groups

    Feeds like this will be really important to create a good, comprehensive feed of everything relevant to the user.

    How would I go about possibly patching these components to make them create feeds and make them available to the user on a specific page? I’m not a PHP guru but if I’m shown how I would be happy to go about doing the manual work, all part of learning :)

    Cheers,

    Alex

    #3709
    Paul Wong-Gibbs
    Keymaster

    OK I have spent this weekend working on modifying the default BP widgets. Some have been harder to customise than others.

    I am having lots of trouble getting the site activity midget changed to how I want it.

    bp-blogs.php, bp_blogs_format_activity().

    return array(

    'primary_link' => $blog_url,

    'content' => apply_filters( 'bp_blogs_new_blog_activity', sprintf( __( '%s created a new blog: %s', 'buddypress' ), $user_link, '' . $blog_name . '' ) . ' <span class="time-since">%s</span>', $user_link, $blog_url, $blog_name )

    );

    This bit <span class="time-since">%s</span> is where I’m up. I am assuming the %s goes through another sprinft() call on page generation. I need to know where and how, as it generates output like this which I need to change: &nbsp;& 10 minutes ago

    Please help

    #3649
    Alex
    Participant

    Hey,

    I’m not sure if this has been discussed or not, but I would love for a user to be able to visit something like; example.com/home/ or even the normal homepage and a Facebook style homepage appear.

    It would ideally feature a sort of amalgamation of all my friends activity streams into one, and things like that. Almost like a portal type of page personalized to that specific user.

    Any thoughts?

    I realise this can probably be done in a theme, editing the sites home.php template file and checking for the current user etc; but what built-in functions exist for a ‘my friends activity’ stream.

    I think this could be a great core addition, especially if we allowed the use of widgets etc so they user could *choose* what appeared on their own customized welcome screen.

    Cheers,

    Alex

    #3396
    belogical
    Participant

    I’m customizing my new theme and can’t figure out how to call the widgets. How do I call the welcome, site wide activity, etc… in a custom page?

    #35056
    Burt Adsit
    Participant

    The bp home theme is really just a widget framework. You can install any widget you like in that theme. You can modify the standard ‘activity’ and ‘recent blog posts’ widgets. You can install a plugin that aggregates feeds from specific blogs. Your requirements are pretty specific so you have to decide if you are going to develop custom code or try to utilize some off the shelf plugins.

    To answer your question. No there isn’t a mechanism in place that allows you to be selective in the posts that show up using the ‘sitewide activity’ or ‘recent blog posts’ widgets.

    Have fun. (but don’t tell anyone we are though)

    #35055
    Burt Adsit
    Participant

    The bp home theme is really just a widget framework. You can install any widget you like in that theme. You can modify the standard ‘activity’ and ‘recent blog posts’ widgets. You can install a plugin that aggregates feeds from specific blogs. Your requirements are pretty specific so you have to decide if you are going to develop custom code or try to utilize some off the shelf plugins.

    To answer your question. No there isn’t a mechanism in place that allows you to be selective in the posts that show up using the ‘sitewide activity’ or ‘recent blog posts’ widgets.

    Have fun.

Viewing 7 results - 1,226 through 1,232 (of 1,232 total)
Skip to toolbar