3 of 4
3
Stand-Alone Image Editor
Posted: 11 December 2007 03:08 AM   [ Ignore ]   [ # 37 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  165
Joined  09-29-2007

DEA:

could there be a naming conflict somewhere with your weblogs and fields?  you’re right that it seems that the weblog_id is not being set, but i can’t see why because the extension just hooks on to the entry form submission.

i notice you are using the checkbox extension.  have you any others enabled that might be causing a conflict?

is this just happening with this one particular weblog?

 Signature 

* Get the Sitemap Module and improve your site’s SEO

More Add-ons: Multi Language, iWebApp, Stand-Alone Image Editor, Landing Page, LogMeIn, Loop Plugin, Session Variables

Profile
 
 
Posted: 14 December 2007 02:33 PM   [ Ignore ]   [ # 38 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  128
Joined  04-17-2006

Resolution!

Well, my problem did stem from the directories, but it was a rather different kind of problem. I could not successfully upload any images no matter what modifications I did to paths or permissions. Turns out, my upload_destination ID was set incorrectly in the front-end form. (I had tried removing this altogether, but for some reason this never remedied the situation.)

I am using the MSM and have another upload path on another “site”, causing my path IDs to be off by one in my main site. I found this problem by simply adding {filedir_1} to the front-end template and scaling up 1, 2, 3, 4, 5 until I saw that other site path showing. It was then that I realized what the problem was. I set my upload_destination attribute to the correct value and it worked like a charm. I knew something was awry when I was finally able to submit the form (verification that an upload occurred), but could not find the files that had been uploaded. When I realized the other site had been grabbing them, I checked THAT upload directory and there they all were. smile

My problem is solved, thankfully. Ben, I appreciate all the assistance and for the swell plugin.

 Signature 

http://davidrussell.org | http://twitter.com/davidrussell

Profile
 
 
Posted: 11 January 2008 02:49 PM   [ Ignore ]   [ # 39 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1735
Joined  03-26-2006

Has anyone ever implemented a way to check the uploaded files to ensure they’re not too large (filesize)? That is the only issue I’m running into here. We want to ensure the images being uploaded aren’t over a certain size (say 800k). Ideally we’d like to do this before the form is even submitted.

I’m already using jQuery on the site, so I found this pretty decent jQuery/Flash solution (jqUploader) but I just can’t seem to get that one to work out of the box - I should say I ALMOST have it working, but the file isn’t actually uploading. I’d like to find something similar to jqUploader that doesn’t actually upload the file before the form is submitted, but only does the size check. Anyone have an idea about this?

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 25 January 2008 10:34 AM   [ Ignore ]   [ # 40 ]  
Grad Student
Rank
Total Posts:  37
Joined  05-23-2007

Could someone give me a quick walkthrough of what needs to be done for the plugin to work. I did look at the tutorial on the website, but it wasn’t clear enough. Maybe I am too tired smile but i would really appreciate it if someone did help me out here.

I ma currently creating a case studies section on our website. Each case study will have 3 screenshots. I am using stand-alone entry/edit forms throughout the website at the moment.

So I am going create a new blog called gallery. What custom fields would I need to create to have up to 3 images per entry/post?

Does anyone have a code of a working example?

Thank you…

Profile
 
 
Posted: 30 January 2008 04:33 AM   [ Ignore ]   [ # 41 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  165
Joined  09-29-2007

hi anton, did you get it working?  its really quite simple.  you would put a custom field called images for example into your gallery weblog.  then to use it in a stand-alone entry form put the following code into your entry form:

{exp:weblog:entry_form weblog="gallery"}

  Title
: <input type="text" name="title" /><br/>

  
// image editor code starts here
  
<input type="hidden" name="upload_field" value="images" />
  <
input type="file" name="file1" /><br/>
  <
input type="file" name="file2" /><br/>
  <
input type="file" name="file3" /><br/>
  
// image editor code ends here
  
{/exp:weblog:entry_form}

 Signature 

* Get the Sitemap Module and improve your site’s SEO

More Add-ons: Multi Language, iWebApp, Stand-Alone Image Editor, Landing Page, LogMeIn, Loop Plugin, Session Variables

Profile
 
 
Posted: 07 February 2008 06:30 AM   [ Ignore ]   [ # 42 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  102
Joined  08-14-2007

Hi Ben

I’ve just bought your plugin and have it working. However, I’m trying to populate two other custom weblog fields in the same SAEF and for some reason the values aren’t being entered. Is this a limitation of the plugin?

My code is pretty straightforward:

{exp:weblog:entry_form weblog="ad_challenge_entries"}  

<input type="hidden" name="upload_destination" value="7" />
<
input type="hidden" name="upload_field" value="challenge_image01" />

<
p>* Your name:<br />
<
input type="text" name="title" value="" size="50" />
</
p>

<
p>* Your email:<br />
<
input type="text" name="challenge_email" value="" size="50" />
</
p>

<
p>* Notes:<br />
<
textarea name="challenge_body" cols="50" rows="10"></textarea>
</
p>

<
p>Image:<br />
<
input type="file" name="challenge_image01" />
</
p>

<
p>
<
input type="submit" name="submit" value="Submit" />
</
p>

{/exp:weblog:entry_form}

To clarify, only title and challenge_image01 are being entered into the weblog entry.

Any ideas?

Jim

 Signature 

Jim Pannell | Six Media Web Development | Copenhagen, Denmark

Profile
 
 
Posted: 07 February 2008 07:43 AM   [ Ignore ]   [ # 43 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  165
Joined  09-29-2007

hi jim, it looks like you are simply not using the SAEF correctly.

the input field names of custom weblog fields should be in the format field_id_1, field_id_2, etc.

see the docs for more details.

 Signature 

* Get the Sitemap Module and improve your site’s SEO

More Add-ons: Multi Language, iWebApp, Stand-Alone Image Editor, Landing Page, LogMeIn, Loop Plugin, Session Variables

Profile
 
 
Posted: 07 February 2008 08:11 AM   [ Ignore ]   [ # 44 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  102
Joined  08-14-2007

Thanks for the tip - I added the following and got it working:

{custom_fields}
{if required}
* {/if}{field_label}<br />
{field_instructions}
{if textarea}
<textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}" onclick="setFieldName(this.name)">{field_data}</textarea>
{/if}

{if textinput}
<input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
{/if}
{
/custom_fields}

However the custom field I created for the image is now showing as well as the image field with the browse button (generated by your plugin).

So if anyone knows how to hide this custom field it’d be much appreciated. Incidentally, in CP > Admin > Section Administration > Field Groups > Custom Fields I’ve already set the custom image field to be hidden by default, but this seems to have no effect.

Thanks in advance,

Jim

 Signature 

Jim Pannell | Six Media Web Development | Copenhagen, Denmark

Profile
 
 
Posted: 16 February 2008 03:33 AM   [ Ignore ]   [ # 45 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  165
Joined  09-29-2007

jim, try using the if statement to check for the image field (replace my_field_name):

{if textinput && field_name != 'my_field_name'}
<input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
{/if}

 Signature 

* Get the Sitemap Module and improve your site’s SEO

More Add-ons: Multi Language, iWebApp, Stand-Alone Image Editor, Landing Page, LogMeIn, Loop Plugin, Session Variables

Profile
 
 
Posted: 09 May 2008 07:59 AM   [ Ignore ]   [ # 46 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  206
Joined  06-18-2007

Hey Ben,

Great Module! I’d like to put in one feature request. It would be great if there was an upload progress bar to visually let users know the progress of the upload.

Thanks…  cool smile

Profile
 
 
Posted: 11 May 2008 05:08 PM   [ Ignore ]   [ # 47 ]  
Summer Student
Total Posts:  12
Joined  04-10-2008

Hi there, Ben! By your description, your extension looks good. Can i save pictures with unique names with it?

(upd: and in subfolders “/year-month/”)

(upd: and what about image resize after uploading? smile

Profile
 
 
Posted: 12 May 2008 02:32 AM   [ Ignore ]   [ # 48 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  165
Joined  09-29-2007

jci: thanks for the suggestion, i reckon it would be practical only for uploading large files, which is obviously what you intend it for.  i have to check out some existing upload progress bars, i know there are already some open source ones out there, and then i’ll get back to you on this one.  if anyone has any experience with using or implementing upload progress bars then please share.

By your description, your extension looks good. Can i save pictures with unique names with it?

elikov: i’m not sure what you mean by unique names.  the image names are kept, unless one already exists with the same name, in which case a random number is placed at the end of it.

 Signature 

* Get the Sitemap Module and improve your site’s SEO

More Add-ons: Multi Language, iWebApp, Stand-Alone Image Editor, Landing Page, LogMeIn, Loop Plugin, Session Variables

Profile
 
 
Posted: 12 May 2008 03:05 AM   [ Ignore ]   [ # 49 ]  
Summer Student
Total Posts:  12
Joined  04-10-2008

Autorename - good, thx for answer. And what about resize and folders?

Unique name - it’s, for example, “date%-%time%-%userid%-%originalname%.jpg”

Profile
 
 
Posted: 14 May 2008 09:36 AM   [ Ignore ]   [ # 50 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  165
Joined  09-29-2007

no, unfortunately everyone has their own naming requirements and folder structures so its quite difficult to satisfy everyone.  i will definitely see if i can in some sort of naming settings in the next release though.

 Signature 

* Get the Sitemap Module and improve your site’s SEO

More Add-ons: Multi Language, iWebApp, Stand-Alone Image Editor, Landing Page, LogMeIn, Loop Plugin, Session Variables

Profile
 
 
Posted: 14 May 2008 12:46 PM   [ Ignore ]   [ # 51 ]  
Summer Student
Avatar
Total Posts:  5
Joined  10-21-2007

Hi Ben,

I am creating a website for a social group and am using the Stand Alone Entry Form to allow members to create a customized profile for themselves without having to go into the Control Panel. I would like to allow each member to upload a photo. I’ve downloaded your add-on and have followed all the steps but something is still not working. I get the following error message after selecting a photo and clicking ‘submit’:

Notice: Undefined index: field_id in /home/content/.../system/extensions/ext.image_uploader.php on line 57

Here is the code from my SAEF template:

{exp:weblog:entry_form weblog="directory" return="members/directory"}

<table>
<
tr>
<
td>

<
p><b>Name</b> - (Last name, First name)<br />
<
input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();" /></p>

{custom_fields}
{if required}
* {/if}
<p><b>{field_label}</b>
{field_instructions}

{if textarea}
<br />
<
textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}" >{field_data}</textarea>
{/if}</p>

<
p>{if textinput}
<input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
{/if}</p>

{/custom_fields}

<p><input type="hidden" name="upload_field" value="photos" />
<
input type="hidden" name="upload_destination" value="2" />
<
input type="file" name="file1" /></p>

</
td>
<
td valign="top">

</
td>
</
tr>
</
table>

<
p><input type="submit" name="submit" value="Submit" /></p>

{/exp:weblog:entry_form}

I have created a specific upload directory, it is #2 and is named “memberpix”.

I hope my error is not something too obvious!!! This is my second EE site but my first time using the members feature and the SAEF. Can you tell me what else to check?

Thanks very much.

Profile
 
 
Posted: 14 May 2008 12:55 PM   [ Ignore ]   [ # 52 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  165
Joined  09-29-2007

hi evelyn,

it looks as though you may not have a custom weblog field named “photos” in the “directory” weblog.  can you check this and let me know what you find.  please also note that “photos” must be the field name (single word, no spaces) as opposed to the field label.

 Signature 

* Get the Sitemap Module and improve your site’s SEO

More Add-ons: Multi Language, iWebApp, Stand-Alone Image Editor, Landing Page, LogMeIn, Loop Plugin, Session Variables

Profile
 
 
Posted: 14 May 2008 07:51 PM   [ Ignore ]   [ # 53 ]  
Summer Student
Avatar
Total Posts:  5
Joined  10-21-2007

Thanks Ben - the custom field was the problem, I had a naming conflict.

Now on to controlling the size of the displayed image.

Thanks for writing this add-on!

Profile
 
 
Posted: 03 June 2008 08:01 PM   [ Ignore ]   [ # 54 ]  
Lab Assistant
RankRank
Total Posts:  276
Joined  07-04-2007

Is there any way this could accept other file types? such as mp3s?

I am making a site where local artists submit creative work (image, video and audio), so I am looking for a solution that can upload big files with a progress bar, only upload the file/form if the fields have been filled out correctly and the file is allowed (type, size etc), and ideally have some way to easily store the files (in user id sub directories without overwriting existing files).

I realise my feature request is quite a specific one, but are any of these planned for a future release?

Profile
 
 
   
3 of 4
3
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65023 Total Logged-in Users: 36
Total Topics: 82108 Total Anonymous Users: 16
Total Replies: 441263 Total Guests: 217
Total Posts: 523371    
Members ( View Memberlist )