Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Probleme mit Smarty und einem Script

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
Aliresalat
Smarty Rookie


Joined: 09 Feb 2014
Posts: 21
Location: Iran

PostPosted: Sun Feb 09, 2014 5:33 pm    Post subject: Probleme mit Smarty und einem Script Reply with quote

Code:


{literal}
<script type="text/javascript">
      var flashvarsVideo = {
----->>>    source: "{$image.url}",
         type: "video",
         streamtype: "file",
         server: "",//Used for rtmp streams
         duration: "52",
         poster: "http://jaris.sourceforge.net/images/poster.png",
         autostart: "false",
         logo: "http://jaris.sourceforge.net/images/logo.png",
         logoposition: "top left",
         logoalpha: "30",
         logowidth: "130",
         logolink: "http://jaris.sourceforge.net",
         hardwarescaling: "false",
         darkcolor: "000000",
         brightcolor: "4c4c4c",
         controlcolor: "FFFFFF",
         hovercolor: "67A8C1"
      };
      </script>
{/literal}




This is my problem, what should I do
source: "{$image.url}",
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4596
Location: Hamburg / Germany

PostPosted: Sun Feb 09, 2014 7:26 pm    Post subject: Reply with quote

Ich nehme an Du verwendest Smarty3.

Per default ist autoliteral eingeschaltet.

Siehe Beispiel 3.8.

Du müsstest einfach die {literal} {/literal} Tags entfernen können.
Back to top
View user's profile Send private message
BrainAFK
Smarty n00b


Joined: 22 Feb 2014
Posts: 4

PostPosted: Sat Feb 22, 2014 9:35 am    Post subject: Reply with quote

Hi,

mit folgendem sollte es klappen

Code:
{literal}
<script type="text/javascript">
      var flashvarsVideo = {
         source: "{/literal}{$image.url}{literal}",
         type: "video",
         streamtype: "file",
         server: "",//Used for rtmp streams
         duration: "52",
         poster: "http://jaris.sourceforge.net/images/poster.png",
         autostart: "false",
         logo: "http://jaris.sourceforge.net/images/logo.png",
         logoposition: "top left",
         logoalpha: "30",
         logowidth: "130",
         logolink: "http://jaris.sourceforge.net",
         hardwarescaling: "false",
         darkcolor: "000000",
         brightcolor: "4c4c4c",
         controlcolor: "FFFFFF",
         hovercolor: "67A8C1"
      };
      </script>
{/literal}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP