implemented new plugins

Discussion corner for Developers of Serendipity.
Post Reply
nicola.zanoni

implemented new plugins

Post by nicola.zanoni »

Hi, sorry for my english, I'm italian. I implemented some plugins for s9y and I'm asking how to send them to s9y.

The first one is called IPSEDIXIT and shows a (famous) quote and his author on the menubar. Quotes can be submitted from visitors. The visualized quote changes randomly everytime the page is loaded.
Installing the plugin admin can establish if the new-quote-submitting form has to be visualized to all vositors, only to registered users or only to admin.

The second one is called ETHICS and shows the list of all users with a traffic light. Admin can manage the traffic light's colors for each user by clicking them. If a traffic light is red, automatically the user is banned. If admin turns to yellow or green a red light the user can log in again.

Are you interested?
Hi, nicola
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: implemented new plugins

Post by garvinhicking »

Coming to this forum is a good idea, first off. :)

About your first plugin, did you look at the existing plugin "randomquotes"? That one offers similar functionality - maybe you could integrate your functionality into that plugin? Because we try to not flood our official plugin repository with duplicate plugins or plugins that do similar things...
The second one is called ETHICS and shows the list of all users with a traffic light. Admin can manage the traffic light's colors for each user by clicking them. If a traffic light is red, automatically the user is banned. If admin turns to yellow or green a red light the user can log in again.
This one sounds very interesting! Does it ban users from logging into Serendipity?

We have a plugin called "XSSTrust" which deals with some user restrictions; like so that people cannot write HTML/Javascript code or so. I could image that your ethics plugin could be combined with that plugin so that the plugin becomes a "evil user manager" one? If you don'T want to combine this, I still think that this plugin could be added to the repository easily!

Do you have the code available somewhere so I can look at it?

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

Post by Guest »

I've seen the plugin forum... :oops:

Here you can find the code of Ethics

http://loriszena.altervista.org/proevol ... ethics.htm

and here the plugin working on my next-to-open blog

http://lafazenda.la.funpic.de/fazenda/

I'll download XSSTrust and Randomquotes, take a look and try to integrate them with my plugins.

Thanks!
Nicola
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Great, many thanks! I'll have a look at the plugin and see how to commit it at that point. If you have news on coupling it with others, let me know.

I'll post here when I commmit the plugin!

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

Post by garvinhicking »

I've just committed this plugin as "serendipity_plugin_xsstrust" to the xsstrust plugin, I think it fits there best.

I have made some modifications, reduced some unneccessary code loops and polised the SQL code to be compatible for postgreSQL and fixed a XSS injection problem.

It should be findable here soon: http://cvs.sourceforge.net/viewcvs.py/p ... t_xsstrust

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