Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
Els wrote:
Could it have been the browser cache?
It’s the first thing I thought of too. no… It wasn’t that.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#50 2009-02-12 11:43:12
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
Are there any others plugins to do the same work?
Offline
#51 2009-02-12 17:21:57
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
candyman wrote:
Are there any others plugins to do the same work?
Do you need another one? This one still works for me. (Oh dear, just noticed that I completely forgot my site’s 5th birthday…)
Offline
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
I’ve been happily using this plugin since 2004 but it now stopped working, returning the following errors:
Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /path/to/textpattern/plugins/fha_time_diff/fha_time_diff.php on line 182
Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /path/to/textpattern/plugins/fha_time_diff/fha_time_diff.php on line 184
It looks like an easy fix but I have no idea where to start.
The source code can be found on github.com/colak/neme/blob/master/plugins/fha_time_diff_zip.txt
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
Yep should be an easy fix. Gimme a few mins, I’ll bundle up a patch.
EDIT: untested but try this version:
# Name: fha_time_diff v0.23 (compressed)
# Type: Public plugin
# Returns time difference from the date set via arguments.
# Author: Filip Hajny
# URL: http://filip.hajny.net
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern CMS - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................
H4sIAAAAAAAAA+U8a5PbNpKf7ar8B4TrsqSNRq8ZP6LRaMpn57F7cbwVe3crFbumMCIk0aZI
HQlaVnb9k+5X7B/bfgAgSFEzdM73IXfjkkgBje5Go18A2ZbT8Xj6j3x6Ng0SuVHBeT4dn06D
5Vpe6WijrsJoucTGh9NAFnqdZgQxngbfRnG0Fd/Lt8memkYW4KrIImyZTKbBWuvtdDhcIuxg
jbCDRGnsfTQN3qssj9IEfwH10WByanGHKl9k0Vab3gdA/CeliyzJBTIlkCmVqWShxDJLN0Kv
oU1qJXKlxftICpmtio1KdD4w2BdpyHObnE3gZ7QU3UUs8/xKfYhynXc7r1+pD3ortVZZ8vqV
XL3+Sa2gJ9t3ej3xjy/uCvHqw3Y6XSl9IywCCnEyz6hFZd1ORZKd3vkXdz9+cRf/LYtkgTMU
FYjuPcCbE0nGhaxG+ZXMMrk3nT0B9DO50Ob3OcIO/8jww6EIFcwtU2KfFpmIZbIq5EqJNUhM
dNVArAaiE6qOWKaZ+E5lG5kIpRcDw/u9WFyIjko65+b3Ls3C/Jc30Hovrrbdi7GVOevk0WYb
q21cZDLOO/3OXskMLps00Wu4hnIP32vgCBujpNAKblLQgSwK8TaPYDnhWiQ6iuEKM5MLHAnL
pEluZnbAbpRotVIZzYDpCkNYnAhYduhClVhGWa5FUmyuqUFqUeQqF9IA4/CN6BZ5IeN4LyY9
RwLQ/qqyVOhUgJSj96hayMZJGK0iLfKtWkTLaEEIcitTZObpr2qxdiLv1aX1S01KKL5JObMM
OiToNHOci12k10Jut1m6zSLkAREZokgN5pgrITcpyMyxQYKHBeCbjr+0QAK0qQBJr0SFkb5I
E5AAy0vvUpRhFoGoEqVClMK1YrHCr+5IRLkvwb4YYwtiLUDtqK1h5sTNG2h0GjOCxR3DZwKf
U/icwecBfB7C5xF8HsPna7fyPi5WqjefBRcqJrL1OXCRen+uObKNvPmtuHixf3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dkWGcgawvPBTtfkzd4pHAiQtjOi2KKSCf6vTYBYBL4d8ud9Y3r/Tuo1pOjJACL+
sNgOg/lzmb0T3w/Ef5oezNppC4zHf6fTYBPSOeHpZBosFpPRo/Ho9FR+LR89npyePX48eXQ2
fnz94Hr06Hoig/OP/wY2g1ve+EUAAA==
Last edited by Bloke (2021-07-23 20:19:17)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Online
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
Bloke wrote #331111:
Yep should be an easy fix. Gimme a few mins, I’ll bundle up a patch.
EDIT: untested but try this version:
# Name: fha_time_diff v0.23 (compressed)...
^^ Works like a charm. Thanks so much Stef!!!
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline