Mouseover problems [message #5571] |
Mon, 09 September 2002 19:42 |
njolly
Messages: 16 Registered: September 2002
Karma: 0
|
Junior Member |
|
|
I'm using version 2.3 of the forum, and am trying to alter theme to use our headers, and footers. All works well unless I use single quotes '' in the javascript mouseovers. If I use single quotes I get a parsing error on the post.php page. Using double quotes eliminates the parsing error, but breaks the mouseovers. I've also tried preceding single quotes with a \, but that still breaks the mouseovers.I've made certain that I have php setup correctly:
magic quotes off
register globals off
safe mode on
I eliminated all the javascript from the header with the exception of the mouseovers, and placed the javascript in lib.js. Am I missing something?
|
|
|
Re: Mouseover problems [message #5572 is a reply to message #5571] |
Mon, 09 September 2002 20:17 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Using \' should work and not break mouse-overs since it would only output '. I'll make some tests to verify this.
FUDforum Core Developer
|
|
|
|
Re: Mouseover problems [message #5574 is a reply to message #5573] |
Mon, 09 September 2002 21:10 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Okie, I believe I now see the source of the problem. Thanks
FUDforum Core Developer
|
|
|
Re: Mouseover problems [message #5575 is a reply to message #5573] |
Mon, 09 September 2002 23:37 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
When you modified the headers, did you also insert your javascript code inside header_plain template or just the header template.
If you did put the code inside header_plain, remove it and leave the javascript only inside header (no need to escape it).
Please let me know if this solves the problem you are experiencing.
FUDforum Core Developer
|
|
|
|
|
Re: Mouseover problems [message #5589 is a reply to message #5577] |
Tue, 10 September 2002 12:18 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The bug, which is the cause of the problem has been resolved in the CVS. If you need this fix in a hurry, just grap post.php.t & post.tmpl from the CVS and replace your existing copies with them.
FUDforum Core Developer
|
|
|
|
|
Re: Mouseover problems [message #5600 is a reply to message #5599] |
Tue, 10 September 2002 15:36 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Those 2 files did not change, you should not need to copy them.
Are you using a custom template set or just the default one?
FUDforum Core Developer
|
|
|
|
Re: Mouseover problems [message #5604 is a reply to message #5603] |
Tue, 10 September 2002 16:11 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
nope, inside '/forum_data/thm/' you should have another directory besides 'default' inside that directory are you custom theme's files.
FUDforum Core Developer
|
|
|
|
Re: Mouseover problems [message #5606 is a reply to message #5605] |
Tue, 10 September 2002 16:35 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
What do you mean 'save changes', after modifying the files did you use the Theme Manager control panel to 'Rebuild Theme' ? Is this what gave you the errors? If so, could you please show me the exact error messages you are getting.
FUDforum Core Developer
|
|
|
|
|
Re: Mouseover problems [message #5614 is a reply to message #5609] |
Tue, 10 September 2002 18:12 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Allright, thanks for the followup, does the header work as it should now?
FUDforum Core Developer
|
|
|
|
Re: Mouseover problems [message #5620 is a reply to message #5618] |
Tue, 10 September 2002 18:37 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Wow, that's unusual, which version did you install when you did a clean install?
FUDforum Core Developer
|
|
|
|
Re: Mouseover problems [message #5626 is a reply to message #5622] |
Tue, 10 September 2002 19:57 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
It may be a problem, can you please try installing 2.3.1RC2 and then changing the 2 files I've attached in my previous message.
FUDforum Core Developer
|
|
|
|
|
|