Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Upload images with zem_contact_reborn
Plugin: kuo_upload_image
An experimental thing. With kuo_upload_image your zem_contact_reborn form can be used to upload an image file directly to Textpattern’s Images section. Comes with an optional text field where used can write some caption text to the image. The plugin currently doesn’t create a thumbnail so admin should do that manually if it’s needed.
Code example:
<txp:zem_contact to="your@email.com" label="Upload" thanks="Thanks!">
<ul>
<txp:kuo_upload_image label="File:" wraptag="li" category="write-image-category-here" 
caption_label="What's happening in the photo:" uploader_username="kuopassa" 
upload_max_size="" />
<li><txp:zem_contact_submit>Upload »</txp:zem_contact_submit></li>
</ul>
<txp:zem_contact_secret value="Please check the Images section from Textpattern." />
</txp:zem_contact>Some notes:
- An email message is sent each time zem_contact_rebornis successfully submitted.
- The zem_contact_rebornform needs to have something, not justkuo_upload_image’s tag. You can use for examplezem_contact_secretor combine some other fields with it.
- This plugin will do a small modification to the source code of zem_contact_reborn. It’s done automatically. It makes sure the HTML form has this:enctype="multipart/form-data"because otherwise files can’t be uploaded.
If you’ve got time, please test this plugin and write below if you get in trouble. :-)
Offline
Re: Upload images with zem_contact_reborn
Petri, thanks for the plugin. I’m sure it’ll be of use to many people here.
Yiannis
——————————
NeMe  | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Upload images with zem_contact_reborn
With which ZCR plugin versions is it compatible… 4.0.3.20 or 4.5.0.0?
Offline
Re: Upload images with zem_contact_reborn
The docs say 4.0.3.20
Yiannis
——————————
NeMe  | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline


