PDA

View Full Version : javascript Dhtml won't work on template


essie
12-13-2005, 07:20 AM
I use complex DHTML for my site menu. Unfortunately, it clashes with your /libs/smarty/Smarty.class.php

I keep getting the following error msg:
Fatal error: Smarty error: [in header.tpl line 26]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 580) in /pathtourl/link/libs/smarty/Smarty.class.php on line 1088

I am not at all familiar with javascript. So I would really appreciate if anyone could give me some help as to how I could get around so that I could make the DHTML menu working.

Here's how my /template/header.tpl look like. The code mark inside the is what I am having trouble with.

Content visible to registered users only.

[/b]

Thanks.
Essie

essie
12-16-2005, 07:58 AM
oh c'mon. can anyone help me out on this one? i really want to use this script. I am nust foreign to javascript and php. i don't know how to get around the smatry to make the javascript for the dhtml menu work.

HELP!!!

yktan
12-16-2005, 08:43 AM
Hi essie, sorry I missed your post the last time.

You can solve the problem simply by enclosing the DHTML codes between the {literal}{/literal} tags.

In your case, it should read something like this:

Content visible to registered users only.

Regards,
York Kie

essie
12-16-2005, 05:25 PM
Thank you York Kie, :wink:

You made my day. I am so glad. Gosh! That was all? Just adding {literal}{/literal}?!? Oh my. LOL I should have thought of that one as there is another php script I installed that uses such codes. I just did not know that was smarty codes. :oops:

Thank you ...thank you... thank you...
Essie

yktan
12-17-2005, 05:18 AM
You're welcome you're welcome you're welcome essie :)