|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Aliresalat Smarty Rookie
Joined: 09 Feb 2014 Posts: 23 Location: Iran
|
Posted: Sun Feb 09, 2014 5:33 pm Post subject: Probleme mit Smarty und einem Script |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Feb 09, 2014 7:26 pm Post subject: |
|
|
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 |
|
BrainAFK Smarty n00b
Joined: 22 Feb 2014 Posts: 4
|
Posted: Sat Feb 22, 2014 9:35 am Post subject: |
|
|
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 |
|
|
|
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
|