Jump to content
php.lv forumi

html, java iekš .tpl faila


Blumish

Recommended Posts

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...