Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Probleme mit Smarty und einem Script

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
Aliresalat
Smarty Rookie


Joined: 09 Feb 2014
Posts: 23
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: 5068
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:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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