Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2009-04-20 17:00:41

grundgesetz
Plugin Author
From: Germany
Registered: 2009-04-17
Posts: 24

Re: jbx_multiple_image_upload

Thanks to you both, will have a look at the slashes.
I will also think about the warnings during upload process.

Added: Gocom, but $catname is escaped?

$catname = dumbDown($textile->TextileThis(trim(doSlash($catname)), 1));

Last edited by grundgesetz (2009-04-20 17:52:56)

Offline

#26 2009-04-20 22:16:59

grundgesetz
Plugin Author
From: Germany
Registered: 2009-04-17
Posts: 24

Re: jbx_multiple_image_upload

Hey folks,
new version:

jbx_multiple_image_upload v0.3c

Changes:

  • included all javascript files (gziped them as well), no internet availability needed
  • adjusted paths using DS constant to ensure (windows-)compatibility
  • will sleep for 3 seconds before updating imagelist
  • error output fixed (import/resize/thumbnailing errors)
  • eliminated some bugs

Last edited by grundgesetz (2009-04-21 14:16:36)

Offline

#27 2009-04-23 18:05:28

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: jbx_multiple_image_upload

Ok, I’ve tested it but unfortunately there are still some issues:
on a live site works perfectly and it’s really cool.
on my local xampp it now doesen’t work at all (there is absolutely no presence of the plugin in the ‘images’ tab).
I think it still depends from how the slashes are generated.
Here is a small piece of code form my ‘images’ tab source:

	var swiffy = new FancyUpload2($('upload-status'), $('upload-list'), {
		url: '/\images\upload\upscript_0.3c.php',
		data: 'path=C:\xampplite\htdocs\my_site\images\upload\tmp\',
		path: '/images\upload\Swiff.Uploader.swf',
		limitSize: 2 * 1024 * 1024, // 2Mb
		limitFiles:20,

As you can see the urls still seem to be a little messed…

Last edited by redbot (2009-04-23 18:33:12)

Offline

#28 2009-04-24 05:33:01

grundgesetz
Plugin Author
From: Germany
Registered: 2009-04-17
Posts: 24

Re: jbx_multiple_image_upload

Okay, I´m really sorry.
I will test the script on my PC today. As it seems, the rhu constant defined by textpattern is relative to the web root, so i will try to apply some changes there.

Offline

#29 2009-05-21 14:27:02

kus
Member
From: madiun, Indonesia
Registered: 2007-03-15
Posts: 64
Website

Re: jbx_multiple_image_upload

I got this error

“File I/O error #2038”

when upload image. Files Limit is about 4MB . Please help, thanks.

Offline

#30 2009-06-13 15:07:40

hkaber
New Member
Registered: 2009-06-12
Posts: 3

Re: jbx_multiple_image_upload

When I try to upload image files, all of the image names become highlighted in pink and I get a “security error 2409” . I have no clue as to why. anyone else have or fix this problem? For a time the plugin worked with explorer and not firefox. now it does’t work at all.

Offline

#31 2009-06-14 03:07:58

TheEric
Plugin Author
From: Wyoming
Registered: 2004-09-17
Posts: 566

Re: jbx_multiple_image_upload

2038/2039 Are generic flash security errors. EBL_Upload gets this from time to time under certain circumstances. The fix can range from a simple htaccess fix, to something a bit more complicated. My recommendation would be to download something called, Ethereal Network Analyzer and capture the traffic. Occasionally you might see an error message pass which may help you to narrow down the problem.

Offline

#32 2009-06-14 08:07:23

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: jbx_multiple_image_upload

  1. Tried to use in Opera, IE and FF. Only FF opened window to select file. Other browsers showed errors.
  2. “Use image name as alt” works strange with cyryllic – “домик в деревне.jpg” -> alt after upload -> “домик в деревне”
    • Fixed this by eliminating utf8_encode() function around line 447:
    • was: $imagename = utf8_encode(substr($filename, 0, strrpos($filename, '.')));
    • become: $imagename = substr($filename, 0, strrpos($filename, '.'));
    • Is this function vital for plugin work?

Last edited by the_ghost (2009-06-14 09:33:29)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#33 2009-07-31 14:10:45

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 615
Website

Re: jbx_multiple_image_upload

Hey!
When I press on ‘Upload’ I’m getting an ‘securityError Error #2049’ at the botom of any image that in the list.
(I’m getting this error with or without a category name.)
Using TXP 4.2 & IE8

screenshot:
!http://img33.imageshack.us/img33/1378/uploaderror.gif!

also getting an JS error:
Message: ‘null’ is null or not an object
Line: 308
Char: 2
Code: 0
URI: /textpattern/textpattern.js

Last edited by THE BLUE DRAGON (2009-08-29 22:14:06)

Offline

#34 2009-09-02 15:27:06

aeonflux
Plugin Author
Registered: 2006-01-22
Posts: 33
Website

Re: jbx_multiple_image_upload

Hi Jonas,

Thank you for this plugin, I have to admit that I use this plugin for every website now!
I found a small bug when I had it installed on a website where the whole textpattern site was in a subfolder. e.g. http://site.url/2009/ instead of what you normally would see in the root http://site.url/

The javascript embedding function could not be found so the plugin would not display the upload form.
I brutally tried to fix it so it works when the site is installed in a subfolder, but this brute hack does break the plugin if it the site is in the root
So maybe you could take this when your updating the plugin…

I changed this

function jbx_upload($event, $step)
{
	global $jbxMIU, $prefs;
	if($step !== "image_edit")
	{
	$absolute_upload_path = rhu.$prefs['img_dir'].DS."upload".DS;
?>

into this

function jbx_upload($event, $step)
{
	global $jbxMIU, $prefs;
	if($step !== "image_edit")
	{
	$absolute_upload_path = rhu.DS.$prefs['img_dir'].DS."upload".DS;
?>

Offline

#35 2009-09-08 21:05:39

PascalL
Member
From: Switzerland
Registered: 2009-03-09
Posts: 132
Website

Re: jbx_multiple_image_upload

Thanks for the plugin! Looks great!!!

My developpement install is in a subfolder, therefore I have the same problem as aeonflux !
There is a missing slash between site path and images folder in the $absolute_upload_path variable.

I’ll try your fix right now aeonflux, thanks!

Pascal

P.S: Works great! Life is suddenly easier!!! Thanks!

Last edited by PascalL (2009-09-08 22:18:09)

Offline

#36 2009-09-29 20:12:18

brunodario
Member
From: Belo Horizonte, Brasil
Registered: 2007-09-19
Posts: 75

Re: jbx_multiple_image_upload

Awesome plugin, i wonder if this is your first one what´s coming up next ;-)

I´ve got the same problem described earlier, plugin works ok on live sites but not in my xampp installation. The image tab looks the same old and nasty “one image” upload.
Anyway, you did a superb job!

Offline

Board footer

Powered by FluxBB