Blumish Posted December 1, 2013 Report Share Posted December 1, 2013 Sveiki. Kā var ieviet piemēram šo vienkāršo draugiem.lv sekotāja bloka scriptu iekš .tpl dizaina faila? Kas iekš šī koda ir jāizlabo? Jo savādāk met erroru: Fatal error: Smarty error: [in right.tpl line 13]: syntax error: unrecognized tag: width: 268px;border: 1px solid #c9c9c9; (Smarty_Compiler.class.php, line 417) in C:\Apper\www\smarty\libs\Smarty.class.php on line 1088 Cik saprotu viņš nesaproti style funkciju: width. Kad to nodzēš tad viņš šīs kļūdas met arā par: name:'superreceptes', , showFans:1, .... <div id="fansBlock"></div><style type="text/css">#fansBlock { width: 268px;border: 1px solid #c9c9c9; }</style><script type="text/javascript" src="//www.draugiem.lv/api/api.js" charset="utf-8"></script><script type="text/javascript">var fans = new DApi.BizFans( {name:'superreceptes',showFans:1,count:12,showSay:0,saycount:3} );fans.append( 'fansBlock' ); </script> Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted December 1, 2013 Report Share Posted December 1, 2013 nēeee, smarty!!1 die(); http://www.smarty.net/docsv2/en/language.function.literal Quote Link to comment Share on other sites More sharing options...
briedis Posted December 1, 2013 Report Share Posted December 1, 2013 Izskatās, ka Smarty uzskata kaut kādu kodu par smarty template kodu. Attiecīgi, tev vajag saprast, kura daļa tieši nepatīk smarty, un kā var esceipot kaut kādas lietas, lai smarty nemēģinātu viņas parsēt. Quote Link to comment Share on other sites More sharing options...
Blumish Posted December 1, 2013 Author Report Share Posted December 1, 2013 nēeee, smarty!!1 die(); http://www.smarty.net/docsv2/en/language.function.literal Njā, risinājums diezgan vienkāršs. Paldies. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 2, 2013 Report Share Posted December 2, 2013 Kam jums vēl vienu template valodu? Quote Link to comment Share on other sites More sharing options...
rpr Posted December 2, 2013 Report Share Posted December 2, 2013 dažiem vēl joprojām java un javascript ir viens un tas pats... Quote Link to comment Share on other sites More sharing options...
briedis Posted December 2, 2013 Report Share Posted December 2, 2013 dažiem vēl joprojām java un javascript ir viens un tas pats... Lol, es biju pilnīgi nopietni padomājis, ka viņi izmanto smarty javā, kā tpl sistēmu :D Bet nu, kā saka - Java to Javascript is like Ham to Hamster. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.