Using s9y 1.7-alpha1 (aka “master”) in a dev blog, I get a zero in front of every directory I add to the media db. This is only displayed in select elements in the backend, i.e. when I pre-select a directory in any of the media db dialogues. It's not displayed in the directory list or settings. Only tested in Chrome.
YL
Media db “leading zero” in dir names
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Media db “leading zero” in dir names
Hi!
Thanks for the heads-up. I suppose this is due to the smartification of the backend templates. Timbalu, can you reproduce/check this?
Regards,
Garvin
Thanks for the heads-up. I suppose this is due to the smartification of the backend templates. Timbalu, can you reproduce/check this?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Media db “leading zero” in dir names
He said 
Smartification is in 2.0!Using s9y 1.7-alpha1 (aka “master”) in a dev blog
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Re: Media db “leading zero” in dir names
I would expect its this as found in templates\default\admin\media_upload.tpl and media_pane.tpl, which can't cope with Smarty 3 somehow..., needs investigation!
Code: Select all
{' '|@str_repeat:$folder.depth*2} Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Re: Media db “leading zero” in dir names
fixed str_repeat modifier use …
A Smarty3 modifier has higher priority than multiplication, so we have to use parenthesis to execute math first. Using additional parenthesis will do no harm in Smarty2 environments, so better check for others.
A Smarty3 modifier has higher priority than multiplication, so we have to use parenthesis to execute math first. Using additional parenthesis will do no harm in Smarty2 environments, so better check for others.
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Re: Media db “leading zero” in dir names
Just stumbled upon: same error for the category select field when upload new media. (In recent 2.0 branch.)
YL
YL
Re: Media db “leading zero” in dir names
Is that a question to repair?
It should already be there in 2.0 smartified files. See
https://github.com/s9y/Serendipity/comm ... upload.tpl
Please update your files at
https://github.com/yellowled/s9y-admin- ... d.tpl#L233
to
Update: I send you a pull request.
It should already be there in 2.0 smartified files. See
https://github.com/s9y/Serendipity/comm ... upload.tpl
Please update your files at
https://github.com/yellowled/s9y-admin- ... d.tpl#L233
to
Code: Select all
{' '|@str_repeat:($folder.depth*2)} {$folder.name}</option>Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Re: Media db “leading zero” in dir names
More like “stumbled upon it, didn't have the time to take a closer look myself because I'm knee-deep in media db tpl files, so I thought I'd report it”.Timbalu wrote:Is that a question to repair?
Thanks. I love getting those.Timbalu wrote:Update: I send you a pull request.
YL