Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 09-12-2007, 06:23 AM
e300 Offline
pp regular
 
Join Date: Dec 2005
Location: Adelaide, Australia
Posts: 39
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.
__________________
My Pixelpost Blog
Reply With Quote
  #2  
Old 09-12-2007, 06:28 AM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
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
Reply With Quote
  #3  
Old 09-12-2007, 06:40 AM
e300 Offline
pp regular
 
Join Date: Dec 2005
Location: Adelaide, Australia
Posts: 39
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.
__________________
My Pixelpost Blog
Reply With Quote
  #4  
Old 09-12-2007, 12:30 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Thanks - we like such donations very much
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #5  
Old 09-12-2007, 02:34 PM
Zenigata Offline
pp regular
 
Join Date: Jul 2007
Location: Italy
Posts: 40
Send a message via MSN to Zenigata
Great addon. I hope it will be included in official 1.7 package.
Reply With Quote
  #6  
Old 09-12-2007, 03:17 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
It will not be included, but you can always download it That is the point of addons.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #7  
Old 03-14-2008, 06:46 AM
e300 Offline
pp regular
 
Join Date: Dec 2005
Location: Adelaide, Australia
Posts: 39
Update - I have just updated to V1.7.1 and verified that this addon works with the latest version.
__________________
My Pixelpost Blog
Reply With Quote
  #8  
Old 04-22-2008, 05:56 AM
kristarella's Avatar
kristarella Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Sydney, Australia
Posts: 105
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.)
__________________
The Naked Eye
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:03 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs