![]() |
addon: Lock Comments
I recently updated to V1.6 and found that by default all images were set to allow comments.
I implemented most of the anti-spam measures, but there is still some spam comments getting thru. What I found was that the older posts are generally targetted. I did not want to go in and edit over 500 old posts to simply set how comments are treated so I wrote this small admin addon. The Addon lets you manage the comment status of ALL of your old posts. There is 5 options you can set all posts to the same status (either allow, moderate, disallow) or... You can selectively set the status of comments on some of your posts older than x days. Using the defaults, you can set all posts older than 30 days to Disable and all posts older than 14 days (that are not disabled) to moderate with just a few clicks. Now, how I have my comments configured is this: I allow all new posts to have comments posted to them. Using this plugin, I then set all posts older than 30 days to DISABLE comments and all posts that are between 14-30 days to moderate. Using this plugin allows you to quickly and easily set up the comment status from time to time without having to edit every individual post. All I will need to do is every time I upload a batch of photos is to simply go to addons page and update the status of older posts. You can download this plugin from my site at http://photoblog.shrinkpictures.com/...ments_v01a.zip Simply download the file, unzip it and uplaod the php file to your addons directory of your blog. Like all addons it is available under the ADDONS tab in your admin panel And while you are there, post a comment on my photos that are les than 14 days old and see it appear, post a comment on a photo that is between 14 and 30 days old and not see it appear, then finally post a comment on a photo over 30 days old and get the standard "spam post" error message. |
I have not personally tested this but if it works as you say it works then great job!
This was on a long to-do list and now I can scratch that off ;) |
It works and works great - It only took an hour or so to put it together.
It only took a couple of hours to implement - and while testing I simply kept an eye on the comments field in the pixelpost table and verified the status does in fact get updated. I must say that at the moment, it is a bit "clunky" to use as you have to set each action individually, but still, 3 clicks to set everything up the way you want it is far easier than editing 500+ posts! Consider this my small donation to the PP Project. |
Thanks - we like such donations very much :)
|
Great addon. I hope it will be included in official 1.7 package.
|
It will not be included, but you can always download it :D That is the point of addons.
|
Update - I have just updated to V1.7.1 and verified that this addon works with the latest version.
|
This is a great idea. Is it normal behaviour to flag the comment as spam on old photos though? I disabled the comments on photos 30 days and older and got a flagged as spam message, but on the more recent ones I got a moderating message... how should disabling actually look?
(I've actually removed the comment form for now so you can't test it yourself - sorry.) |
| All times are GMT. The time now is 09:27 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.