Page 1 of 1

Links in Shoutbox possible?

Posted: Tue Sep 13, 2005 3:19 pm
by lauterunfug
Is it possible to post links in the shoutbox?

Writing www.someURL.com doesn work. HTML does also not work (which is fine!), BBCode also does not work...

ideas?

Or does anyone knows if there is a linkdump-box for serendipity?

Re: Links in Shoutbox possible?

Posted: Tue Sep 13, 2005 5:11 pm
by garvinhicking
The plugin supported this, but sadly a bit awkwardly. BBCode only works when you make your bbcode in the same line as your output line. The lines are wordwrapped at about 70 characters, so if a wrap occurs within your bbcode, the transformation will not properly work.

The change I made to the shoutbox plugin file is in line 186-187:

Code: Select all

                $entry = array('comment' => $comment);
                serendipity_plugin_api::hook_event('frontend_display', $entry);
                $entry['comment'] = wordwrap($entry['comment'], $wordwrap, "\n", 1);
You also need to turn on markup transformation for "Comments" in the configuration of your bbcode plugin.

Regards,
Garvin

Posted: Tue Sep 13, 2005 5:32 pm
by lauterunfug
you're the man, garvin!!

It's almost incredible how fast and how competent you respond to the questions! Respect!!