4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Sun Zaza 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?
-
Hi!
please test it : http://www.4homepages.de/forum/index.php?topic=26697.msg144874#msg144874 :)
mfg Andi
-
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: