Hello,

I tried to use Image FUpload for mass upload of pictures (I used the same field "field_images" but switched from "image" handler to "image fupload") but it didn't work. The uploaded pictures didn't appear in the slideshow. Is there a trick or is it possible to get this to work.
I'll have to upload tons of pictures for many galleries and it would be a pain to upload every picture one-by-one.

Thank you very much for your help.

Stefan

CommentFileSizeAuthor
#12 slideshow_single.txt4.62 KBdesign.er

Comments

kylebrowning’s picture

This is probably an issue with image upload. I cant really support the use of other modules to integrate with mine.

If you upload the images in a single node without Image FUpload, does it work? If it doesn't work, then its my fault, if it does work, its probably Image FUpload.

design.er’s picture

Thank you for your quick response.

It works for single nodes without Image FUpload. I use Image FUpload on other node types without any problem so I can't imagine why this module should fail in this case.
Of course if this is a bug inside Image FUpload it's not your problem. Afaik Image FUpload is the only module which could be used for mass uploads of images so it would be a great improvement if it will work together with SSP. So maybe you could try to reproduce this scenario in a free minute and take a look inside.

Thanks a lot for your work.

kylebrowning’s picture

Status: Active » Postponed
rontec76’s picture

I'm currently looking into the ImageFupload issue for a project and I will post any results here. I have both imagefupload and ssp modules working great apart but I really really want to combine them. Thanks for the work on this module.

design.er’s picture

Great, I'm really looking forward. :)
I'll gladly help you with testing.

rontec76’s picture

I've come up with a work around for using ImageFupload with the SSP module.

The issue is that the SSP module is only looking for file fields that use the 'imagefield_widget' type. You can look at line 84 in ssp.module at the function '_get_node_field_type' to see what's happening. The problem that ImageFupload is uses a widget type of 'image_fupload_imagefield_widget'.

So for now I've modified the query in the _get_node_field_type to accomodate the different widget type.

If you replace the line 85 in ssp.module with the following code:

$result = db_query("SELECT distinct(field_name) as name, label FROM {content_node_field_instance} where type_name = '%s' and widget_type = '%s' or widget_type = '%s' ORDER BY label", $type, 'imagefield_widget', 'image_fupload_imagefield_widget');

Then your slideshows will use your ImageFupload field instead of the image field created by the module.

As I said before this is a pretty ugly hack. The ideal solution would be to tweak the _get_node_field_type and theme_ssp_images functions to accommodate multiple field widget types.

Hopefully this will help someone else. :)

kylebrowning’s picture

Status: Postponed » Fixed

I have updated the code allow for this field type.

If there are ever any others, please let me know here.

rontec76’s picture

Thanks!!

design.er’s picture

Thanks a lot for the upgrade, Kyle.
If I use multiple upload and create an album it loads no images. If I try to reach the ?q=node/83/0/images.xml I see a WSOD with the following error:
Fatal error: Cannot access empty property in D:\DEVELOPMENT\xampp\www\mysite\sites\all\modules\ssp\ssp.module on line 129

If I call the albums via nodereference into a gallery I see all images. The only thing that seems not to work in the gallery is the music - no sound, no player.
Am I missing something?

kylebrowning’s picture

I dont seem to be getting that error, can you uncomment line 124, and paste me the output.

design.er’s picture

Status: Fixed » Postponed

I've attached the output of print_r($node).
There should be 2 images and a sound file.
Please let me know if you need more information.

design.er’s picture

StatusFileSize
new4.62 KB

Sorry forgot to upload the file. :)

kylebrowning’s picture

Status: Postponed » Needs work

$field = _get_node_field_type($node->type);
foreach($node->$field as $image) {

can you add a print_r($field);

on line 128, after
$field = _get_node_field_type($node->type);

Ill need to see what its coming back as, sorry I didnt think of this sooner.

design.er’s picture

I don't get any output for print_r($field). It's empty... or I'm doing something wrong. I put print_r($field); on line 128, after $field = _get_node_field_type($node->type);, cleared caches and then took a look on the node, params.xml and images.xml - no output.

I'm not sure if this does have anything to do with the current issue but I receive this error at the moment:
warning: Invalid argument supplied for foreach() in D:\DEVELOPMENT\xampp\www\mysite\sites\all\modules\ssp\ssp.module on line 102.

I switched back to single upload to test its behavior after saving the node, too. The result is the same: The player loads but no images are visible... only on multiple slideshows.

kylebrowning’s picture

Well originally you had stated you were getting an error on line 129, Which is a single Node issue.
Ive updated the code in dev, try that really quickly, and see if it works
As for the error on line 102,

I believe right now the field name HAS to be match, field_nodes in order for it to work for multiple slideshows.
Ill fix this sometime later in the week.
The main issue is that its so difficult to find out what a user is trying to use Slideshow pro as.
So i have to do a lot of checks to get the field name correctly.

Rest assured, we will get through this.

design.er’s picture

Nice, I've upgraded to beta5 and the multiple upload problem is gone. I can see all the images in the album and the music is playing, too.

Now there are only some few things that aren't loaded... but I think they don't belong to this issue. Some belongs to other threads I've opened already so I will post them there.
Thank you very much for your great and pretty fast support. It's amazing, really! :)

Please feel free to change the status yourself - you know better the actually status of the code that belongs to this issue.

kylebrowning’s picture

Status: Needs work » Fixed
chrisck’s picture

Thank you for that integration!

chrisck’s picture

Does the image field no longer work anymore? I'm currently still using the image field and after the update my images no longer show. I was preparing to go to image_fupload soon though.

chrisck’s picture

Can I get some help on getting this to work for me? Do both upload widgets work? I've changed to Image_fupload and I still don't see images in the slideshow node.

kylebrowning’s picture

It should be working kitemedia,
Try updating to beta7 as it fixes some field issues.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

justme2013’s picture

Hi All,

I installed beta7 for this. Now I'm trying to include the imagefUpload field in the view but I don't understand how to get this done.

When uploading images with ssp they get into the db as type slideshow and i can create a view with this and see it working.
Now I want to selected imagefUpload node property but I have no clue where to see this. i scrolled down a lot of fields in the fields categories but don't understand which one to selected.

I use the below releases of image...

Image 6.x-1.0-alpha5
Image filter 6.x-1.0-rc1
Image FUpload 6.x-3.0-rc2
ImageAPI 6.x-1.6
ImageCache 6.x-2.0-beta10
ImageField 6.x-3.1

Should I upgrade any of the module?
Should I selected another field?
Should I give up this wunderfull module? (i hope not!)

Thxs for any help and kyle thxs you for so much for making this all. It is one of the best slideshows I ever saw. No I only need to learn some flash to change somewhat there but then already my dream is coming out :-)

Ciao,