images in comments

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
zero01

images in comments

Post by zero01 »

Hallo!
I hope someone can help me.. i want to allow every user to post an image or a link in a comment. is it possible to change the code? i know it is dangerous because of spam-comments..

thank you for your help!!!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: images in comments

Post by garvinhicking »

Enable BBCode markup plugin and tell your users to read BBCode specifications (a link is emitted near the comments for that as well).

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/
zero01

Post by zero01 »

Hallo Garvin!
Thank you for your answer.. but i have a question again: i don't know how to enable the bbcode..
if I post an image in a comment, the comment is empty (the code is ignored?) i don't know how i can activate this plugin..


(sorry, my english is not so well)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Go to Plugin Configuration, there you can install the Event plugin "Markup: BBCode".

Then in your comment just enter things like:

Code: Select all

[url]http://www.google.com[/url]
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/
zero01

Post by zero01 »

ahh, okay, thank you.. now, i hope i understand the problem, because i can't choose this plugin.. it is not in that dropdown-menu..
perhaps i destroyed something while edditing the blog..

do you know which site I destroyed? :-) i don't think so, because you don't know what i have done..
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

First off, which Serendipity version are you running?

If its not in the dropdown look at plugins/serendipity_event_bbcode if that file and directory exists. Also take care that you're looking at the dropdown of event plugins and not the dropdown of sidebar plugins.

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/
zero01

Post by zero01 »

Hallo again, :)
I use the Serendipity version 0.7.1.
the file event_bbcode does exist.. but I don't understand where that dropdownmenu of event-plugins is located.
if i am loged in, I can go to the sidebar-item "plugins". there I can choose plugins like rss, archives, e.g..

I don't have the opportunity to select event-plugins..where are they located?

sorry for asking questions like this, but I have no idea anymore..
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The event plugins are located below the sidebar plugins. bottom of the page, read through all displayed text carefully. :-)

(Maybe look out for PHP errors on the page and/or in the HTML source!)

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/
zero01

Post by zero01 »

ah, okay, thank you..
When I checked my page source I found this error:

<b>Fatal error</b>: Cannot instantiate non-existent class: serendipity_plug_plugin in <b>/www/xxxxxx.com/theblog/serendipity_plugin_api.php</b> on line <b>257</b><br />


I think that causes the problem?! :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Please check that you have the correct and complete file serendipity_sidebar_items.php. The class serendipity_plug_plugin is defined in that file!

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/
zero01

Post by zero01 »

thank you very much! now it works..
Post Reply