textile: url-links doesn't work

Creating and modifying plugins.
Post Reply
juergen
Regular
Posts: 55
Joined: Tue Jul 04, 2006 2:23 pm
Location: Mayence, Germany
Contact:

textile: url-links doesn't work

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: textile: url-links doesn't work

Post 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
juergen
Regular
Posts: 55
Joined: Tue Jul 04, 2006 2:23 pm
Location: Mayence, Germany
Contact:

Re: textile: url-links doesn't work

Post 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
juergen
Regular
Posts: 55
Joined: Tue Jul 04, 2006 2:23 pm
Location: Mayence, Germany
Contact:

Re: textile: url-links doesn't work

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: textile: url-links doesn't work

Post 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
# 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/
juergen
Regular
Posts: 55
Joined: Tue Jul 04, 2006 2:23 pm
Location: Mayence, Germany
Contact:

Re: textile: url-links doesn't work

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: textile: url-links doesn't work

Post 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
# 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/
juergen
Regular
Posts: 55
Joined: Tue Jul 04, 2006 2:23 pm
Location: Mayence, Germany
Contact:

Re: textile: url-links doesn't work

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: textile: url-links doesn't work

Post 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
juergen
Regular
Posts: 55
Joined: Tue Jul 04, 2006 2:23 pm
Location: Mayence, Germany
Contact:

Re: textile: url-links doesn't work

Post 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
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: textile: url-links doesn't work

Post 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.
Judebert
---
Website | Wishlist | PayPal
juergen
Regular
Posts: 55
Joined: Tue Jul 04, 2006 2:23 pm
Location: Mayence, Germany
Contact:

Re: textile: url-links doesn't work

Post 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
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Re: textile: url-links doesn't work

Post 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
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Re: textile: url-links doesn't work

Post by danst0 »

I forgot to mention that the "*" textile tag for lists is correctly handled in my setup.

Daniel
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Re: textile: url-links doesn't work

Post 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
Post Reply