Loading...
 
Skip to main content

Features / Usability


Javascript on HTML pages

I don't particularly want to open up wiki pages to users — I want to keep the wiki portion of the site open to as many people as possible — but want to have some on-site tools that require javascripting; dice rollers, randomizers, etc. Apparently, since the drawing plugin requires some heavy java, javascripts can work with tikiwiki...

So I thought maybe it would be best to limit java to html pages. I tried creating an html page:

http://www.playbywiki.com/tiki-page.php?pageName=Nice%20DiceQuestion

Based on a freely available HTML/javascript dice-rolling ap... and it don't work.

Is there an "enable java on html pages" switch I'm missing? I've read through a bunch of the forum posts, and they seem to be chiefly about the javascript plugins for enabling java calls on wiki pages... which I don't have much interest in doing for security reasons.

Thanks for any help.

- A

I don't see the "paste this in the head section of your page" code, looking at the source of your wiki page. Edit templates/header.tpl to add the needed Javascript between the head tags. I'm not sure if this is the only problem, but it's one thing that needs to be done.

-- Gary

> I don't see the "paste this in the head section of your page" code, looking at the source of your wiki page. Edit templates/header.tpl to add the needed Javascript between the head tags. I'm not sure if this is the only problem, but it's one thing that needs to be done.
>
> — Gary

Thanks. Tried that, but got this error:

Fatal error: Smarty error: in header.tpl line 20: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 580) in /homepages/0/d97322712/htdocs/playbywiki/lib/smarty/libs/Smarty.class.php on line 1088

One step closer ?