vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [vbhacker] Mozilla Text Area Fix (https://vborg.vbsupport.ru/showthread.php?t=39428)

Sketch 01-07-2003 01:08 AM

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

Smoothie 01-07-2003 01:59 AM

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.

Erwin 02-10-2003 09:55 AM

Quote:

Originally posted by Smoothie
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.
Yes, but the textarea in Netscape 6.0 may then be too big.

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.

Smoothie 02-10-2003 04:13 PM

They both (Mozilla, Netscape) appear the same (text area) to me, without this hack

Mr. X 04-05-2003 05:47 AM

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.

Erwin 04-05-2003 09:32 AM

EDIT: Updated the instructions to make it clearer...

In functions.php, replace this section:

PHP Code:

// ###################### Start gettextareawidth #######################
function gettextareawidth() {
    
// attempts to fix idiotic Nutscrape textarea width problems
    
global $HTTP_USER_AGENT;

    if (
eregi("MSIE",$HTTP_USER_AGENT)) { // browser is IE
        
return "{textareacols_IE}";

    } elseif (
eregi("Mozilla/5.0",$HTTP_USER_AGENT)) { // browser is NS 6
        
return "{textareacols_NS6}";

    } elseif (
eregi("Mozilla/4.",$HTTP_USER_AGENT)) { // browser is NS4
        
return "{textareacols_NS4}";

    } else { 
// unknown browser - stick in a sensible value
        
return 60;

    }



with this:

PHP Code:

// ###################### Start gettextareawidth #######################
function gettextareawidth() {
    
// attempts to fix idiotic Nutscrape textarea width problems
    
global $HTTP_USER_AGENT;

    if (
eregi("MSIE",$HTTP_USER_AGENT) || (eregi("Mozilla/5",$HTTP_USER_AGENT) && !eregi("Netscape6/",$HTTP_USER_AGENT))) { // browser is IE
        
return "{textareacols_IE}";
        
    } elseif (
eregi("Netscape6/",$HTTP_USER_AGENT)) { // browser is NS 6
        
return "{textareacols_NS6}";
        
    } elseif (
eregi("Mozilla/4.",$HTTP_USER_AGENT)) { // browser is NS4
        
return "{textareacols_NS4}";


    } else { 
// unknown browser - stick in a sensible value
        
return 60;

    }




attroll 04-05-2003 02:42 PM

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

Mr. X 04-05-2003 07:49 PM

Hmm, Im getting the same thing.

Erwin 04-05-2003 11:24 PM

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).

attroll 04-05-2003 11:40 PM

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 09:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01058 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete