Author Topic: Mod request: Additional field with RADIO, but not YES and NO  (Read 3319 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Mod request: Additional field with RADIO, but not YES and NO
« on: January 20, 2010, 10:29:34 PM »
Hello,

If you want to add an additional field to your database as a RADIO, you use this code in db_field_definitions.php file:

$additional_image_fields['image_country'] = array($lang['image_country'], "radio"0);
So you have to choose YES or NOT.

but what about to choose between 2 values? For example: HOLLAND or GERMANY.

I am thinking about something like:

$additional_image_fields['image_country'] = array($lang['image_country'], "radio", array("Holland""Germany"), 0);


I tried to write a new function in admin/admin_function.php, but without success. Can you?

Rembrandt

  • Guest

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Mod request: Additional field with RADIO, but not YES and NO
« Reply #2 on: January 24, 2010, 03:32:20 PM »
I already usining on my site. It works perfect. You save us a lot of time.
Many thanks from me.

You are the MAN! :wink: