Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[vbhacker] Mozilla Text Area Fix Details »»
[vbhacker] Mozilla Text Area Fix
Version: 1.00, by sidhighwind sidhighwind is offline
Developer Last Online: Feb 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-03-2002 Last Update: Never Installs: 28
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 06-06-2002, 01:17 PM
eiSecure's Avatar
eiSecure eiSecure is offline
 
Join Date: Dec 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Smoothie
I didn't add the hack because the changes in the admin cp/styles/text input area took care of the width problems.
That won't work, because Mozilla is not Netscape, so what you're doing is changing the widths for Netscape, and not Mozilla.

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.
Reply With Quote
  #23  
Old 06-06-2002, 04:57 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #24  
Old 06-06-2002, 05:13 PM
eiSecure's Avatar
eiSecure eiSecure is offline
 
Join Date: Dec 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Smoothie
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.
Is that 1.0 Final? It doesn't work on mine...
Reply With Quote
  #25  
Old 06-06-2002, 05:17 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 06-06-2002, 05:19 PM
eiSecure's Avatar
eiSecure eiSecure is offline
 
Join Date: Dec 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm....just be my browser settings that messed it up...

Replaced the useragent with AIM/30. ^_^
Reply With Quote
  #27  
Old 09-16-2002, 06:18 PM
irc's Avatar
irc irc is offline
 
Join Date: Feb 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #28  
Old 09-16-2002, 08:41 PM
irc's Avatar
irc irc is offline
 
Join Date: Feb 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I manually made the hack. Thanks!
Reply With Quote
  #29  
Old 11-14-2002, 10:17 PM
Thomas P's Avatar
Thomas P Thomas P is offline
 
Join Date: Oct 2001
Location: Munich, DE
Posts: 365
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Recently upgraded to 2.2.8 and had to rehack.

Works great (I did it manually(!)).

cu,
-Tom
Reply With Quote
  #30  
Old 01-05-2003, 10:52 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. Great Idea, I'm surprised I didn't see this earlier. I was starting to get annoyed with the short text box area.
Reply With Quote
  #31  
Old 01-05-2003, 02:36 PM
mjames's Avatar
mjames mjames is offline
 
Join Date: Nov 2001
Location: Charlotte, NC
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm looking to install this. So all you do is replace the gettextareawidth template with the file above?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04540 seconds
  • Memory Usage 2,301KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete