[spoiler="Ex:"][/spoiler]
Pentru acest perete e nevoie de modulul board (anunturi)
1) Activam API din setarile generale, de obicei ele sunt activate (API key nu trebuie activat)
2) Creem o categorie pentru acest modul (denumirea nu conteaza sa fie prima.
3) in setarile modulului dat dezactivam toate celulele in afara de subiesct (tema)
4) dezactivam in drepturile utilizatorilor remodularea materialelor pentru modulul dat
5) In Page with full entry text and associated comments schimbam totul cu:
Code
<?substr($ADMIN_BAR$,0,0)?>
<html><head>
<title>$ENTRY_TITLE$</title>
<?substr('</head>',strpos('</head>','/head>')-1)?><body>
<?if($COM_PAGE_SELECTOR$)?>$COM_PAGE_SELECTOR$<?endif?>
$COM_BODY$
<?if($COM_CAN_ADD$)?>$COM_ADD_FORM$<?endif?>
$POWERED_BY$
</body></html>
6) In Appearance of entries schimbam totul cu:
Code
<a href="$ENTRY_URL$" class="urlWall">$TITLE$</a>
7) in paginile Page with search results and entries rating si Entry adding/editing page schimbam totul cu:
Code
<?substr($ADMIN_BAR$,0,0)?>
<html><head>
<title>Peretele utilizatorului</title>
<?substr('</head>',strpos('</head>','/head>')-1)?><body>
$BODY$
$POWERED_BY$
</body></html>
8) In Appearance of comments la inceput punem:
Code
<?if($MODULE_ID$='board')?>
<table class="Mlwall" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="1" rowspan="2" style="width:60px;vertical-align:top">
<?if($USER_AVATAR_URL$)?>
<img src="$USER_AVATAR_URL$" width="50"><?else?>
<img src="http://i.imgur.com/nIrtE.gif" width="50">
<?endif?>
</td>
<td colspan="2" rowspan="1" style="height:10px;vertical-align:top">
<a href="$PROFILE_URL$" class="lwall"><b>$USERNAME$</b></a>
<?if($MODER_PANEL$)?> $MODER_PANEL$<?endif?>
<div style="float:right"><?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$">
<img alt="" src="http://s105.ucoz.net/img/icon/thumbu.png" width="13" align="absmiddle" border="0" title="Post bun"></a><a href="$BAD_COMMENT_URL$"><img alt="" src="http://s105.ucoz.net/img/icon/thumbd.png" width="13" border="0" align="absmiddle" title="Post rau"></a><?else?><img alt="" src="http://s105.ucoz.net/img/icon/thumbu_.png" align="absmiddle" width="13" border="0" title="Post bun"><img alt="" src="http://s105.ucoz.net/img/icon/thumbd_.png" width="13" align="absmiddle" border="0" title="Post rau"><?endif?></div></td>
<tr>
<td>$MESSAGE$<div class="Twall">$DATE$ в $TIME$</div>
</td>
<td width="60" style="vertical-align:bottom"><?if($ANSWER_URL$)?><a style="float:right" href="$ANSWER_URL$">Raspunde</a><?endif?></td></tr></tbody></table><hr style="color:#EEEEEE;height:1px;border-top:0px;border-style:solid">
<?if($ANSWER$)?><table class="Mlwall" cellpadding="0" cellspacing="0"><tbody><tr><td colspan="1" rowspan="3" width="60"> </td><td colspan="1" rowspan="2" style="width:60px;vertical-align:top"><?if($USER_AVATAR_URL$)?><img src="$USER_AVATAR_URL$" width="50"><?else?><img src="http://i.imgur.com/nIrtE.gif" width="50"><?endif?></td><td style="height:10px;vertical-align:top"><a href="$PROFILE_URL$" class="lwall">$USERNAME$</a></td></tr><tr><td>$ANSWER$<div class="Twall">$DATE$ в $TIME$</div></td></tr><tr><td colspan="2" rowspan="1"><hr style="color:#EEEEEE;height:1px;border-top:0px;border-style:dashed"></td></tr></tbody></table><?endif?><?else?>
si la sfarsit punem:
9) In profilul utilizatorului, unde doriti sa apara peretele puneti:
Code
<?if(!$_BOARD_ENTRIES$ && $_IS_OWN_PROFILE$)?>
<input id="wallAdd" onclick="wall.add()" style="float:right" value="Activati peretele" type="button">
<?endif?>
<?if($USER_LOGGED_IN$ && $_BOARD_ENTRIES$)?>
<div class="bwall">
<div style="padding:3px">
<textarea id="wallTxt" style="border:1px solid #DDDDDD;height:20px;width:98%;resize:none;"></textarea>
<table style="display:none" id="fadeWall"><tbody><tr><td style="display:none" class="wallCp">Cod: </td><td style="display:none" class="wallCp"><input id="scCd" type="text" size="7" maxlength="6" style="padding:4px;font-size:20px;" /> <img alt="" style="cursor:pointer;vertical-align:top" id="scImg" title="Reamprospateaza codu de securitate" src="" align="absmiddle"> <input type="hidden" id="sckey" value="" /></td><td><input id="wallSmb" value="Adauga" type="button"> </td><td id="wallSt"></td></tr></tbody></table>
</div></div>
<hr style="color:#EEEEEE;height:1px;border-top:0px;border-style:solid">
<div id="entry">Se incarca...</div>
<div id="uploadW" style="display:none;text-align:center;cursor:pointer;background:#F2F2F2;padding:10px;border-top:1px solid #EAEAEA;border-bottom:1px solid #EAEAEA;color:#888888" onclick="wall.upload()"><b>Inregistrarea anterioara</b></div>
<?endif?>
<script type="text/javascript" src="http://maxrom.ucoz.com/js/wall_v2.js"></script>
<?if($_BOARD_ENTRIES$)?>
<style type="text/css">
.bwall{border:1px solid #EAEAEA;text-align:left;color:#888888;cursor:pointer;background:#F7F7F7;}
.swall{background:#F2F2F2;text-align:left;padding:4px}
.Mlwall {font-family:tahoma,arial,verdana,sans-serif,Lucida Sans;font-size:8pt;width:100%}
a.lwall {font-size:10pt}
.Twall {margin-top:4px;color:#999999;font-size:7pt}
.Mlwall a:link {text-decoration:none;color:#2B587A}
.Mlwall a:active {text-decoration:underline;color:#2B587A;}
.Mlwall a:visited {text-decoration:none;color:#2B587A}
.Mlwall a:hover {text-decoration:underline;color:#2B587A}
.wallCp, #fadeWall {display:none}
</style>
<script type="text/javascript">
$('#wallSmb').click(function (){
wall.send($_USER_ID$);
});
wall.load($_USER_ID$);
</script><?endif?>
[texterror4]Sursa: http://upost.su
Traducere RO: http://maxrom.net
[/texterror4]