Php Smarty: how to scrape & embed a youtube video by keyword? -


please let me see examples? thank you. found have problem: example have following javascript inside tpl:

    <script src="http://www.domain.com/script.js" type="text/javascript"></script>  <div id="youtubediv"></div> <script type="text/javascript"> insertvideos({'block':'youtubediv','q':'keyword','type':'search','results':8,'order':'most_relevance','player':'embed','layout':'thumbnails'});</script> 

between {literal}{/literal} let work... how replace "keyword" smarty variable {$product.name} ???

ok, solved... in place of 'keyword':

'{/literal}{$mysmarty_variable}{literal}' 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -