![]() |
[vbhacker] Mozilla Text Area Fix
This hack fixes the problem with Mozilla and the text area on the forum. Mozilla reads the width attribute different than netscape and causes the text area's to be narrow and very fustrating to use when you are typing in a lot of code or just a long message.
Description of what was changed: I changed the function gettextareawidth to have mozilla use the width specified for IE instead of the width specified for Netscape. I hope you all like my first hack. SiD |
here is a screen shot of the before and after...
|
Installed it and am no worse for the wear. :) I don't get many Netscape users on my site but this will at least make it "friendlier" for them. Thanks.
|
I donno anyone who uses mozilla?!?
|
Quote:
|
Besides IE6 I use Mozilla 1.0 rcX (nightly builds every weekend)
As soon as it goes gold, I will drop IE6 :) |
Excuse please! Can't this be done by going to admin cp, styles, modify, text width areas? I changed mine to 70 for NS 6.0 to 70 and the text area looks the same as IE now. I'm using Mozilla ver 1 RC3 and the text area looks the same on both IE and Moz.
|
Yes it can be done that way but if you get people that come to your forum with netscape 4.x it will look very wierd. That is why I did this hack.
|
But you can set the text width separately for Nutscrape 4.xx
|
works, thanks!
|
what the heck is mozilla?
|
Quote:
|
It is extremely fast. Blows the doors off Internet Exploiter.
|
What would you recommend for the setting for Netscape 6 and 7 and Netscape 4? Set them all to 70 like IE is?
Quote:
|
Quote:
|
Done, thanks! :)
|
If you can change these settings in the Styles > Modify, why would you need to install this hack? I have them all set to 70 (Thanks goes out to Smoothie for this one). Isn't that basically what your hack does? :)
Internet Explorer 4+ Netscape Navigator 4.x Netscape Navigator 6.0 Quote:
|
I didn't add the hack because the changes in the admin cp/styles/text input area took care of the width problems.
|
Anytime I can change a setting that will do what installing a hack does, then I'm with you on this one. :)
Quote:
|
Thanks, great mod - especially now when Mozilla went Gold,
10x, -Tom |
Quote:
The default settings for all the browsers in the admin cp is correct. If you look at the code changes for this hack, you'll see that there is extra code that detects if the browser is indeed Mozilla, not Netscape or MSIE. Then, it changes the text widths accordingly. |
A screen shot of the Mozilla text window, after adjusting the text width in the style section, without the hack added. Actually, Mozilla is Netscape.
|
Quote:
|
It is. But it worked like that with all of the Mozilla releases, prior to the full release of ver 1.0, including the nightly builds.
|
Hmm....just be my browser settings that messed it up...
Replaced the useragent with AIM/30. ^_^ |
I downloaded this hack, but I'm not exactly sure how to install it.
Do I replace the first version of the function with the second? Do I put it in my main folder and just run the php file? Me stoopid, but me love mozilla. |
I manually made the hack. Thanks!
|
Recently upgraded to 2.2.8 and had to rehack.
Works great (I did it manually(!)). cu, -Tom |
Thanks. Great Idea, I'm surprised I didn't see this earlier. I was starting to get annoyed with the short text box area.
|
I'm looking to install this. So all you do is replace the gettextareawidth template with the file above?
|
ergh....can someone please paste the instructions here. I don't know what's wrong with my PC, but I think I'm getting random screwy characters in downloaded text files. I keep getting T-String errors.... :(
Aaron |
yea, login to your admin cp, styles, modify, click [fonts/colors/etc], scroll down to the bottom. Textarea Widths, change Netscape Navigator 6.0 to 70, click save changes. Works for me.
|
Quote:
Without this hack, by default, vB 2.2.9 Mozilla uses Netscape 6.0 width, which is by default 40. With this hack, vB 2.2.9 Mozilla uses the IE textarea width instead which is set at 70. That's the difference. |
They both (Mozilla, Netscape) appear the same (text area) to me, without this hack
|
Is there ever going to be .txt instructions posted or what? I could use this hack for some of my Moz users. The textarea in IE6 is fine, but in Moz its simply too small, and changing the values in the styles section does nothing.
|
EDIT: Updated the instructions to make it clearer...
In functions.php, replace this section: PHP Code:
PHP Code:
|
Erwin
I did what you said above and I get the foolowing error: Parse error: parse error, unexpected ',' in /home/attroll/public_html/forum/admin/functions.php on line 334 Fatal error: Call to undefined function: getuserinfo() in /home/attroll/public_html/forum/admin/sessions.php on line 366 |
Hmm, Im getting the same thing.
|
When I cut and paste, I only left one / instead of the normal // for commenting out text. Sorry - try it again now. Btw, this is probably different to the code being used by the thread starter - this is code from vB.com developers (from memory).
|
Nope I get this error now which is pretty much the same one I got before.
Parse error: parse error, unexpected ',' in /home/attroll/public_html/forum/admin/functions.php on line 335 Fatal error: Call to undefined function: getuserinfo() in /home/attroll/public_html/forum/admin/sessions.php on line 366 |
All times are GMT. The time now is 04:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|