Version: 1.00, by T?Pau
Developer Last Online: Jul 2006
Version: 2.2.x
Rating:
Released: 02-10-2002
Last Update: Never
Installs: 0
No support by the author.
Have you ever wanted to change the size of the textfield when you post a message? Now it is possible....
With this Hack every user can have a custom textfield size.
Both width and hight can simply be changed by specifying your favorit values in your Options Menu.
For a demo click here
Many thanks to Thomas"cptza" woh helped me a lot, to finish this hack
You need to edit 2 files and 3 templates
First open admin/functions.php
find
Code:
if (eregi("MSIE",$HTTP_USER_AGENT)) { // browser is IE
return "70";
and replace it with
Code:
// ###################### Start gettextareawidth #######################
function gettextareawidth () {
global $DB_site,$HTTP_USER_AGENT, $bbuserinfo;
$textareacols=$DB_site->query_first("SELECT textareacols FROM user WHERE userid='$userid'");
$textarearows=$DB_site->query_first("SELECT textarearows FROM user WHERE userid='$userid'");
if ($bbuserinfo[textareacols]!=0) {
return "$bbuserinfo[textareacols]";
}if ($bbuserinfo[textarearows]!=20) {
return "$bbuserinfo[textarearows]";
}elseif (eregi("MSIE",$HTTP_USER_AGENT)) { // browser is IE
return "70";
// textarea Begin
$textareacols=$DB_site->query_first("SELECT textareacols FROM user WHERE userid='$userid'");
$textarearows=$DB_site->query_first("SELECT textarearows FROM user WHERE userid='$userid'");
// Textarea End
find
Code:
$DB_site->query("UPDATE user
SET ".$updatestyles."adminemail='$adminemail',
showemail='$showemail',invisible='$invisible',cookieuser='$cookieuser',
maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification',
startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm',
emailonpm='$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',
nosessionhash='$nosessionhash'
WHERE userid='$bbuserinfo[userid]'");
and replace it with
Code:
$DB_site->query("UPDATE user
SET ".$updatestyles."adminemail='$adminemail',
showemail='$showemail',invisible='$invisible',cookieuser='$cookieuser',
maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification',
startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm',
emailonpm='$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',
nosessionhash='$nosessionhash',textareacols='$textareacols',textarearows='$textarearows'
WHERE userid='$bbuserinfo[userid]'");
in your Admin CP edit the templates newreply and newthread
Find