Acest aspect contine:
1. Aspectul comentariilor FB
2. Forma de adaugre a comentariilor FB
3. Comutator comentarii FB
1 Aspectul comentariilor
In aspectul comentariilor schimbam totul cu:
Cod
<div class="aurComm" style="min-height:52px;" id="$ID$"<?if($MODER_PANEL$)?> onmouseover="$('div[name=del$ID$]').show()" onmouseout="$('div[name=del$ID$]').hide()"<?endif?>>
<?if($MODER_PANEL$)?><a href="javascript://" rel="nofollow" onclick="del_item($ID$);return false;" id="di$ID$"><div class="aurCommDel" name="del$ID$"></div></a><?endif?>
<div class="aurCommAva"><?if($PROFILE_URL$)?><a href="$PROFILE_URL$"><?endif?><img src="<?if($USER_AVATAR_URL$)?>$USER_AVATAR_URL$<?else?>/aurComm/ava.png<?endif?>"><?if($PROFILE_URL$)?></a><?endif?></div>
<div class="aurCommBody"><?if($PROFILE_URL$)?><a href="$PROFILE_URL$" class="aurCommUser">$USERNAME$</a><?else?><a class="aurCommUser">$NAME$</a><?endif?>
$MESSAGE$
<?if($ANSWER_URL$)?><a href="$ANSWER_URL$">Raspunde</a> · <?endif?>
<img alt="" src="/images/bd/like.png" align="absmiddle" width="13" border="0" title="Post bun">
<?if($COMMENT_RATING$<0)?>
<span class="myWinError"><b>$COMMENT_RATING$</b></span> ·
<?else?>
<?if($COMMENT_RATING$=0)?>
<span style="color:gray;"><b>$COMMENT_RATING$</b></span> ·
<?else?><span class="myWinSuccess"><b>+$COMMENT_RATING$</b></span> ·
<?endif?>
<?endif?>
<?if($GOOD_COMMENT_URL$)?>
<a href="$GOOD_COMMENT_URL$">
Imi place</a>
<?endif?>
<a href="javascript://" onclick="aurCommLink$ID$()" class="aurCommTime">$DATE$ - $TIME$</a>
<?if($MODER_PANEL$)?> · <a href="javascript://" rel="nofollow" onclick="new _uWnd('Ie',' ',-600,-200,{autosize:1,closeonesc:1,resize:0},{url:'/index/37-$ID$'});return false;" class="aurCommLink">Editeaza</a><?endif?></div>
</div>
2 Forma de adaugare a comentariilor
In forma de adaugarea comentariilor schimbam totul cu:
Cod
<div class="aurComm">
<table cellpadding="0" cellspacing="0" width="100%" height="70px">
<tr>
<th width="57" rowspan="2" id="aurHide"><div class="aurCommAva" style="margin-bottom:32px;"><img
class="aurCommAvaImg" src="" align="left" alt="" /></div>
</th>
<th width="90%" height="32" colspan="3">
<textarea class="aurCommInput" name="message" id="message" cols="50" placeholder="Adauga un comentariu...">$MESSAGE$</textarea>
</th>
</tr>
<tr>
<?ifnot($USER_LOGGED_IN$)?><th id="aurHide2">
<input class="aurCommInputName" id="aciname" type="text" name="name" value="$NAME$" maxlength="20" placeholder="Nick">
<input class="aurCommInputemail" id="aciname" type="text" name="name" value="$EMAIL$" maxlength="20" placeholder="Email">
<input class="aurCommInputsite" id="aciname" type="text" name="name" value="$SITE$" maxlength="20" placeholder="Site"></th>
<?endif?>
<?if($SECURITY_CODE$)?><th id="aurHide2" class="aurCommSecurity" align="right">
$SECURITY_CODE$</th><?endif?><th align="right"> <input type="submit" class="aurcommSbm" name="submit" value="Comenteaza"></th>
</tr>
</table>
</div>
la modulul care vrem acest aspect, in pagina cu tot continutu si comentarile la elfacem urmatoarele:
schimbam pozitiile intre tegurile $COM_ADD_FORM$ si $COM_BODY$ astfel incat $COM_ADD_FORM$ sa fi inainte.
Mai apoi schimbam $COM_BODY$ cu:
Cod
<?if($COMMENTS_NUM$)?><div class="aurCommTopugol"></div><div class="aurComm"><img src="/aurComm/aurCommComm.png" style="float:left;padding-right:5px;">
<a href="javascript://" onclick="aurCommLink()" class="aurCommLink">
$COMMENTS_NUM$ comentari<?if($COMMENTS_NUM$=1)?>u<?else?><?if($COMMENTS_NUM$>2)?>i<?endif?>
<?endif?></a></div><?endif?></td></tr>
<tr><td colspan="2">
<div id="contik">$COM_BODY$</div>
Tot acolo inainte de