Any plans/ideas about upgrading this nice little project to V6?

Comments

vordude’s picture

Status: Active » Postponed

Need http://drupal.org/project/imagefield to get a good looking D6 release before this can get going.

D6 is definitely in the plans.

dirkson’s picture

Er... *confusion* They have an official D6 release?

vordude’s picture

6.x-3.0-alpha1 2008-Aug-08 for imagefield--admittedly I should get over in his issue queue too.

dirkson’s picture

Er... Aye, that's the release I'm talking about. I'm very confused now.

dirkson’s picture

Still no idea what's happening with this.

Flying Drupalist’s picture

subscribe

Flying Drupalist’s picture

NVM subscribe, please please update. I need this very very much. Imagefield alpha 2 is very good.

dirkson’s picture

Bump for utter lack of response or explanation what's going on.

vordude’s picture

Status: Postponed » Needs work
StatusFileSize
new9.69 KB

Here's where the module stands.

Any help would be appreciated.

:)

A patch pending here too for 5x-- if you're in the helping spirit.
http://drupal.org/node/284918#comment-1017802

mrthumpz’s picture

subscribe

cpill’s picture

Actually, I am in the helping mood. I need this on two sites and was thinking of doing a basic port to D6. I'll try and apply this patch and see if I can't get it going... how do you apply patches again?

vordude’s picture

Here is information on applying Patches.

http://drupal.org/patch/apply

The patch is has all of the D6 changes made--(I think)

But changes to way imagefield handles images needs to be taken into account.

I think:
http://drupal.org/node/201594 (mostly d5 stuff)
http://drupal.org/node/292904

...should get you on the right track.

rubymuse’s picture

subscribing

jacerider’s picture

subscribing

ablewave’s picture

subscribing. thanks for any D6 updates.

Or has anyone successfully used this to import to a 5x, then export the nodes out and import into a 6x installation?

cpill’s picture

StatusFileSize
new18.9 KB

Hey,

Thanks for the tip off about:

http://drupal.org/node/292904

I've incorporated that code with only a few minor changes and it seems to work on my laptop (MacOSX + Apache 2+ PHP 5.2) and will test it on a Linux server some time today.

I have to confess I don't really understand the way filefield works from this and will now move on to the node_import module and attempt to do this in a more general sense for all CCK fileds with the aim to use that module to work with Ubercart. This is a good start however :)

let me know how it goes people.

banglogic’s picture

subscribing

banglogic’s picture

Hello cpill,

Thanks for submitting the patch. Any word on how this worked out? I'm experimenting with moving a site which is under development from "Image" to "Imagefield" and the ability to mass-import images (as offered by "Image Import") will be sorely missed.

I'll be giving this a shot myself soon and will provide feedback.

vordude’s picture

double post

vordude’s picture

StatusFileSize
new11.76 KB

cpill-- you rock.

I did some coding standards cleanup and ran some straightforward tests-- Everything seems to work fine.

Also fixed this bug in this issue: http://drupal.org/node/340467

The File attachment is adding an extra "_" in the extension, but I seem to still be able to open it--

vordude’s picture

Status: Needs work » Needs review
banglogic’s picture

Status: Needs review » Needs work

Wanted to report my results when testing this patched version ("Drupal 6 support?", Comment #20, vordude" -- http://drupal.org/node/295295#comment-1143223) of "ImageField Import" on a 6.x-based site.

It works! I was able to efficiently import nearly 2000 images using this module. It worked much the same way that the "Image Import" module works. In general, this is it:

1. Visit the ImageField Import settings page (admin/settings/imagefield_import)
2. Confirm the import path and node type you will be importing into (you must create your own node-type with an ImageField field prior to running this)
3. FTP the files into the predefined import path
4. Vsit the ImageField Import page (admin/content/imagefield_import)
5. Toggle the check boxes for those you wish to import
6. Update the Title field (pre-populated with name of the image files)
7. Add text to the Body field (if desired), and finally
8. Click the Import button.

ImageCache processes the images to create the derivatives and all is well.

Please note that I have not dug into the code provided nor made any effort to find flaws with this port. I just know that it is "working" at this time.

One important issue did arise: In order to install this module, I had to DISABLE the "Images" node. While it's well known that the "ImageField" and "Image" modules are "incompatible", this is the first issue where I found that I actually needed to disable the Image module. I don't recall the specific error at the moment but it was something about "image" already being declared (apologies for not getting the specifics, I was in a hurry to move forward).

At that point, I needed to REMOVE the "imagefield_import" folder from the "modules" path, then disable the "Images" module(s), then place the "imagefield_import" folder back in "modules" again.

A secondary, much more minor note: The name of this module is referenced as "Imagefield Import" throughout, whereas the main module is called "ImageField" (note the capitalized "F"). Really petty issue really, just nice to be consistent.

Other than that, I didn't have any problems. Many thanks to cpill and vordude for bringing it into the 6.x arena.

cpill’s picture

Your welcome banglogic,

good to hear its working for you. I have also tested it on a live Linux server and seem to be all good.

Maybe vordude should consider making it official after he has given it the once over?

jakew’s picture

subscribe

droolpal’s picture

This patch works for me in Drupal 6.6 (http://drupal.org/node/295295#comment-1143223). I just unpacked and installed like any other module, worked right out of the box. Thanks to Betz for tipping me off to it, thanks to cpill and vordude for making the patch happen!

vordude’s picture

Status: Needs work » Fixed

wrapped into a release yesterday.

again--

huge thanks to cpill! you rock !!!111!!oneone!!!

attiks’s picture

I tried this, but I got a WSOD, after i renamed

function _image_filename($filename, $label = IMAGE_ORIGINAL, $temp = FALSE) {

to

function imagefield_image_filename($filename, $label = IMAGE_ORIGINAL, $temp = FALSE) {

all was working

vordude’s picture

Where do you see the line you changed?

What Version are you using?

I just looked over the latest 5.x and 6.x versions, I don't see the issue.

(perhaps I need more coffee)

Please elaborate...

attiks’s picture

I used to code in http://drupal.org/node/295295#comment-1143223, line 408 has the function

vordude’s picture

Ah,

That file is already outdated.

Latest version is in a release on the project page--latest release has fixed a couple of bugs beyond the initial port.

http://ftp.drupal.org/files/projects/imagefield_import-6.x-1.3-beta1.tar.gz

Is the latest version.

Status: Fixed » Closed (fixed)

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