Author Topic: probelm after add new filed  (Read 10534 times)

0 Members and 1 Guest are viewing this topic.

Offline mzaeen

  • Newbie
  • *
  • Posts: 17
    • View Profile
probelm after add new filed
« on: February 07, 2009, 01:28:43 AM »
 hello all

i'm do this setps in this link
http://www.4homepages.de/forum/index.php?topic=20748.0

to add new filed ,,,,

all things is ok ,, but i have one problem

the probelm is when add new file ( image ) by member from this

member_uploadform.html

and go to the details.html
th show the result

all filed is appear Except new result for new filed

but if add add new file ( image ) by admin from control panel
all filed is appears okk ,,,

What is the cause of the problem ??

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: probelm after add new filed
« Reply #1 on: February 07, 2009, 02:40:02 AM »
If images require validation after upload, you must add your new fields into 4images_images_temp database 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 mzaeen

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: probelm after add new filed
« Reply #2 on: February 07, 2009, 11:31:03 AM »
i'm add  the new filed into 4images_images_temp
but the same problem

Offline mzaeen

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: probelm after add new filed
« Reply #3 on: February 07, 2009, 04:39:23 PM »

i'm do this command

ALTER TABLE `4images_images_temp` ADD `image_topdes` VARCHAR( 255 ) NOT NULL;


but the same problem

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: probelm after add new filed
« Reply #4 on: February 07, 2009, 05:55:20 PM »
Ok, please show what changes in other files you've made
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 mzaeen

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: probelm after add new filed
« Reply #5 on: February 07, 2009, 11:06:16 PM »
ok ,, my step is :

1. in the includes/db_field_definitions.php
add thiis line before ?>

$additional_image_fields['image_topdes'] = array($lang['image_topdes'], "text", 1);

2 . in the lang/deutsch/main.php
add thiis line before ?>

//-----------------------------------------------------
//--- Additional Fields -------------------------------
//-----------------------------------------------------
$lang['image_topdes'] = "وصف";


3. in the templates/default/member_uploadform.html
add this
{lang_image_topdes}
<input type="text" name="image_topdes" size="30" value="{image_topdes}" class="input" />


4. in the templates/default/details.html


add this

{lang_image_topdes}

and

{image_topdes}



ALTER TABLE `4images_images` ADD `image_topdes` VARCHAR( 255 ) NOT NULL;
ALTER TABLE `4images_images_temp` ADD `image_topdes` VARCHAR( 255 ) NOT NULL;


what is the problem ???

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: probelm after add new filed
« Reply #6 on: February 07, 2009, 11:41:11 PM »
Everything look fine...strange, it should work....

In member_uploadform.html, did you added between <form> and </form> tags?

By the way, what 4images version do you use?
Can I try and see myself?
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 mzaeen

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: probelm after add new filed
« Reply #7 on: February 08, 2009, 01:01:23 AM »
yes it is
between <form> and </form>

the verson is

Powered by 4images 1.7.6
Copyright © 2002-2009 4homepages.de

Offline mzaeen

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: probelm after add new filed
« Reply #8 on: February 08, 2009, 01:16:52 AM »
see this ex :
note : Is set in red is new filed


in the member_uploadform.html

http://www.mzaeen.net/upfiles/dUA51942.jpg

the result in details.html
is empty :
http://www.mzaeen.net/upfiles/XpF52084.jpg

--------------

but , if add new iamge from control panel

i'm put the message in new filed
http://www.mzaeen.net/upfiles/JWt52145.jpg

and the result in details.html is good
http://www.mzaeen.net/upfiles/zoX52201.jpg


!!!!!!!!!!!!!!!!

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: probelm after add new filed
« Reply #9 on: February 08, 2009, 01:30:28 AM »
did you modify member.php ?
if you did, try unmodified version and see if the problem still exists.
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 mzaeen

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: probelm after add new filed
« Reply #10 on: February 09, 2009, 08:55:57 PM »
thanks

now it is okkkk