Author Topic: Modify default 'Add images' form fields  (Read 3742 times)

0 Members and 1 Guest are viewing this topic.

Offline apnetz

  • Newbie
  • *
  • Posts: 15
    • View Profile
Modify default 'Add images' form fields
« on: July 15, 2008, 05:28:25 PM »
Does anyone know how to modify the default form fields within ACP > Add images.

I would like to change the options, for example change the default for 'Allow comments' to 'No'.  Or, if possible, change the default catagory to the most used one.

Thanks

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Modify default 'Add images' form fields
« Reply #1 on: July 15, 2008, 06:23:03 PM »
Hi,

in admin/images.php

Allow comments to 'No':
search:
Code: [Select]
    show_radio_row($lang['field_allow_comments'], "image_allow_comments_".$i, 1);change 1 to 0

Default categorie:
search:
Code: [Select]
    show_cat_select_row($lang['field_category'], 0, 3, $i);change 0 to your most used cat_id   :wink:


Kurt

Offline apnetz

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Modify default 'Add images' form fields
« Reply #2 on: July 16, 2008, 10:19:42 AM »
Thank you, that worked great. :D