BirdOPrey5
10-15-2011, 10:27 PM
Someone asked on vBulletin.com how to do this and I thought it actually comes in pretty handy when coding setting options and such.
It is unfortunately a manual file edit.
Open the file: /includes/adminfunctions.php
Find:
print_label_row(
$title . $openwindowbutton,
"<div id=\"ctrl_$name\"><textarea name=\"$name\" id=\"{$vbulletin->textarea_id}\"" . iif($textareaclass, " class=\"$textareaclass\"") . " rows=\"$rows\" cols=\"$cols\" wrap=\"virtual\" dir=\"$direction\" tabindex=\"1\"" . iif($vbulletin->debug, " title=\"name="$name"\"") . ">" . iif($htmlise, htmlspecialchars_uni($value), $value) . "</textarea>$resizer</div>",
'', 'top', $name
);
And replace with
print_label_row(
$title . $openwindowbutton,
"<div id=\"ctrl_$name\">$resizer<textarea name=\"$name\" id=\"{$vbulletin->textarea_id}\"" . iif($textareaclass, " class=\"$textareaclass\"") . " rows=\"$rows\" cols=\"$cols\" wrap=\"virtual\" dir=\"$direction\" tabindex=\"1\"" . iif($vbulletin->debug, " title=\"name="$name"\"") . ">" . iif($htmlise, htmlspecialchars_uni($value), $value) . "</textarea></div>",
'', 'top', $name
);
And now Increase/Decrease is at the top. Why is this better? because they no longer move away from the mouse pointer (as much) when changing sizes, something that gets really annoying if you are doing it a lot.
:)
It is unfortunately a manual file edit.
Open the file: /includes/adminfunctions.php
Find:
print_label_row(
$title . $openwindowbutton,
"<div id=\"ctrl_$name\"><textarea name=\"$name\" id=\"{$vbulletin->textarea_id}\"" . iif($textareaclass, " class=\"$textareaclass\"") . " rows=\"$rows\" cols=\"$cols\" wrap=\"virtual\" dir=\"$direction\" tabindex=\"1\"" . iif($vbulletin->debug, " title=\"name="$name"\"") . ">" . iif($htmlise, htmlspecialchars_uni($value), $value) . "</textarea>$resizer</div>",
'', 'top', $name
);
And replace with
print_label_row(
$title . $openwindowbutton,
"<div id=\"ctrl_$name\">$resizer<textarea name=\"$name\" id=\"{$vbulletin->textarea_id}\"" . iif($textareaclass, " class=\"$textareaclass\"") . " rows=\"$rows\" cols=\"$cols\" wrap=\"virtual\" dir=\"$direction\" tabindex=\"1\"" . iif($vbulletin->debug, " title=\"name="$name"\"") . ">" . iif($htmlise, htmlspecialchars_uni($value), $value) . "</textarea></div>",
'', 'top', $name
);
And now Increase/Decrease is at the top. Why is this better? because they no longer move away from the mouse pointer (as much) when changing sizes, something that gets really annoying if you are doing it a lot.
:)