Search found 177 matches

by LazyBadger
Sun Mar 20, 2011 3:11 pm
Forum: Development
Topic: Smartyfication of existing plugins mini-HowTo, pls
Replies: 10
Views: 8136

Re: Smartyfication of existing plugins mini-HowTo, pls

event_freetag is already smartified. Less than wanted. This part drive me nuts function displayTagCloud($tag) { $tags = $this->getTagCloudTags($tag); echo '<div class="serendipity_Entry_Date freetag_cloud">'; echo '<h2 class="serendipity_date">'; $tagTitle = is_array($this->disp...
by LazyBadger
Sun Mar 20, 2011 1:36 pm
Forum: Development
Topic: Smartyfication of existing plugins mini-HowTo, pls
Replies: 10
Views: 8136

Re: Smartyfication of existing plugins mini-HowTo, pls

It's easy
I
- ask
- some hints
- in the area of converting hardcoded front-end output of plugin into templated output, as it was done with serendipity_event_relatedlinks
- for existing plugin (namely - event_freetag)
by LazyBadger
Sat Mar 19, 2011 8:11 pm
Forum: Development
Topic: Smartyfication of existing plugins mini-HowTo, pls
Replies: 10
Views: 8136

Smartyfication of existing plugins mini-HowTo, pls

Using part of serendipity_smarty_init() from serendipity_event_relatedlinks (or any other templated plugin) as live example
by LazyBadger
Sat Mar 19, 2011 7:54 pm
Forum: General discussions
Topic: Keywords meta generation
Replies: 2
Views: 1881

Keywords meta generation

With event_freetag we have dynamically generated keywords for all pages. But I see strange difference in /categories/* and /tag/* pages - Tag-page have cumulative set of keywords from all tags from selected entries - Category-page have "default" set of keywords ("Top N" for site)...
by LazyBadger
Mon Mar 14, 2011 4:34 pm
Forum: Development
Topic: Russian translations (some of)
Replies: 4
Views: 5003

Re: Russian translations (some of)

ACK.
3 zip
- locale
- base plugings
- spartacus plugins
by LazyBadger
Mon Mar 14, 2011 2:10 pm
Forum: Development
Topic: Proper months localisation
Replies: 35
Views: 21479

Re: Proper months localisation

I newer said and even never think about changing core, and always said about free to use additional modifier - inside or outside s9y "General" means only - "none patching in codefor new language's dates" Regarding this, the best solution by now is to have this modifier as simple ...
by LazyBadger
Mon Mar 14, 2011 1:41 pm
Forum: Development
Topic: Proper months localisation
Replies: 35
Views: 21479

Re: Proper months localisation

Well, my motivation is not only solve my small annoyance with date, but to generate usable and correct solution at least for any s9y user or (at max degree) fr any Smarty-user
by LazyBadger
Mon Mar 14, 2011 12:56 pm
Forum: Development
Topic: Proper months localisation
Replies: 35
Views: 21479

Re: Proper months localisation

Well, my first idea was to send newmonth array to modifier by entries.tpl or config.inc.php, thats why. If we know all possible language arrays, better will be something like ... I'm sure it's not better - we'll never can know all languages, more languages => more size of file, adding files for any...
by LazyBadger
Mon Mar 14, 2011 12:23 pm
Forum: Development
Topic: Proper months localisation
Replies: 35
Views: 21479

Re: Proper months localisation

Danke, it will work for me. But how we'll handle arrays for other languages ($$newmonth)? I.e - where to store hash-definitions (outside modifier code)
BTW - why not use strtr() insted of additional array and cycle? One-liner is more readable, at least
by LazyBadger
Sun Mar 13, 2011 4:30 pm
Forum: Plugins
Topic: Weird Timezones Plugin
Replies: 5
Views: 4482

Re: Weird Timezones Plugin

Actually, I just want to show to different timezones in my blog using the provided "timezones plugin". AFAIK, there ARE NOT any "timezones plugin" for correcting display-time in user's local time. You can only define 1 time offset and time will be corrected from server's time ac...
by LazyBadger
Sun Mar 13, 2011 1:25 pm
Forum: Development
Topic: Proper months localisation
Replies: 35
Views: 21479

Re: Proper months localisation

Well, my rough blanks lang/UTF-8/serendipity_lang_ru.inc.php ... $cased_month = array ( 'Январь' => "января", 'Февраль' => "февраля", 'Март' => "марта", 'Апрель' => "апреля", 'Май' => "мая", 'Июнь' => "июня", 'Июль' => "июля", 'Ав...
by LazyBadger
Sat Mar 12, 2011 7:56 am
Forum: General discussions
Topic: Comments from several a day to zero
Replies: 7
Views: 4069

Re: Comments from several a day to zero

Are there any spam plugin stuff that I may have wrong or something? I am using 1.77. Configured with care Akismet + SURBL + "moderate after ... days" solved most of my troubles. With "Discard spam" and "Moderate rest" I have small subset of comments to moderate (open c...
by LazyBadger
Fri Mar 11, 2011 4:58 pm
Forum: Development
Topic: Proper months localisation
Replies: 35
Views: 21479

Re: Proper months localisation

Timbalu wrote: You could make a testlocale.php with all possible russian locales and test them one by one
For all supported Russian locales I got identical result
Пятница, 11 Март 2011
as it shows Serendipity also
by LazyBadger
Fri Mar 11, 2011 3:38 pm
Forum: Development
Topic: Russian translations (some of)
Replies: 4
Views: 5003

Re: Russian translations (some of)

No, I don't think so. We only have internal repositories, also to ensure the contents of files. I don't ask clone repo with your code for me . I have translations in open repo , and this repo is Mercurial repo, conent of which you can get as it needed, if you're familiar with any mercurial client. ...
by LazyBadger
Fri Mar 11, 2011 12:23 pm
Forum: Development
Topic: Proper months localisation
Replies: 35
Views: 21479

Re: Proper months localisation

Timbalu wrote:What is the trouble with your modifier.localmonth.php?
Missing code of plugin, I write it from the first my post - I have php-code and business logic of smarty-modifier, can't convert it into real, live smarty-modifier