Hey guys,
I'm having a lot of trouble understanding what I'm supposed to do to get the upload working.
" enable Content Copy module from CCK bundle, then use the contents of the ifa_upload_content_type.php file in the import form, using the name ifa_upload for the content type."
I have Content Copy enabled, and I see a "ifa_upload_content_type.php" file that I could put into a form. I created a new content type (Administer -> Content Types -> Add Content Type), called it ifa_upload and left the rest of the settings at defaults. I then returned to the Add Content Type screen, clicked "Import" and then selected ifa_upload from the list and pasted in the ifa_upload_content_type.php file contents. That's what I think the above sentence was asking me to do.
"Add the Inline Images filter to the desired Input Formats for better use of the module."
I went to Administer -> Site Configuration -> Input Formats and configured my default "Full HTML" form to use the module.
When I go upload an image, it looks like it's trying to make a new page or something. There are Body, Input Format, Menu Settings, URL Path Settings, File Attachments, and everything just like any other page. However, there is no where for me to upload the picture. I've tried throwing it in File Attachments, but that didn't work.
There is certainly an Image field in ifa_upload, named field_ifa_upload with type file, but I don't see it in the...
There is a new permission created that I had to enable called "view field_ifa_upload".
I'm sure others would love to have some better documentation anyways, so hopefully this experience helps.
Comments
Comment #1
lourenzo commentedHowdy
You should just import directly without creating the type first.
All necessary settings are contained in the export file.
We have a little problem with defaults too, so it can be needed to access admin/settings/imagefield_assist and just save the form.
If you enable per-field permissions in CCK, you must configure the correct permissions for the field_ifa_upload field.
We're working on the module to provide a smoother installation and configuration.
Comment #2
nordicpc commentedThanks for the quick response. I think it might be worth it to also post a quick "Read the README.txt" file in the module description at least, since I had no idea where to go once I saw the error "You must import the ifa_upload content file using CCK Content Copy import form." A google search only showed the reference to this string in the code, and no where else. Perhaps now someone will at least see the issue here and be able to get around it.
Thanks again for helping us out with a great module. I've even replaced FCKEditor for TinyMCE and have everything working mostly well now.
Cheers!
-Nate
Comment #3
bjste commentedI did look for this solution too... And I figured it out by reading this....
However.. I do get some error's and warnings.
The first one was: Warning: Parameter 1 to imageapi_gd_image_resize() expected to be a reference, value given in [site path]/drupal-6.14/sites/all/modules/imageapi/imageapi.module on line 165
Which I solved by doing as #1 did in this tread: http://drupal.org/node/540486
The next one is: warning: Parameter 2 to imagefield_assist_properties_form() expected to be a reference, value given in /customers/stender.se/stender.se/httpd.www/includes/form.inc on line 372.
This one I have no idea how to solve... Could anyone please help me out?
(It would be nice if such things perhaps were a bit explained in the readme.txt file if they are common warnings when installing image assist....)
Comment #4
bnavasky commentedHaving the same problem as bjste -- the second warning only:
warning: Parameter 2 to imagefield_assist_properties_form() expected to be a reference, value given in C:\wamp\www\drupal\includes\form.inc on line 372.
Update: found this advice: http://drupal.org/node/823770
Comment #5
tjtj commentedI finally got this working, sort of. The upload works. But I get a message that
"ImageMagick reported an error: /usr/bin/convert: Unable to open file (sites/default/files/ifa_upload/PNG logo.png) [No such file or directory]. "
even for a file name with no space in it (e.g., falls.png). (Ihe module should put the file name in quotes though.) The files are in that directory.
So how do I get past this hurdle? The files are protected 664.