Search found 54 matches

by Mekk
Wed May 27, 2009 11:48 pm
Forum: Plugins
Topic: Markdown mishandling quotes in comm (plugin called twice???)
Replies: 4
Views: 2412

Re: Markdown mishandling quotes in comm (plugin called twice???)

After some more consideration I decided it is simpler (and more manageable) to implement workaround in the plugin than in the core - replace leading > with > before filtering with markdown. I don't think this unescape alone brings significant risks when the remaining HTML characters are still filter...
by Mekk
Mon May 25, 2009 11:25 am
Forum: Plugins
Topic: Markdown mishandling quotes in comm (plugin called twice???)
Replies: 4
Views: 2412

Re: Markdown mishandling quotes in comm (plugin called twice???)

Yeah,that's a restriction of how comments are handled by s9y. ">" is HTML markup, and potentially evil. Thus it's corrected by s9y so that it is escaped, but then markdown won't handle this at that instance properly. Hmm, so it is by design? Could you elaborate a little bit on where exact...
by Mekk
Fri May 22, 2009 8:48 pm
Forum: Plugins
Topic: Markdown mishandling quotes in comm (plugin called twice???)
Replies: 4
Views: 2412

Markdown mishandling quotes in comm (plugin called twice???)

I am using markdown plugin, applying it to both the article body and the user comments. And there is a problem. While most things works as expected, markdown quotations in comments (only in comments) do not work. So, instead of having > blah blah blah > bleh bleh bleh turned into blackquote, I get t...
by Mekk
Wed Feb 18, 2009 12:28 am
Forum: General discussions
Topic: Nailing down XML error on article save (traceback sending???
Replies: 2
Views: 1675

Re: Nailing down XML error on article save (traceback sending???

Hi! That is the only entry?! This is highly unusuall, usually PHP outputs a filename and linenumber on where an error occurs. Yes, nothing else, just this error. And exactly once per every article published. I think it must be xmlrpc ping related; do you use the "announce entries" plugin,...
by Mekk
Fri Feb 13, 2009 1:29 am
Forum: General discussions
Topic: Nailing down XML error on article save (traceback sending???
Replies: 2
Views: 1675

Nailing down XML error on article save (traceback sending???

For some time, whenever I publish a new article, I find in PHP error log: [12-lut-2009 20:26:41] XML error at line 1, check URL There is no information in the browser, nothing else in the log, and the problem happens only when I publish a new article = when I switch it from draft to published state ...
by Mekk
Fri Jan 09, 2009 12:30 pm
Forum: General discussions
Topic: markdown + [autolinks][] + IE = problem (?)
Replies: 5
Views: 2791

Solution: the problem was not serendipity/markdown/geshi rel

Just a note: the problem turned out to be unrelated to serendipity and it's components (and the note above is incorrect). My links were spoiled by misbehaving text-link-ads script I used (Polish ads provider, activated on English blog by mistake). This script injects <span>'s around blocks of normal...
by Mekk
Tue Jan 06, 2009 10:59 pm
Forum: General discussions
Topic: markdown + [autolinks][] + IE = problem (?)
Replies: 5
Views: 2791

After I disabled Geshi those extra <span>'s seem to be gone, at least in one place (still to make more detailed testing).

Still, links are shown incorrectly but this turns out to be a CSS issue. JOining "I hate IE club" ;-)
by Mekk
Fri Jan 02, 2009 5:15 pm
Forum: General discussions
Topic: markdown + [autolinks][] + IE = problem (?)
Replies: 5
Views: 2791

Re: markdown + [autolinks][] + IE = problem (?)

Is this [link][] functionality part of Markdown? Yes, one can write [SomeName]: http://... [OtherName]: http://.... and below use syntax like [SomeName][] to get links. Or [some other text][SomeName]. Which event plugins do you have installed? In cases like these, the order might be significant. Te...
by Mekk
Thu Jan 01, 2009 5:09 pm
Forum: General discussions
Topic: markdown + [autolinks][] + IE = problem (?)
Replies: 5
Views: 2791

markdown + [autolinks][] + IE = problem (?)

I faced some strange issue. Hyperlinks embedded inside text display improperly in Internet Explorer (6&7) - there is no space after them. So, for example Visit [some link][] for more details renders properly in Firefox, Opera and Chrome: Visit some link for more details but in IE turns into: Vis...
by Mekk
Wed Dec 10, 2008 12:03 pm
Forum: General discussions
Topic: Typing custom properties?
Replies: 1
Views: 1411

Typing custom properties?

It would be nice if I could make some custom property to be shown as a drop-down setting instead of textfield. Any suggestions what could be the easiest way to implement this? (my use case: I want to introduce some article classifier - "normal", "short", "wide" - to be ...
by Mekk
Wed Dec 10, 2008 11:58 am
Forum: General discussions
Topic: Estimating entry length? Dynamically parameterizing plugins?
Replies: 2
Views: 1755

Considering all this, I will probably go with a lazy route:

- flag short posts explicite using some custom property and testing for it in .tpls

- duplicate plugins (= create one history plugin with 10 entries and another with 5 entries) and just pick one of those depending on the setting above
by Mekk
Tue Dec 09, 2008 10:12 pm
Forum: General discussions
Topic: Estimating entry length? Dynamically parameterizing plugins?
Replies: 2
Views: 1755

Estimating entry length? Dynamically parameterizing plugins?

Well, my next idea: I would like to make my sidebars conditional, so their content depend on the entry length (so I build long sidebar along the long article, but cut it to the minimum along the short note). I am in particular looking for the following suggestions: a) what could be the best method t...
by Mekk
Sun Dec 07, 2008 7:19 pm
Forum: General discussions
Topic: I'd like to give some post special <body class="...&
Replies: 5
Views: 2699

Styling images does not help when I use column layout with fixed or limited content width. For the sake of completness: I achieved what I wanted. Here is what I did: 1) inside extended entry properties plugin configuration I added custom field named "BodyClass" 2) in my index.tpl I replace...
by Mekk
Sun Dec 07, 2008 11:16 am
Forum: General discussions
Topic: I'd like to give some post special <body class="...&
Replies: 5
Views: 2699

I was a bit unclear. What I want is to: prepare theme and stylesheet once, and then while writing some articles set specific extended property to achieve special behaviour. Specific use case: whenever I include big picture, I'd add "wide_entry" class used in CSS to give wider content to th...
by Mekk
Sat Dec 06, 2008 6:52 pm
Forum: General discussions
Topic: I'd like to give some post special <body class="...&
Replies: 5
Views: 2699

I'd like to give some post special <body class="...&

It would be nice if I could somehow (maybe via extended entry properties) set the special CSS class for some entry. I'd like to use this via <body class="..."> (and don't give a body a class if it is not set). I use my own custom theme, so I can write anything on this side (in fact, I alre...