Author Topic: [SOLVED] Bild Details Fehler beim Upload / Image Details Mistake on Upload  (Read 3696 times)

0 Members and 1 Guest are viewing this topic.

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Quote
:flag-de: Hallo zusammen,

ich habe ein paar weitere Image-Felder angelegt. Wenn ein User nun ein Bild uploaded und die Felder ausfüllt, werden diese nicht übernommen, nur die Standard Felder werden übernommen!

Wenn ich als Admin ein Bild Uploade und die Felder ausfülle, werden diese direkt übernommen!

Was mir aufgefallen ist, dass wenn ich die Bilder freischalten muss, dass dieser Fehler auftretet. Wenn die User die Bilder direkt Uploaden können, dann geht das ohne Probleme!

 :flag-en:
Hello,

I have a few more image fields. If a user uploaded a picture now and fills the boxes, they will not be accepted, only the standard fields are over!

If I as Admin upload a picture and fill in the fields, they will be transferred directly!

What struck me is that when I unlock the pictures, that this error auftretet. If the user to upload photos directly, then does it without any problems!

Probleme Solved: http://www.4homepages.de/forum/index.php?topic=22908.msg125181#msg125181
Problem gelöst: http://www.4homepages.de/forum/index.php?topic=22908.msg125181#msg125181
« Last Edit: October 05, 2008, 07:34:54 PM by Phisker B »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Bild Details Fehler beim Upload / Image Details Mistake on Upload
« Reply #1 on: October 05, 2008, 07:02:35 PM »
Quote
$additional_image_fields['%column_name%'] = array("%field_description%", "%admin_field_type%", %is_required%);
Set it to 0

and make sure your added new fields in 4images_images_temp database table
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: Bild Details Fehler beim Upload / Image Details Mistake on Upload
« Reply #2 on: October 05, 2008, 07:10:29 PM »
Thank you for your quick response, but all fields are to 0! But it does not work!

Code: [Select]
$additional_image_fields['image_direktlink'] = array($lang['image_direktlink'], "text", 0);
$additional_image_fields['image_demo'] = array($lang['image_demo'], "text", 0);
$additional_image_fields['image_patch'] = array($lang['image_patch'], "text", 0);
$additional_image_fields['image_mirror'] = array($lang['image_mirror'], "text", 0);
$additional_image_fields['image_hersteller'] = array($lang['image_hersteller'], "text", 0);
$additional_image_fields['image_install'] = array($lang['image_install'], "text", 0);
$additional_image_fields['image_pdf'] = array($lang['image_pdf'], "text", 0);
$additional_image_fields['image_tut'] = array($lang['image_tut'], "textarea", 0);
$additional_image_fields['image_version'] = array($lang['image_version'], "text", 0);
$additional_image_fields['image_versionb'] = array($lang['image_versionb'], "text", 0);

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Bild Details Fehler beim Upload / Image Details Mistake on Upload
« Reply #3 on: October 05, 2008, 07:18:06 PM »
If images requires admin validation they are being stored in 4images_images_temp table instead of 4image_images. This means whatever new fields you have added in 4images_images table you need add in 4images_images_temp table as well.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: Bild Details Fehler beim Upload / Image Details Mistake on Upload
« Reply #4 on: October 05, 2008, 07:22:53 PM »
ah okay, im understand!

Like this:
Code: [Select]
ALTER TABLE `4images_images_temp` ADD `image_MYFIELD` VARCHAR( 255 ) NOT NULL;
??

Edit://
Okay, thats right!
Works very Fine!