Page 1 of 1

implemented new plugins

Posted: Mon Oct 10, 2005 5:39 pm
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

Re: implemented new plugins

Posted: Mon Oct 10, 2005 5:44 pm
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

Posted: Sat Oct 15, 2005 11:24 am
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

Posted: Sat Oct 15, 2005 6:04 pm
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

Posted: Mon Oct 17, 2005 10:02 am
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