Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#145 2006-12-07 18:12:52
Re: Ebl_batchupload
For those that are getting the 403 error message, as well as an undefined in the top left corner, try this:
in function ebl_showUploadSWF, change the second echo statement, starting at echo '<div id="eblupload" >'.
and ending at '</div>';
to the following:
echo ‘<div id=“eblupload” >’.
‘<object type=“application/x-shockwave-flash” data=“upload.swf?c_userid=’.$c_userid.’&cookie_hash=’.$cookie_hash.’&hUrl=’.hu.’” width=“550” height=“400”>’.
‘<param name=“movie” value=”’.hu.‘textpattern/upload.swf”>’.
‘<param name=“quality” value=“high”>’.
‘</object>’.
‘</div>’;
Offline
#146 2006-12-07 23:11:31
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: Ebl_batchupload
for the people eager like me to try it out:
- it seems to work (at least on my before disfunct Firefox – IE still has issues but it might be a problem with my installation)
- it only works after changing all quotes from the typographic ones that textile translated to the quotes php expects to see, so here’s a copy paste code segment to use that works without handywork:
echo '<div id="eblupload">'.
'<object type="application/x-shockwave-flash" data="upload.swf?c_userid='.$c_userid.'&cookie_hash='.$cookie_hash.'&hUrl='.hu.'" width="551" height="401">'.
'<param name="movie" value="'.hu.'textpattern/upload.swf">'.
'<param name="quality" value="high">'.
'</object>'.
'</div>';
Eric: I changed width and height, otherwise the thin border at the right and bottom of the flash will not be displayed (might be a mishap on my system – I changed it anyway…)
Last edited by aba (2006-12-07 23:13:39)
Offline
#147 2006-12-08 03:51:12
Re: Ebl_batchupload
So is it working again on your installation?
Offline
#148 2006-12-08 11:19:04
Re: Ebl_batchupload
Its not working for me.
Just tried uploading about 6 images, and it did this:
- made entries in the database for each one
- but for two of them entered them twice
- failed to generate the thumbnails
Using 4.03
Offline
#149 2006-12-08 11:51:08
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: Ebl_batchupload
TheEric wrote:
So is it working again on your installation?
Firefox: yes
IE 7.0: no
Offline
#150 2006-12-08 15:37:07
Re: Ebl_batchupload
jameslomax wrote:
Its not working for me.
Just tried uploading about 6 images, and it did this:
What is it showing in the debug window? If it’s making the entries in the database, then the files are getting uploaded into the temporary folder, but for some reason they’re not moving / or resizing.
Offline
#151 2006-12-13 20:27:49
Re: Ebl_batchupload
Debug shows this:
<?xml version=“1.0” encoding=“utf-8”?><uploadResult><pre>A problem occured while loading the plugin: <b>ebl_BatchUpload</b> -> <b>Warning: getimagesize(http://www.jameslomax.com//textpattern/batchupload/galway.jpg) [<a href=“function.getimagesize”>function.getimagesize</a>]: failed to open stream: Connection refused on line 272</b></pre><pre>A problem occured while loading the plugin: <b>ebl_BatchUpload</b> -> <b>Warning: imagecreatefromjpeg(http://www.jameslomax.com/textpattern/batchupload/galway.jpg) [<a href=“function.imagecreatefromjpeg”>function.imagecreatefromjpeg</a>]: failed to open stream: Connection refused on line 200</b></pre><pre>A problem occured while loading the plugin: <b>ebl_BatchUpload</b> -> <b>Warning: getimagesize(http://www.jameslomax.com/textpattern/batchupload/galway.jpg) [<a href=“function.getimagesize”>function.getimagesize</a>]: failed to open stream: Connection refused on line 210</b></pre><pre>A problem occured while loading the plugin: <b>ebl_BatchUpload</b> -> <b>Warning: Division by zero on line 212</b></pre><pre>A problem occured while loading the plugin: <b>ebl_BatchUpload</b> -> <b>Warning: Division by zero on line 212</b></pre><pre>A problem occured while loading the plugin: <b>ebl_BatchUpload</b> -> <b>Warning: imagecreatetruecolor() [<a href=“function.imagecreatetruecolor”>function.imagecreatetruecolor</a>]: Invalid image dimensions on line 225</b></pre><pre>A problem occured while loading the plugin: <b>ebl_BatchUpload</b> -> <b>Warning: imagealphablending(): supplied argument is not a valid Image resource on line 227</b></pre><pre>A problem occured while loading the plugin: <b>ebl_BatchUpload</b> -> <b>Warning: imagecopyresized(): supplied argument is not a valid Image resource on line 229</b></pre><pre>A problem occured while loading the plugin: <b>ebl_BatchUpload</b> -> <b>Warning: imagejpeg(): supplied argument is not a valid Image resource on line 243</b></pre><pre>A problem occured while loading the plugin: <b>ebl_BatchUpload</b> -> <b>Warning: imagedestroy(): supplied argument is not a valid Image resource on line 253</b></pre><pre>A problem occured while loading the plugin: <b>ebl_BatchUpload</b> -> <b>Warning: imagedestroy(): supplied argument is not a valid Image resource on line 254</b></pre><item><filename>galway.jpg</filename><imported>YES</imported><thumb>ERR</thumb><resz>NO</resz></item><item><filename>1 files<imported>—</imported><resz>—</resz><thumb>—</thumb></filename></item></uploadResult>
Sorry about the line-through effect – presumably, Textile is doing it because of some part of the code.
Any ideas?
Offline
#152 2006-12-13 20:30:27
Re: Ebl_batchupload
……it made an entry in the database, but didn’t load the image or generate the thumbnail.
Offline
#153 2006-12-13 20:51:17
Re: Ebl_batchupload
James – First upgrade to the latest version. 1.04
This can be found here
Offline
#154 2006-12-14 01:34:04
Re: Ebl_batchupload
OK thanks, done that.
Now whats happening is, its uploading individual images (haven’t tried multiple files yet), but insists on making thumbs of 120 × 82 pixels, when I specified 160 × 120.
Offline
#155 2006-12-14 02:22:59
Re: Ebl_batchupload
It won’t make the thumbnails to the exact dimensions that you specify as it keeps everything in proportion (ie: 400px by 600px = 80px by 120px). Think of the thumbnail setting as the largest box size that the thumbnail can occupy whilst still keeping everything in proportion.
Offline
#156 2006-12-15 19:26:09
Re: Ebl_batchupload
Hmmm….
Why doesn’t it accept one of the measurements – either 160 or 120 – and adjust the other in proportion?
Is 120 × 82 maybe a fixed dimension?
Offline