Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-31 16:29:34

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

[request] Image upload via comments form

Plugin idea/request if anyone would be able to devise something like this:

I’d like to be able to add an ‘image upload’ field to a comments form, and then have a txp tag in the comments display that will post that image in the comment along with the text. Of course the plugin would need to add a class to the image so that the display could be controlled by CSS. It should also be setup so that a maximum file size can be configured, and so that only certain file types will be allowed – jpgs and gifs, for example – so that you don’t get jokers trying to upload weird things into your comments.

Doesn’t matter whether the plugin keeps track of images in the database. Simpler not to, I suppose. But it should probably rename images somehow so that you don’t end up with duplicate filenames – maybe by title or date of the post, and appending a sequential number to the end of the file 0001, 0002, 0003, etc.

Any thoughts?

Thanks,
theturninggate

Offline

#2 2010-05-11 13:14:03

simoin
Member
From: Ireland
Registered: 2009-02-10
Posts: 50
Website

Re: [request] Image upload via comments form

I definitely this this would be a worthwhile plugin, and would easily generate a ransom for whoever could do it. Sadly that person is not me.

Offline

Board footer

Powered by FluxBB