News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Bug in Firefox 1.5 Causing Server Issues with SMF 1.1

Started by Grudge, January 20, 2006, 07:47:20 PM

Previous topic - Next topic

Witch

Quote from: Kindred on January 22, 2006, 01:53:39 PM
Quote from: Prasad007 on January 22, 2006, 11:24:46 AM
how can notepad or anything mess up anything for adding a simple j
i did it correctly im sure


Just as a side note to anyone else...

Notepad will mess up ANY php files!!

DO NOT USE NOTEPAD TO EDIT YOUR PHP FILES.

Use a text editor like ConText, UltraEdit or EditPlus

I normally use Ultraedit myself.

But I've always wondered if the code editor in Dreamweaver is all right. I wouldn't want to use it for extensive coding, but for these sort of small edits it would be quite convenient.

Anyone have experience?

JayBachatero

I wouldn't use Dreamweaver.  It messes up files.  Take it from me.  Happened to me a few times. :-\
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

FBI

Firefox issue?
Thanks for the info guys.

I just replace the script.js with a new one and rename the old into script_bug_firefox.js and change the code in default theme. So, my visitors doesnt need to refresh and clear their browser cache.

HoTmetal

So much for FF being the golden child browser.... Now it has bugs just like the rest of them... :D Don't get me wrong, I still use it... I just don't care for the hype that its the best thing since sliced bread..

Quote from: JayBachatero on February 03, 2006, 09:08:56 PM
I wouldn't use Dreamweaver.  It messes up files.  Take it from me.  Happened to me a few times. :-\
How's it do that??

JayBachatero

When you save it it messed it up beyond repair.  Try it.  It moves lines around, etc.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

musicman2059

Quote from: rickc on February 05, 2006, 02:57:20 AM
Quote from: JayBachatero on February 03, 2006, 09:08:56 PM
I wouldn't use Dreamweaver.  It messes up files.  Take it from me.  Happened to me a few times. :-\
How's it do that??

DreamWeaver is a WYSIWIG HTML editor.  WYSIWIG HTML editors like to heavily modify the code of any files it loads so that it can display properly.

bunzer

Dreamweaver can mess up files, if you have some preferences set a certain way, for example: inserting linefeeds in long lines. However, it is designed to leave existing code alone and only change what you want. When set-up correctly reformatting only happens on request.

Beyond that, some customisation of the integrated ftp client configuration may be required for certain file-types to ensure correct ascii/binary transfer.

I've personally never had any problems with Dreamweaver messing about with html, php, or javascript files. I find it to be an excellent tool for wysiwyg layout and hand-coding. The only times I've had problems, it was my fault.
Keith Nuttall
Yammer hxxp:yammer.co.uk [nonactive]

ssoltz

Here's one for you:

I am using SMF 1.1 beta 4 and I am looking at my default theme right now. The interesting thing is, there is no "?" at all after the $settings['default_theme_url'], '/script.js. In other words, it has:
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js"></script>

What do I do now? Insert a ?j (or whatever) after it? Sounds like everyone else here had a "?" What gives?

Thanks,
Steve Soltz
SSK Creatives, Inc.

deathshadow

Uhm... Guys... the ?rc1 or ?rc2 is postdata used by certain parts of the themes... modifying that with a j will break some themes!!! You most certainly shouldn't be trying ?jrc1 or ?rc1j as it will respond "cannot load the template" (which appears to be the problem some folks are having)

If you are going to add the j in the cases where your line reads ?rc1 or ?rc2, it should be added as &j

So, if your call to script.js already has a ?rc1 it should read ?rc1&j like this:

<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc1&j"></script>

You don't modify existing postdata, you make a new one. Dee dee dee!  ::)
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies." – C.A.R. Hoare, The 1980 ACM Turing Award Lecture
http://www.cutcodedown.com

goodgameral

I have a question. I'm thinking of DLing it for my forums, just have one question;

With Version 2 does it still do this, or would I have to change it myself?

Champi

i am still running SMF 1.1 RC1 at two sites (simsarea.nl and champi.nl)... none of my members or visitors at both sites using FF have experienced problems..

Is this a general problem.. do i have to make those changes if i experience no problems at all..

Compuart

It's not so much the Firefox user that will experience the problems (they won't hardly notice), but the server that would be hammered as a result of FF's timer being close to resetting (once in 19 hours if I'm not mistaken). It's advisable to at least replace your script.js by the one in the first post.
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

goodgameral

I'm new to SMF, and just two more questions;

is there a version without this bug?
is it easy for moderate users to install?

ThomasJ

Quote from: goodgameral on February 13, 2006, 03:43:26 PM
I'm new to SMF, and just two more questions;

is there a version without this bug?
is it easy for moderate users to install?
1.0.6, the latest stable version of SMF does not have this bug. However the fix for this issue is a drop in replacement. Meaning you only need to replace the old file with the new one and it will work.
Whoops! Did i break that?

goodgameral

Then how come it looks more complicated than that on the font page? Also, I thought the front page said 1.05  and under were bug-free.

Champi

Dank je.. Thnx.. so replace the js and modify the link in index.template.. ok  :)

Ben_S

Quote from: goodgameral on February 13, 2006, 10:23:20 PM
Also, I thought the front page said 1.05  and under were bug-free.

1.0.6 was released after this was posted, I have updated the first post to reflect that 1.0.6 is safe.
Liverpool FC Forum with 14 million+ posts.

goodgameral

so if i were to install the new 1.2, it's just replacin a file that i could find easy and replace? (I'm newwer to anything but reg. HTML)

JayBachatero

Ummm 1.2  Jumping ahead buddy :P  Just download the file on the first post and replace it for your themes.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

goodgameral

i confused  ???
I haven't DLed anything yet; what should i do.

Advertisement: