Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 25 total)
  • @mgkoller

    Participant

    Here is the actual patch

    https://buddypress.trac.wordpress.org/changeset/7240

    After you implement the patch, go into Settings and change your Timezone.

    @mgkoller

    Participant

    The dashboard > activity is correctly displaying after applying trishasala’s patch (4573.patch)

    https://buddypress.trac.wordpress.org/ticket/4573#comment:19

    @mgkoller

    Participant

    BackUpWordPress (2.2.2) was the problem, I deleted from wp-content/plugins

    @mgkoller

    Participant

    @mgkoller

    Participant

    have you tested this on a vanilla WP BP install

    If it helps at all I got the times working using the BBpress forum running alongside BuddyPress, But I’m still having the same issues that you posted regarding the BuddyPress Activity times.

    BBPress Screenshot
    BBPress Time Example

    @mgkoller

    Participant

    Resolved

    @mgkoller

    Participant

    @amalsh

    What file did you add this filter to?
    `
    function format_activity_date() {
    $activityDate=bp_get_activity_date_recorded();
    return date(“F j, Y g:i a”, strtotime($activityDate));
    }
    add_filter(‘bp_activity_time_since’, ‘format_activity_date’);
    `
    The functions.php in your theme folder? Line number? I’m looking to do something similar, Thanks in advance!

    @mgkoller

    Participant

    I am using WordPress 3.5. , BuddyPress Version 1.6.2, BBPress Version 2.2.3

    BBPress is displaying the correct time, Buddpyress activity displays the correct time I.E “posted 5 seconds ago” But times are wrong in Dashboard > Activity , which causes searching for activity updates along with plugins such as BuddyPress Component Stats to pull the wrong times.

    @mgkoller

    Participant

    Are you looking for this? http://testbp.org/

    @mgkoller

    Participant

    @mgkoller

    Participant

    @mgkoller

    Participant

    To clear things up the div class inside the “dashboard > Activity” is

    `

    @mgkoller

    Participant

    Hey, I just saw the reply to this ticket. (Sorry about the time it took to reply)
    Regarding
    https://buddypress.trac.wordpress.org/ticket/4573

    I’ve done several fresh installs of WordPress, then installing the BuddyPress plugin using (Mamp).
    Using WordPress 3.4.2. / BuddyPress Version 1.6.1
    When I post activity (either on my localhost or my live site)
    The Activity time is right BUT
    Several Hours are added when I visit the Activity panel inside my dashboard “wp-admin/admin.php?page=bp-activity”
    I use the dashboard Activity because of its search and dates.

    I would even assume it does this in http://testbp.org/activity/ but the Dashboard activity panel is hidden. Let me know if there are any fixes or if I need to re-clarify anything. Thanks for your help!

    @mgkoller

    Participant

    Getting back to this issue
    `
    You add the filter (and associated hook) in your functions.php file
    `
    I’m using the Frisco theme so here is the functions.php

    Github – https://github.com/davidtcarson/frisco/blob/master/functions.php
    Pastebin – http://pastebin.com/2gyXjCnK

    So I need to ‘hook’ the filter onto one of those hooks that bp_insert_activity_meta provides .
    I’m currently trying to find out were to insert this hook in the Frisco functions.php file
    Here’s the custom hook

    `
    add_filter( ‘bp_activity_time_since’, strftime ($time,’l jS of F Y h:i:s A’,);
    `
    Obviously this function isn’t going to work but I’m trying to get the bigger idea,
    I’m doing this on my Localhost using Mamp so I can just work by trial and error.

    @mgkoller

    Participant

    Thanks for the info @djpaul

    @mgkoller

    Participant

    If your trying to search activity, I use this (https://github.com/sbrajesh/bp-searchable-activity) which adds an “activity” option in the buddypress dropdown search.

    @mgkoller

    Participant

    One solution would check the mod_rewrite module in Apache is on. This deals with the permalink problems.
    https://codex.wordpress.org/Using_Permalinks

    @mgkoller

    Participant

    Thanks @r-a-y
    https://buddypress.trac.wordpress.org/ticket/4573
    Let me know if I need to clear anything up.

    @mgkoller

    Participant

    Same thing happens when I run Buddypress on my localhost (MAMP) so I know its not a server problem. I assume `http:// “your web site” /wp-admin/admin.php?page=bp-activity ` is off by 5 hours for everybody else?

    @mgkoller

    Participant

    I also noticed this in my settings, how can I make it so that the activity pulls from local time and not utc time (which makes it 5 hours off)

    `UTC time is 2012-09-25 17:44:21 Local time is 2012-09-25 12:44:21`

    @mgkoller

    Participant

    Looks like other’s have ran into this issue,
    http://premium.wpmudev.org/forums/topic/activity-time-display-is-off-by-5-hours
    Is this because of
    `$time_offset = $time + ( $root_blog_offset * 3600 );`

    @mgkoller

    Participant

    I haven’t solved the problem yet, Here’s were I’m looking https://codex.wordpress.org/Function_Reference/add_filter

    Here’s were I think the filter needs to be added?

    `
    * @uses bp_insert_activity_meta()
    * @uses apply_filters_ref_array() To call the ‘bp_get_activity_action’ hook
    *
    * @return string The activity action
    */
    function bp_get_activity_action() {
    global $activities_template;

    $action = $activities_template->activity->action;
    $action = apply_filters_ref_array( ‘bp_get_activity_action_pre_meta’, array( $action, &$activities_template->activity ) );

    if ( !empty( $action ) )
    $action = bp_insert_activity_meta( $action );

    return apply_filters_ref_array( ‘bp_get_activity_action’, array( $action, &$activities_template->activity ) );
    }
    `

    @mgkoller

    Participant

    I think I found it, Its in bp-activity > bp-activity-template.php > starts line 1187 > bp_activity_time_since’
    Thanks @rogercoathup for bp_insert_activity_meta() function hint

    *Update*
    bp_core_time_since( $activities_template->activity->date_recorded ) date_recorded would be the post date
    so it looks like I need to make a new function that uses the regular PHP time function to display the time style

    @mgkoller

    Participant

    Thanks so much for responding. I’m having trouble locating this “bp_insert_activity_meta()” function . I can’t find it in entry.php or activity/index.php or anywhere else.

    Or is this a hidden file that I can only access from the server?
    If you could tell me which php file its hiding in it would be much help.

    Thanks!

    @mgkoller

    Participant

    Ok, does anybody know were the activity stream editor is located? Is it activity/activity-loop.php? I’m having trouble finding the correct php line to edit.

Viewing 25 replies - 1 through 25 (of 25 total)
Skip to toolbar