Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2004-08-12 05:30:36
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
Have you thought about a modification so that it you can choose the single-unit format in which it’s returned, as in
181 days since…
368 days since…
54400 minutes until…
Rather than having it be solely dictated by what values are passed to it & echoing those back, add an optional layer that allows the user to request in what single unit to get back?
Also… I just discovered that while wraptag was built in, it wasn’t actually implemented. Looks like you forgot to concatenate the strings at the end of the function.
Last edited by compooter (2004-08-12 05:46:18)
Offline
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
Version 0.23 (see the top post for an URL)
- The
wraptag=""
andclass=""
argument now do work. (Thanks for that, compooter.)
Last edited by mamash (2004-10-23 17:44:53)
Who’s gonna textdrive you home tonight?
Offline
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
> compooter wrote:
> Have you thought about a modification so that it you can choose the single-unit format in which it’s returned, as in
>181 days since…
>368 days since…
>54400 minutes until…
>Rather than having it be solely dictated by what values are passed to it & echoing those back, add an optional layer that allows the user to request in what single unit to get back?
I’d be interested in this function as well.
Last edited by cfenison (2004-08-24 16:27:07)
-Chris
chrisfenison.com
Offline
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
OK guys, I will attempt to work this in, but probably no sooner than September. Got to get out of town.
Who’s gonna textdrive you home tonight?
Offline
#29 2004-08-24 20:32:04
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
No rush, just blue-skying ;-)
Offline
#30 2004-09-06 16:38:20
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
Can somebody tell me what I would have to change in the plugin so that the spaces between ‘number of days (months etc.)’ and ‘days (months etc.)’ will become non breaking spaces?
For instance: 7<code> </code>days.
Last edited by doggiez (2004-09-06 16:38:48)
Offline
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
You’d have to change all spaces inside double quotes in the last few lines of the code, which start with “if (!empty”.
And you’re right, a non-breaking space should probably be the default behaviour, I’ll think about it.
Who’s gonna textdrive you home tonight?
Offline
#32 2004-09-06 20:42:13
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
Done that, it works! Thank you, mamash.
Offline
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
Don’t mean to be a pest Mamash, just wondering if you’ve had any time to look into the 320 days until… type thing. To give you and idea, check my wedding countdown on the right side of this page.
Thanks!
-Chris
chrisfenison.com
Offline
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
I get the idea, cfenison, but to tell the truth, I’m a very bad programmer and it takes ages for me to get working results. I won’t have time to implement this in the few next weeks for sure.
Who’s gonna textdrive you home tonight?
Offline
#35 2004-10-30 03:38:15
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
hey mamash, I’ve saved the plugin txt file to my hard-drive, then tried to install as normal…
but I get a bunch of shady characters appearing on my screen when I hit the ‘install’ button…
another plugin (jmr_gallery) installed fine… I am on g1.19
thankin u
Offline
Re: [plugin] [ORPHAN] fha_time_diff: A Time Since generator
Hi nardo,
I’m sorry, I upgraded the plugin format to the RC version and forgot that there are users who haven’t jumped on the dev train yet. OK take this link for the pre-RC plugin format.
Who’s gonna textdrive you home tonight?
Offline