Loading...
 
Skip to main content

Features / Usability


Smarty error: [in evaluated template line 1]: syntax error: unrecognized tag 'pi_flash'

OK guys I need some serious help because this is way over my head. I created a small flash movie that I am setting under tiki-admin, general layout, custom site header using {pi_flash url='http://www.mywebsite.com/flash/header.swf' width=800 height=200} but the movie is not showing. Using { FLASH(movie= inside a regular page, no problem. I clicked the button to show the php error messages and amongst the ton of warnings I noticed the following error:

PHP (5.2.11) ERROR (E_USER_ERROR):
File: D:\websites\lib\smarty\libs\Smarty.class.php
Line: 1092
Type: Smarty error: in evaluated template line 1: syntax error: unrecognized tag 'pi_flash' (Smarty_Compiler.class.php, line 599)

This Tiki site is running version 3.2, MySql 5.0.51a and PHP 5.2.11.

I have a second site running Tiki 3.0, MySql 5.0.51a and PHP 5.2.6, here the flash plug-in works OK and I don't get any errors or warning messages.

I was thinking maybe I should just set the second site identical to the its working or try again to upgrade PHP to 5.3 but I tried and I could never get it to work on a Windows 2003 IIS server...do you think that all the problems are because I am running tiki 3.2 on PHP 5.2 instead of 5.3?

Rob

As far as I know, PHP 5 is sufficient; I don't think it matters beyond that.

I don't know where you got the {pi_flash... syntax. Is this documented anywhere? (Later — I found by Googling this threadQuestion but it describes something the person added to Tiki himself - this doesn't work in a standard Tiki installation without the added file.)

One method that works in the Look and Feel custom content is using {literal}{/literal} tags around standard HTML code for embed, such as youtube's embed code for videos.

-- Gary




Yes…that is the thread that I found and applied for my first website. I followed the instructions but I could not figure out where to use the pi_flash command because the thread only says to set it up in your theme.

After trying the code in several areas such as editing and inserting it in the \templates\tiki-top_bar.tpl without success I tried the code in the custom header section of look and feel and to my surprise it worked!! As a matter of fact it works great, it worked so well and it was so easy to implement that I immediately assumed that this is what the thread was referring to when it talks about using it in your theme and this is why I used it on my second website without hesitation.

I am going to experiment a little bit more with what you posted and now I am gong to go back to experimenting and I am going to assume that by theme the thread was talking about the css file.

Rob


Well, that's the kind of thing the Look and Feel custom code areas are made for, so it's good that it works. The idea is to eliminate the need to edit the template files, and use the site admin configuration options instead. The other thread talks about editing template files, which previously the site admin needed to do to add something like code to display a Flash file. The CSS file wouldn't really be involved since it only provides rules for how things are displayed on the page after they are placed there by the template files (mostly for layout) and php files (mostly for logic).

-- Gary





I finally found the problem, upon and initial quick inspection of the 3.2 code I originally thought that the plugging function mentioned under this threadQuestion was already included but I guess I was wrong.

I followed the instructions, downloaded the plug in to the location this threadQuestion mentions and I was able to run the pi_flash code under Custom Headers in Look and Feel smoothly and without any problems and the Smarty error went away.

Since I fixed my page size to 800px and designed the flash movie to cover the entire header I did not have to use any other formatting features, I guess I will try it when I start working on remodeling the current site or start working on a new site.

Thanks for all the help..!!