logantscott
Forum Replies Created
-
Forum: Plugins
In reply to: [Social] Timestamps brokenSorry I didn’t make a ticket or something, don’t really understand how to use GitHub. I just wanted to try to fix the code for this plugin because it seems like the closest plugin to what I’m looking for. I know there were other functions in date.php that looked like they needed to be fixed too (span_formatted and maybe fuzzy). Thanks!
Forum: Plugins
In reply to: [Social] Timestamps brokenAlso on 2)… I don’t think this plugins social aggregation features are really working as intended. I’ll have to ‘like’ one of my posts later so I can see if this is happening to me.
Forum: Plugins
In reply to: [Social] Timestamps broken1) I personally don’t know much about localization. Did you mix that up? I see the top 3 in English and the others in… not english (nl?). I noticed another error in the function with “weeks” and I’ll link the new one below.
2) I also don’t know how Social imports comments… do you mean the WordPress comments? Social just looks at the timestamps in the comments table. I don’t know if you know how to look at the database (with phpMyAdmin or something), but if you look at those comments in the comments table, see if the timestamps are correct there.
Forum: Plugins
In reply to: [Social] Timestamps brokenIn social/lib/social/date.php, some functions were changed in the most recent version. In the function span_comment, each ‘if statement’ originally returned the output when it was first matched (years ago, months ago, weeks ago, etc.), but ‘return’ was replaced with a variable and now it matches all the way down and returns at the end (with the last match being hours/minutes, so it only returns that).
Forum: Plugins
In reply to: [Social] Timestamps brokenI just realized I’m having this problem too. I’m going to look into it later today and see if I can figure out what’s going on.
Forum: Plugins
In reply to: [Social] Timestamps brokenDecided to try and figure this out myself… here’s what I found.
Timezone isn’t taken into account when comparing dates. The comment_date_gmt gets compared with time(), which is local for me because I’ve set the timezone in my header.php via date_default_timezone_set(‘America/Los_Angeles’) (I think I had trouble getting the timezone to work by setting it in the backend and/or in the ini file).
Not sure what the best workaround is. I’m just going to try setting the local time myself in date.php.
Forum: Themes and Templates
In reply to: Custom taxonomy>term>child terms page template?On second thought, I’ll just try adding some kind of if statement in the archive.php file.
if (is_tax('reporter')) { reporter loop } else { normal loop }
That should work, right? I’m still new to WordPress and PHP. Looking at the template hierarchy, it looks like taxonomy template pages only work for archives and individual terms. I was hoping to get one template to apply to a set of child terms.