Author Topic: where to change field size "Image description" in backend image.php  (Read 4203 times)

0 Members and 1 Guest are viewing this topic.

Offline wildnis

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://www.hickerphoto.com
Hi,

where can I adjust field sizes (display on this page) on the backend for images.php - editimage??

I have to make the field "keywords" and description larger.

thanks

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: where to change field size "Image description" in backend image.php
« Reply #1 on: January 10, 2006, 01:55:30 AM »
If only images.php you want to affect, then below
Code: [Select]
include(ROOT_PATH.'includes/search_utils.php');insert:
Code: [Select]
$textarea_size = 50;change number to whatever you want.
If you want to change these settings for every file in ACP, then you can play in admin/admin_globals.php with these numbers:
Code: [Select]
if (strstr(getenv("HTTP_USER_AGENT"), "MSIE")) { // Browser Detection
  $textinput_size = "50";
  $textinput_size2 = "30";
  $textarea_size = "50";
}
else {
  $textinput_size = "30";
  $textinput_size2 = "17";
  $textarea_size = "28";
}

Then if you want to change default number of rows (height), then adjust number 10 in admin/admin_functions.php in this line:
Code: [Select]
function show_textarea_row($title, $name, $value = "", $cols = "", $rows = 10) {
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 wildnis

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://www.hickerphoto.com
Re: where to change field size "Image description" in backend image.php
« Reply #2 on: January 10, 2006, 02:12:06 AM »
thank you so much!! Works fine! I would have one more questions, we separate our keywords like this:
kw1;kw2;kw3;kw4

is there any way to say the back panel to make a linebreak after every ";"

You sure would make my week if you have any idea if that is possible!!

thanks again - great help