![]() |
Okay, I've made the instructions very clear in case people were replacing only the commented out line (but surely not) - find that code and REPLACE the WHOLE SECTION.
It should work. |
It won't work. You got way too many brackets with the eregi stuff now.
|
Uh... count the brackets carefully. :) It does work. Because it's the same code running on my forums for the past 6 months.
|
Then you muist have a magic site. ;)
One on the left and 2 on the right and it still works? ("Netscape6/",$HTTP_USER_AGENT)) |
Boofo... look at that line of code carefully. COUNT the number of brackets.
Don't confuse the OR bits with the AND bits... :) The Netscape is joined with the Mozilla variables... If you can't count, I can't help you. P.S - vB.org is definitely not magical, but it has this code installed... ;) |
Let me break it down for you, since you obviously can't count, yet insist on trying to be smart.
if (eregi("MSIE",$HTTP_USER_AGENT) this first part - opens a new bracket, the IE one is open and closed, 1 bracket still needs to be closed... || (eregi("Mozilla/5",$HTTP_USER_AGENT) && Opens another bracket, the Mozilla is open and closed, so we have 2 brackets to be closed now. !eregi("Netscape6/",$HTTP_USER_AGENT))) { The Netscape variables are open and closed, so then we close the 2 brackets. See? Next time, count, before trying to criticize code released by others. |
Erwin, I was counting before you were even born. ;)
This is the line I was referring to. PHP Code:
Edit: You're not even using eregi in your new code, by the way. |
Yes you must have a magic site because I have done this three time and still get the same error even after you changed your directions. Are you sure you did not change something somewhere else maybe? I don't think I am that bad I have installed mods before.
|
attroll, try this. I'm not very good at counting so it may not work. ;) Let me know.
[disable]// ###################### 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; } }[/disable] |
Yup that did it with yours Boofo. I don't know if it actiually works with Mozilla though. I will have to wait until one of my users comes online to find out. But at least I am not getting any errors now.
THanks Boofo |
All times are GMT. The time now is 09:10 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|