Forum Replies Created
-
Here is the actual patch
https://buddypress.trac.wordpress.org/changeset/7240
After you implement the patch, go into Settings and change your Timezone.
The dashboard > activity is correctly displaying after applying trishasala’s patch (4573.patch)
https://buddypress.trac.wordpress.org/ticket/4573#comment:19
In reply to: [Resolved] Empty pages displaying after UpdatesBackUpWordPress (2.2.2) was the problem, I deleted from wp-content/plugins
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
In reply to: Achievements plugin update errorResolved
In reply to: Activity Stream Date FormatWhat 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!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.
In reply to: Demo site of Buddy PressAre you looking for this? http://testbp.org/
Along with custom code, make use of plugins that already exist.
i.e. https://buddypress.org/community/groups/rating-widget/
https://buddypress.org/community/groups/buddypress-links/
Also look at prem. themes
http://themeforest.net/item/score-review-wordpress-buddypress-theme/703127I like this idea too, currently looking in here for ideas.
https://codex.wordpress.org/Function_Reference/wp_tag_cloud
http://etivite.com/api-hooks/buddypress/component/bp-activity/In reply to: Buddypress Activity Time is off by 5 hoursTo clear things up the div class inside the “dashboard > Activity” is
`
`Which is displaying the wrong times.
I think my WordPress and Server is config correctly because the div in the “/activity” called`
`Is displaying the correct times.
If anyone running a Buddypress site can compare the times from`/activity`
to
`/wp-admin/admin.php?page=bp-activity`
would really help me narrow this down. Thanks in advance!
EDIT ****
Here is a screenshot of the settings
My Settings screenshotIn reply to: Buddypress Activity Time is off by 5 hoursHey, I just saw the reply to this ticket. (Sorry about the time it took to reply)
Regarding
https://buddypress.trac.wordpress.org/ticket/4573I’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!
In reply to: Changing Activity Stream Time & DateGetting 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.phpGithub – https://github.com/davidtcarson/frisco/blob/master/functions.php
Pastebin – http://pastebin.com/2gyXjCnKSo 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.In reply to: Activity search by date?Thanks for the info @djpaul
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.
In reply to: Installation stops at PermalinksOne solution would check the mod_rewrite module in Apache is on. This deals with the permalink problems.
https://codex.wordpress.org/Using_PermalinksIn reply to: Buddypress Activity Time is off by 5 hoursThanks @r-a-y
https://buddypress.trac.wordpress.org/ticket/4573
Let me know if I need to clear anything up.In reply to: Buddypress Activity Time is off by 5 hoursSame 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?
In reply to: Buddypress Activity Time is off by 5 hoursI 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`
In reply to: Buddypress Activity Time is off by 5 hoursLooks 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 );`In reply to: Changing Activity Stream Time & DateI 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 ) );
}
`In reply to: Changing Activity Stream Time & DateI 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 styleIn reply to: Changing Activity Stream Time & DateThanks 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!
In reply to: Changing Activity Stream Time & DateOk, 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.