![]() |
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 |
No problem. Let me know when you get any Mozilla users if it works ok. ;)
|
Wow when I view my web pages with IE 6 after getting this hack to work it makes it really hard to read. Should I or can I change this a little to get my IE to view better. Which one would I change teh 70 and if so what can I change it to?
Wow. I just noticed something. Every web site I visit with Internet Explorer has changed to a smaller pixel or something and when I go into my computer properties it is set right but something is wrong here. I thin I will change it back maybe. What has this mod done? |
I am attaching the updated text file I made since vbulletin wants to parse everything.
It works great on my site. You must have changed something else along with it. Look at the file I have attached and make the necessary changes there. |
I got my problem fixed thanks to help from Boofo. It was not the hack that caused the problem. It was a case of staying up longer then I should have working on hacks. I was getting lame brained and did something without realizing I even did it.
|
You probably didn't touch anything to do it. It has happened to me before. I think there must be some sites that do that for whatever reason. Glad you got it working. ;)
|
That code worked for me as well. I figured the missing / in Erwins post after mine was the prob, but I was getting the same parse errors, but all seems good now both in IE and Moz.
|
Looks like Firebird is having the same issue as Netscape.. :(
|
All times are GMT. The time now is 06:06 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:
|