Links in Shoutbox possible?

Creating and modifying plugins.
Post Reply
lauterunfug
Regular
Posts: 54
Joined: Wed Mar 16, 2005 9:26 am

Links in Shoutbox possible?

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

Re: Links in Shoutbox possible?

Post 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
# 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/
lauterunfug
Regular
Posts: 54
Joined: Wed Mar 16, 2005 9:26 am

Post by lauterunfug »

you're the man, garvin!!

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