Author Topic: Additional field dont save in validation tool  (Read 23303 times)

0 Members and 1 Guest are viewing this topic.

Offline djavet

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Additional field dont save in validation tool
« on: July 26, 2007, 10:20:54 AM »
Hello

I've udated to 1.7.4 right now and I've an additionnal text field on the upload page.
My additional field doesnt come to the validation screen and when I validate, the field in DB are empty! But when I correct the field via the image edit page, no problem, it's save well.
Before I update3, all was working well. Any idea what is wrong with the validating tool and the additional field?

A lot of thx for your feedback.

Dom

Offline djavet

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Additional field dont save in validation tool
« Reply #1 on: July 30, 2007, 06:49:18 AM »
Any idea?

Dom

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Additional field dont save in validation tool
« Reply #2 on: August 01, 2007, 03:05:34 AM »
Is $additional_sql declare from SQL select in upload page ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline djavet

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Additional field dont save in validation tool
« Reply #3 on: August 02, 2007, 08:11:13 PM »
Thx for your help.
Nope it's not declared. How can I make it?

Dom

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Additional field dont save in validation tool
« Reply #4 on: August 02, 2007, 09:56:46 PM »
Quote
How can I make it?

Hard knowing when no action name post. Template and PHP file where is happend ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline djavet

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Additional field dont save in validation tool
« Reply #5 on: August 03, 2007, 06:33:56 AM »
Hello

I think it's in the php, because all was working well with my old portfolio.
But i'm not good in PHP  :cry:

So if someone could help, i will be glad and thankfull.

Regards, Dom

Offline djavet

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Additional field dont save in validation tool
« Reply #6 on: August 03, 2007, 06:43:29 AM »
I found something interesting.
In the control panel, my custom field was not visible in validateimage.php, when I check the image before validate.

Any path?

Dom

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Additional field dont save in validation tool
« Reply #7 on: August 03, 2007, 12:19:12 PM »
Quote
Any path?

Add field in includes/db_field_definitions.php file ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline djavet

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Additional field dont save in validation tool
« Reply #8 on: August 03, 2007, 01:39:05 PM »
Done, because when I edit the image in the normal way, my custom field are here, but when I validate the image, the field is not here...
Strange...
Any idea?

Dom

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Additional field dont save in validation tool
« Reply #9 on: August 03, 2007, 02:01:05 PM »
Add the tag field and lang in template file ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline djavet

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Additional field dont save in validation tool
« Reply #10 on: August 03, 2007, 02:08:56 PM »
Yope, and the funny things are:
- in edit mode, it's working!

Exemple: validate a images (I loose the custom field), I edit the field and add manually the content and save and ... tada ... the custom field are here and updated!
I think is something misseng with the upload process or the validating tool... But I'm not a php developper...

Dom

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Additional field dont save in validation tool
« Reply #11 on: August 03, 2007, 02:17:51 PM »
Quote
I think is something misseng with the upload process or the validating tool... But I'm not a php developper...

Like say before ... which file & action happend ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline djavet

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Additional field dont save in validation tool
« Reply #12 on: August 03, 2007, 02:49:14 PM »
>> validateimage.php when I check the image to validate don't show the custom file.

Dom

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Additional field dont save in validation tool
« Reply #13 on: August 03, 2007, 02:53:27 PM »
Which array name use on db_field_definition.php file ? Please post complete line . .
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline djavet

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Additional field dont save in validation tool
« Reply #14 on: August 03, 2007, 03:02:02 PM »

in "db_field_definitions.php":
$additional_image_fields['image_uploaduser'] = array($lang['image_uploaduser'], "text", 0);

in "/lang/english/main.php":
$lang['image_uploaduser'] = "Name or Nickname:";

And I've added the fields in DB as requested for the upload too.

Thx for your help.
Dominique