Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
You can override the date formats as set in the preferences. Personally, I think they don’t belong in the preferences, because tag attributes can have sensible defaults anyway and people always have their own preference which happens to be not listed as an option on the preference page ;)
Offline
#50 2008-01-28 22:21:01
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
Just ran all my plugins that I intend to continue with to test for the RC1 download, and with some minor modifications to some of the older tagbuilders they all run without any problems.
I’ve an article with the details online here and an Archive” for any that are currently using any of them if they would like to update.
Otherwise nothing has caught my eye as a problem.
Thanks for all your efforts with Textpattern.
Offline
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
I have another non-essential change that I think would improve things. The default 3-column layout with content in the centre has been critically shot down by Andy Rutledge here. I think he makes a good argument, so I have made an alternative stylesheet txp406.css and you can see a screenshot here.
The default and archive pages are exactly the same except that I have moved the “center” div directly above the “left” div. That puts the main content above the secondary content. Whether you would use this alternative or not, I would change the “left”, “right” and “center” div comments to “side1”, “side2” and “maincontent” or at least something that reflects their purpose rather than their positioning.
I’ve allowed for horizontal alignment in the new layout by using line-height and margins, so that even if h1, h2, h3, p, ul and input are different font sizes they will still line up horizontally across the 3 columns.
Any good?
Offline
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
Peter, such changes can’t be made this late in the release. The risk of accidentally breaking stuff while editing templates it just too big. The default template can definitely be improved, that’s for sure.
Offline
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
Does anyone have any suggestions on what changes are needed to mem_self_registrer in order to get the Install Wizard to run?
Offline
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
Micheal, the latest mem_self_register plugin doesn’t seem to miss add_privs (which is what’s causing problems for other plugins). Please try the latest version of that plugin (just released). If it doesn’t work, report it in the corresponding plugin author support topic
Offline
#55 2008-01-29 12:40:52
- Neko
- Member
- Registered: 2004-03-18
- Posts: 458
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
There’s a bug in “Logs” I think, all links pointing to site’s articles are broken. Example: instead of linking to:
http://www.example.com/news/83/gli-anagrammi-nei-videogiochi
it links to:
http://www.example.com/textpattern/news/83/gli-anagrammi-nei-videogiochi
Offline
#56 2008-01-29 14:00:10
- nhurtley
- Member
- Registered: 2007-03-14
- Posts: 18
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
Just upgraded both my personal site and my vegetarian blog to 4.0.6rc1. Everything seems to be working as expected, including the zem_redirect_pro, ob1_title and sac_link_in_excerpt plugins.
Offline
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
Neko wrote:
There’s a bug in “Logs” I think, all links pointing to site’s articles are broken.
Thanks, Neko. Fixed.
As an aside: This bug was introduced 19 months ago and to my best knowledge never ever reported before, so it makes we wonder if you’ve just discovered an absolutely unused Txp feature ;-)
Offline
#58 2008-01-29 16:23:47
- Neko
- Member
- Registered: 2004-03-18
- Posts: 458
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
LOL, I don’t know, I use it quite a lot but I’m a kind of access logs addicted. O_O
Anyway, thanks for all the hard work on 4.0.6!
Last edited by Neko (2008-01-29 21:08:17)
Offline
#59 2008-01-29 17:10:15
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
Something that should have been fixed a long time ago : the since() function. In latin languages, the “ago” is to be put in the start of the string, instead of at the end. Up to now, to avoid the problem, ‘ago’ has been translated to ‘earlier’ in those languages. Which gives an akward result (posted 3 days earlier).
Here’s a fix. It also replaces “1 day ago” with “Yesterday”.
// -------------------------------------------------------------
function since($stamp, $before = "")
{
if (!$before && in_array(LANG, array('fr-fr')))
$before = 1;
$diff = (time() - $stamp);
if ($diff <= 3600) {
$mins = round($diff / 60);
$since = ($mins <= 1)
? ($mins==1)
? '1 '.gTxt('minute')
: gTxt('a_few_seconds')
: "$mins ".gTxt('minutes');
} else if (($diff <= 86400) && ($diff > 3600)) {
$hours = round($diff / 3600);
$since = ($hours <= 1) ? '1 '.gTxt('hour') : "$hours ".gTxt('hours');
} else if ($diff >= 86400) {
$days = round($diff / 86400);
if ($days <= 1)
return gTxt('yesterday');
else
$since = "$days ".gTxt('days');
}
return ($before) ? gTxt('ago')." $since" : "$since ".gTxt('ago');
}
The good thing about it is, we can upgrade it language by language as soon as the correct translation for “ago” is given, by adding that language to the array. French for it is “Il y a “. French for yesterday is “Hier”.
Offline
Re: Feedback to: Help us test the release candidate for the upcoming 4.0.6
Neko wrote:
LOL, I don’t know, I use it quite a lot
Thought a little deeper this time… You’re right, I chased a non-existant bug while another one was staring right into my face. Sigh!
Offline