MyBB Community Forums

Full Version: General.js
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I am debuging some .js errors on my forum.
My current board is 1.6.7 and I am using the default template with some modifications.
The url is www.serespensantes.com

I still have plenty of js errors to correct (including one that don't allow to use the multi-quote functionality) buy I started with some errors in the index.

When did it happen? when I clicked on the +/- to open or close a forum section.

What was the error?
In my case, the following variables are not defined in the var "Cookie" (line 429 to 488):
-cookieDomain, cookiePath.
I checked the js code and in fact, they are never defined and are only used in this function.

What I did? I hardcoded the values according to my settings in the acp.

I don't know if this is correct or no. I help however it helps to solve some issues to someone.

However, I would like to know why those vars where originaly included in the js, if they are never defined. Maybe is just me missing something, maybe it is a general bug that needs to be fixed.

Any comments on this are welcome.
The cookieDomain and cookiePath should be defined in the headerinclude template in a normal install.