|
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 |
zdig1 Smarty Rookie
Joined: 23 Sep 2013 Posts: 30
|
|
Back to top |
|
zdig1 Smarty Rookie
Joined: 23 Sep 2013 Posts: 30
|
Posted: Sun Nov 03, 2013 2:32 am Post subject: |
|
|
Code: | {capture assign="player"}{include file="player.tpl" page="detail"}{/capture}
var player3 = '{$player|regex_replace:"/[\r\t\n]/":" "}'; |
give
Code: | <script type="text/javascript">
var player3 = ' <div id="Playerholder"> You need to have the <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> installed and a browser with JavaScript support. </div> <script type="text/javascript"> var flashvars = { file: 'http://zdig1.biz/video/videos.php?vid=2847a1142', type: 'video', enablejs: 'true', backcolor: '5e5e5e', frontcolor: '545454', screencolor: '000000', repeat: 'false', autostart: 'false', logo: 'http://zdig1.biz/video/uploads/videos/01.jpg', linktarget: '_blank', link: 'http://zdig1.biz', image: 'http://www.watania2.tn/upload/emission_photo/emission_g333.jpg', bufferlength: '5', controlbar: 'bottom', 'shownavigation':'true', 'skin': 'http://zdig1.biz/video/skins/modieus.zip', 'plugins': 'http://zdig1.biz/video/drelated.swf,timeslidertooltipplugin-2,sharing-3', 'sharing.link': 'http://zdig1.biz/video/%d9%85%d8%a7-%d9%88%d8%b1%d8%a7%d8%a1-%d8%a7%d9%84%d8%ad%d8%af%d8%ab-31-10-13-video_2847a1142.html', 'sharing.code': encodeURIComponent('<iframe width="545" height="445" src="http://zdig1.biz/video/embed/2847a1142" frameborder="0" allowfullscreen seamless></iframe>'), 'drelated.dxmlpath': 'http://zdig1.biz/video/relatedclips.php?vid=2847a1142', 'drelated.dposition': 'center', // center, bottom, top 'drelated.dskin': 'http://zdig1.biz/video/skins/grayskin2.swf', //link to the skin 'drelated.dtarget': '_self', // where to open the related videos when clicked on plugins: 'ltas', 'ltas.cc': 'vmqfnalsacrslqz' }; var params = { wmode: 'transparent', allowfullscreen: 'true', allowscriptaccess: 'always', allownetworking: 'all' }; var attributes = { name: '2847a1142', id: '2847a1142' }; swfobject.embedSWF('http://zdig1.biz/video/jwplayer.swf', 'Playerholder', '640', '450', '9.0.115', false, flashvars, params, attributes); </script> ';
</script> |
but console give player 3 error ( not defined)
and if i add escape java in the same line --> this disable the replaceent i got /n / again |
|
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
|
|