FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Mouseover problems
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Mouseover problems [message #5571] Mon, 09 September 2002 19:42 Go to next message
njolly is currently offline  njolly   Canada
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5573 is a reply to message #5572] Mon, 09 September 2002 20:22 Go to previous messageGo to next message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
I checked the html output and the slashes are not removed in the output. Here's a cut and paste of the output:

onmouseout="notover(\'about\',\'/images/about1.gif\');

Thanks for the help!
Re: Mouseover problems [message #5574 is a reply to message #5573] Mon, 09 September 2002 21:10 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5576 is a reply to message #5575] Mon, 09 September 2002 23:59 Go to previous messageGo to next message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
prottoss wrote on Mon, 09 September 2002 19:37

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.


No I modified only the header template. When I relazed that it was a javascript quote problem I moved all the javascript out of the header (with the exception of the mouseover code), and placed it in the lib.js file, which I believed was the correct location for it. I can't think of anyway I could move the mouseover code into the lib.js though.

Thanks
Re: Mouseover problems [message #5577 is a reply to message #5576] Tue, 10 September 2002 00:00 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Understood.

FUDforum Core Developer
Re: Mouseover problems [message #5589 is a reply to message #5577] Tue, 10 September 2002 12:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5595 is a reply to message #5589] Tue, 10 September 2002 13:40 Go to previous messageGo to next message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
Many Thanks for that prompt fix, and a superb forum!
Re: Mouseover problems [message #5599 is a reply to message #5589] Tue, 10 September 2002 15:35 Go to previous messageGo to next message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
prottoss wrote on Tue, 10 September 2002 08:18

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.


I also needed to grab style.tmpl & style.inc.t to resolve a dependency, but I still have the same problem. Do I need to install the entire CVS version perhaps?
Re: Mouseover problems [message #5600 is a reply to message #5599] Tue, 10 September 2002 15:36 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5603 is a reply to message #5600] Tue, 10 September 2002 16:10 Go to previous messageGo to next message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
I'm using a custom template, but I don't see it in /forum_data/thm/default/tmpl either. Am I in the right place?
Re: Mouseover problems [message #5604 is a reply to message #5603] Tue, 10 September 2002 16:11 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5605 is a reply to message #5604] Tue, 10 September 2002 16:30 Go to previous messageGo to next message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
Ok Here's what I've done:

uploaded CVS version of post.php.t to forum_data/src

uploaded CVS version of post.tmpl to forum_data/thm/default/tmpl

uploaded CVS version of post.tmpl to forum_data/thm/commerce/tmpl (Custom Template)

uploaded CVS version of style.tmpl to forum_data/thm/default/tmpl

uploaded CVS version of style.tmpl to forum_data/thm/commerce/tmpl

uploaded CVS version of style.inc.t to forum_data/src

I uploaded the style.* stuff because when I tried to save template changes I got an error message complaining about style.tmpl being missing, and then style.inc.t missing.

Good, bad start again? Smile
Re: Mouseover problems [message #5606 is a reply to message #5605] Tue, 10 September 2002 16:35 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5607 is a reply to message #5606] Tue, 10 September 2002 17:06 Go to previous messageGo to next message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
prottoss wrote on Tue, 10 September 2002 12:35

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.


I used theme managment > template editor to edit the templates, when saving the changes to the template I get the following error:
FATAL ERROR: '/var/www/html/canmorealberta.com/chamber/members/forum_data/thm/commerce/t mpl/style.tmpl' is not a file in (/var/www/html/canmorealberta.com/chamber/members/forum_data/thm/commerce/t mpl), can't open

Uploading the CVS Version of style.tmpl, and style.php.t fixed this error message.
Re: Mouseover problems [message #5609 is a reply to message #5607] Tue, 10 September 2002 17:11 Go to previous messageGo to next message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
njolly wrote on Tue, 10 September 2002 13:06

prottoss wrote on Tue, 10 September 2002 12:35

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.


I used theme managment > template editor to edit the templates, when saving the changes to the template I get the following error:
FATAL ERROR: '/var/www/html/canmorealberta.com/chamber/members/forum_data/thm/commerce/t mpl/style.tmpl' is not a file in (/var/www/html/canmorealberta.com/chamber/members/forum_data/thm/commerce/t mpl), can't open

Uploading the CVS Version of style.tmpl, and style.php.t fixed this error message.



Sorry that should read style.inc.t not style.php.t
Re: Mouseover problems [message #5614 is a reply to message #5609] Tue, 10 September 2002 18:12 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5618 is a reply to message #5614] Tue, 10 September 2002 18:25 Go to previous messageGo to next message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
No sorry Crying or Very Sad

I figured since this was a new install, and the forum's not in use yet I'd do a complete reinstall, and start fresh just in case I'd screwed something up somewhere along the line. This time I modified the default theme, and grabed the CVS versions of post.inc.t, and post.tmpl. Testing yeilds this new error message when trying to post a message:

Fatal error: Cannot redeclare yn() in /var/www/html/canmorealberta.com/chamber/members/forum/theme/default/post.p hp on line 35

Ideas?
Re: Mouseover problems [message #5620 is a reply to message #5618] Tue, 10 September 2002 18:37 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #5622 is a reply to message #5620] Tue, 10 September 2002 19:01 Go to previous messageGo to next message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
Well if it's going to happen to anyone it'd be me Confused

I installed the same version 2.3.0

Should I try a different version? It's not a big deal to reinstall now. Rolling Eyes
Re: Mouseover problems [message #5626 is a reply to message #5622] Tue, 10 September 2002 19:57 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re: Mouseover problems [message #5633 is a reply to message #5626] Wed, 11 September 2002 00:04 Go to previous messageGo to next message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
prottoss wrote on Tue, 10 September 2002 15:57

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.


I did a clean install of 2.3.1RC2, and then added the 2 files you mentioned earlier, and I still get that same error regarding redefining (yn) as I'd mentioned earlier. Changing back to the original post.inc.t, and post.tmpl are the only way I can eliminate the error, but that still breaks the mouseovers. Sad
Re: Mouseover problems [message #5634 is a reply to message #5633] Wed, 11 September 2002 00:30 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Most unsual, the very same code works flawlesly here.

Try the attached install script, it is based on latest CVS and has the patch already included.
  • Attachment: install.php
    (Size: 746.20KB, Downloaded 545 times)


FUDforum Core Developer
Re: Mouseover problems [message #5636 is a reply to message #5634] Wed, 11 September 2002 02:09 Go to previous message
njolly is currently offline  njolly   Canada
Messages: 16
Registered: September 2002
Karma: 0
Junior Member
Sweet that's done it Very Happy

Thanks again for all your assistance!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How do I disable unwanted buttons and links in FUD forum?
Next Topic: Un-Deleteing a Thread??
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 01:04:26 GMT 2024

Total time taken to generate the page: 0.02512 seconds