thank you mark, for this extension. seems really useful. I have a problem with ee 1.5.1 and the file-extension 1.0.9
when using the upload field, no other entry field is accessible and every click creates a further upload-field (see attached screenshot). this only happens when a file is choosen via the browse button. seems like a javaScript problem. any idea?
oh, seems that it only affects ie(v.7 on winXP). it works perfect under firefox. has anyone experiences with the file-extension on safari and ie?
regards martin
It seems to work fine for me in FF and IE7 xp. In the Extension settings do you have Allow Multiple Files set to yes or no? If yes, it will create another file select browse box after uploading the previous file. I’m not sure if you are seeing that as the error or if there is something more problematic happening. Sounds like maybe the latter though.
thanx for your reply.
yes, I configured the extension for Multiple Files, and its ok that another file select browse box is created after uploading the previous file. But every further klick creates another one, other custom-fields aren
t clickabel (results in one more select browse box), never the submit-button.
but i´m glad to hear that other xp/ie7-setups work like yours rob. Ill upgrade my ie7, it
s still a early beta. it works perfect for me with ie6 /firefox 1.5 /opera 8.51 and I`m really astonished about your effort, mark. Your extensions are really cool. I think 2006 will get a power-boost year for ee-extensions cuz you joined this community.
is there a thread for your mult-reference extension? this causes a blank page when calling the containing publish-form.
rg martin
I’ve updated the extension to 1.1.0. It fixes just a few small bugs where incomplete URL’s were being added to the template where no image was uploaded. Also if you’re using this extension in the SAEF you’ll have to modify your mod.weblog_standalone.php file within the /system/modules/weblog/ folder. Find the following line:
$data = array(
'hidden_fields' => $hidden_fields,
'action' => $RET,
'id' => 'entryform',
);
and add this line
'enctype' => 'multipart/form-data'
so it looks something like this
$data = array(
'hidden_fields' => $hidden_fields,
'action' => $RET,
'id' => 'entryform',
'enctype' => 'multipart/form-data'
);
I just ran into this problem on two test installs: it’s repeated for several fields that I created -
Notice: Undefined index: field_id_22 in /*/system/extensions/ext.file.php on line 534
UPDATE: Ok, So I took out the following code and the error message went away. I take it then I may have coded it in a way that is causing a result that produces this error - ?
<
pre>{!-- HEADLINE ARCHIVE IMAGE & RELATED NEWS LINK --}
{if:elseif ts_image_archive != "0" AND ts_related_news != "0"}
{related_entries id="ts_related_news"}<a href="http://{permalink=">{/related_entries}{related_entries id="ts_image_archive"}{image_archive}{/related_entries}</a></p>
<p>{!-- HEADLINE ARCHIVE IMAGE & CUSTOM URL LINK --}
{if:elseif ts_image_archive != "0" AND ts_open_field_link != ""}
<a href="http://{ts_open_field_link}">{related_entries id="ts_image_archive"}{image_archive}{/related_entries}</a></p>
<p>{!-- HEADLINE ARCHIVE IMAGE & NO URL --}
{if:elseif ts_image_archive != "0" AND ts_open_field_link == "" AND ts_related_news == "0"}
{related_entries id="ts_image_archive"}{image_archive}{/related_entries}
So what I am doing above is checking to see if the related field is selecte and pulling in a related weblog custom field that uses the “File” upload. When I take the related custom fields out a notice goes away each time
{related_entries id="ts_image_archive"}{image_archive}{/related_entries}
Sorry if this has been covered already, and I suspect the answer is ‘no’, but…
Is there any conceivable way that it would be possible to add extra metadata for each file upload? The reason why is that I’d like to add a specific alt attribute value for each image. Also, I’m incorporating this with the Lightbox technique which requires a title attribute to create a caption for each image.
As I say, I suspect there’s no feasible way of doing this, beyond going back to having multiple fixed custom text input fields (img1, img1_caption, img2, img2_caption, etc)
Thanks, Dave
I would like to use this with Phpthumb script but I am running into a problem where I need to output a relative URL or just the file name (file.jpg) itself would do (I can hardcode the url into the template).
Curious if there is a quick and easy way for me to hack the extension to limit to just the file name?
Around line 543 you’ll see this:
$repeating_interior .= str_replace(LD.$f['field_name'].RD, $f['url'].$d, $tags[1][$key]);
if you just remove the
$f['url'].
it will only output the filename. Then it will look like this:
$repeating_interior .= str_replace(LD.$f['field_name'].RD, $d, $tags[1][$key]);
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.