Search found 7 matches

by praabjerg
Sun Aug 16, 2009 2:22 pm
Forum: Plugins
Topic: Missing hook: frontend_display:html_layout
Replies: 13
Views: 5564

Re: Missing hook: frontend_display:html_layout

Here you go. There's a patch for lang_en.inc.php and one for serendipity_event_multilingual.php, and a short documentation text in documentation_en.html. Both patch files are diffs against the files currently available through Spartacus.

I'm not sure I conform entirely to conventions. For instance ...
by praabjerg
Fri Aug 14, 2009 5:40 pm
Forum: Plugins
Topic: Missing hook: frontend_display:html_layout
Replies: 13
Views: 5564

Re: Missing hook: frontend_display:html_layout

Thanks. There we go. Stuff works.
Strangely, the date localization issue fixed itself magically somehow. I'm not entirely sure how that happen, it just started working suddenly, while I was fixing the entry title processing :)
I'm guessing it could be because the server finally registered the new ...
by praabjerg
Fri Aug 14, 2009 12:29 am
Forum: Plugins
Topic: Missing hook: frontend_display:html_layout
Replies: 13
Views: 5564

Re: Missing hook: frontend_display:html_layout

There we go. RSS feeds and sidebar items are translated. Escaping the brackets will exclude them from the processing. You can see the result here: http://struntprat.dk
There are still two quirks I haven't been able to work out, though:

1. Date name translations (in the archive sidebar item, for ...
by praabjerg
Wed Aug 12, 2009 12:52 pm
Forum: Plugins
Topic: Missing hook: frontend_display:html_layout
Replies: 13
Views: 5564

Re: Missing hook: frontend_display:html_layout

Ah. Thanks for the tip. I'm not entirely sure how I overlooked the rss hooks, and I will take a look at enabling escaping. Maybe I can work it all out somehow, anyway, even if I am a bit lazy. :)
Newlines to br conversion is enabled for entries by default in the plugin Markup: NL2BR, which is ...
by praabjerg
Wed Aug 12, 2009 11:59 am
Forum: Plugins
Topic: Missing hook: frontend_display:html_layout
Replies: 13
Views: 5564

Re: Missing hook: frontend_display:html_layout

Great! Thanks.
I think I'll start by trying the latest Subversion checkout of Serendipity. If that turns out to be broken in some way, I'll make do with the template hack, for now. :)

Right now, it's just a very small plugin at 45 lines with no configuration options. And I rely on the Language ...
by praabjerg
Tue Aug 11, 2009 4:36 pm
Forum: Plugins
Topic: Missing hook: frontend_display:html_layout
Replies: 13
Views: 5564

Re: Missing hook: frontend_display:html_layout

Well, I wanted to try and make a simpler plugin for multilingual entries, by using tags instead of storing translations separately in the database.
So an english/danish/swedish entry might look like this in the database (don't mind the weird-looking tags. It's what I came up with at the time ...
by praabjerg
Mon Aug 10, 2009 4:53 pm
Forum: Plugins
Topic: Missing hook: frontend_display:html_layout
Replies: 13
Views: 5564

Missing hook: frontend_display:html_layout

Hi, I was wondering if there is any information on this apparently missing hook. It is listed as an event hook in the Plugin API: http://www.s9y.org/116.html
But it does not appear to exist anywhere in the code. Unfortunately, that list is from 1.0-alpha1, so I guess the hook may have disappeared ...