Page 1 of 1

textile: url-links doesn't work

Posted: Tue Feb 03, 2009 9:17 pm
by juergen
Hi,

I'm unfortunate activating links in comments using textile. Several Plugins (event_s9ymarkup) are configured (disable for comments), other textile stuff (lists) works.

May be, there is a tricky set of settings. Looking forward for tips,

thanks,

Juergen

Re: textile: url-links doesn't work

Posted: Tue Feb 03, 2009 9:53 pm
by yellowled
juergen wrote:I'm unfortunate activating links in comments using textile. Several Plugins (event_s9ymarkup) are configured (disable for comments), other textile stuff (lists) works.
I might be completely wrong about this, but the reason might be that s9y per default strips HTML (which one would obviously need for links within comments) from comments. Textile does nothing else but convert it's own markup to HTML, so the HTML from links written in Textile would still be stripped.

You'll probably need to install the event plugin "Transforms HTML for comments" (serendipity_event_unstrip_tags) to enable HTML in comments in the first place, at least that's my guess :)

YL

Re: textile: url-links doesn't work

Posted: Tue Feb 03, 2009 10:04 pm
by juergen
After testing and testing and testing the result is:

url-links via textile works fine if they are typed in at front end. It doesn't work at the admin interface, at the backend, while doing some edits on comments. (But other textile stuff has effect at backend.)

That's without serendipity_event_unstrip_tags to enable HTML in comments.

Thx!
Juergen

Re: textile: url-links doesn't work

Posted: Tue Feb 03, 2009 10:25 pm
by juergen
Sorry for last post, it fails:

It works only at Live Preview while typing the comments. After finishing the post, the url-link is shown as plain text.

And installing serendipity_event_unstrip_tags doesn't matter.

Juergen

Re: textile: url-links doesn't work

Posted: Wed Feb 04, 2009 11:54 am
by garvinhicking
Hi!

Which markup plugins and versions do you have exactly installed, and in which order, and which ones are enabled to be used for "Comments"?

Also, which s9y version are you using?

Regards,
Garvin

Re: textile: url-links doesn't work

Posted: Wed Feb 04, 2009 12:28 pm
by juergen
garvinhicking wrote: Which markup plugins and versions do you have exactly installed, and in which order, and which ones are enabled to be used for "Comments"?
Also, which s9y version are you using?
Serendipity 1.4, PHP 4.4.8

Code: Select all

1. serendipity_event_emoticate, 1.6, comment: yes
2. serendipity_event_nl2br, 1.7, comment: no
3. serendipity_event_typoquote, 1.4, comment: yes
4. serendipity_event_layout_quotemarkup, 1.1
5. serendipity_event_s9ymarkup, 1.3, comment: no
6. serendipity_event_textile,  1,6, comment: yes
7. serendipity_event_xhtmlcleanup,  1.5, comment: no
If (comment=yes) at serendipity_event_s9ymarkup, all of textile markup sucks.
If (comment=no) at serendipity_event_s9ymarkup, all of textile markup (?) works, but url-link sucks.
In serendipity_event_livecomment (last in order of plugins) all of textile stuff, url-link included, works fine - until the comment is really posted.

Regards,
Juergen

Re: textile: url-links doesn't work

Posted: Wed Feb 04, 2009 1:31 pm
by garvinhicking
Hi!

The livecomment plugin actually only uses a fake textile, it does not use the real textile that s9y applies, so this is completely independent.

s9ymarkup really disturbs textile, so that is fine. You should actually completely remove that plugin if you use textile.

How do you enter url-links using textile, and how are they displayed i.e. what happens to them?

Regards,
Garvin

Re: textile: url-links doesn't work

Posted: Wed Feb 04, 2009 2:00 pm
by juergen
Hi Garvin,
garvinhicking wrote: s9ymarkup really disturbs textile, so that is fine. You should actually completely remove that plugin if you use textile.
Oops, I thougth, it's essential for s9y!?
garvinhicking wrote: How do you enter url-links using textile, and how are they displayed i.e. what happens to them?
For instance, I type

Code: Select all

"Songsmith Promo(youtube)":http://de.youtube.com/watch?v=k8GIwFkIuP8
in the textarea, and exacly this string appears.

Regards, Juergen

Re: textile: url-links doesn't work

Posted: Wed Feb 04, 2009 2:04 pm
by yellowled
juergen wrote:
garvinhicking wrote: s9ymarkup really disturbs textile, so that is fine. You should actually completely remove that plugin if you use textile.
Oops, I thougth, it's essential for s9y!?
Almost everything it provides actually also exists in Textile :)

YL

Re: textile: url-links doesn't work

Posted: Wed Feb 04, 2009 2:11 pm
by juergen
Hi,

it looks like that the disturber was found!

serendipity_event_typoquote should NOT enabled for comments if textile is enabled!
It destroys the quote-signs in

Code: Select all

"link text":http://example.com/
Regards,
Juergen

Re: textile: url-links doesn't work

Posted: Wed Feb 04, 2009 3:46 pm
by judebert
You could probably leave it enabled for comments, but move the plugin below the textile plugin. Any quotes textile didn't consume would then be handled by the quote plugin.

Re: textile: url-links doesn't work

Posted: Wed Feb 04, 2009 4:05 pm
by juergen
judebert wrote:You could probably leave it enabled for comments, but move the plugin below the textile plugin. Any quotes textile didn't consume would then be handled by the quote plugin.
OK, right, sequence matters!

Regards,
Juergen

Re: textile: url-links doesn't work

Posted: Tue May 17, 2011 3:33 pm
by danst0
Hi,

I have the same problem right now. I have the following plugins (in order) installed:
textile, spamblock (bayes), spamprotector (surbl), spam protector, spartacus, Google analytics, static pages, microbloggin, autosave entries, tagging of entries, html meta tags, sitemap generator, html sample!, dashboard, rules for publishing, livesearch, announce entries, related entries, karma, fix common xhtml errors, linktrimmer, amazon media button, autoupdate, extended properties for entries


But the output of "Link text":http://link.com equals exactly that, so no markup seems to occur.

Don't know if that is important: If I input the html code directly <a href...></a> this stuff is striped from the comment completely.

Daniel

Re: textile: url-links doesn't work

Posted: Tue May 17, 2011 4:23 pm
by danst0
I forgot to mention that the "*" textile tag for lists is correctly handled in my setup.

Daniel

Re: textile: url-links doesn't work

Posted: Tue May 17, 2011 4:34 pm
by danst0
Ok, solved it myself. I had to enable the Textile option:
Convert HTML quotes to real quotes?
If enabled, HTML-Quote-Entities (") will be converted to real quotes. Only useful to enable, if you want to use Textile markup in your comments.

... too easy

Daniel