1. Dodamies uz General appearance of forum pages - /panel/?a=tmpl;m=8;t=1
2. Atrodam $BODY$, aiz kura ievietojam šo kodu:
Code
<script type="text/javascript">
e=document.getElementsByTagName("TD");
for(k=0;k<e.length;k++) {
if(e[k].className=='posttdMessage') {
s=e[k].innerHTML;
while (s.indexOf('[T able]') != -1) {
s=s.replace('[T able]','<table width="100%" border="0" cellspacing="0" cellpadding="5" style="background-color:d5d5d5; border-top:1px dotted #898989; border-right:1px dotted #898989; border-bottom:1px dotted #898989; border-left:1px dotted #898989;"><tr><td style="width:25px; height:25px;background-repeat:no-repeat; background-position:5px 3px;"> </td><td><font style="font-size: 12px; font-family: Verdana; color: 898989;">'); s=s.replace('[/T able]','</font></td></tr></table>');
e[k].innerHTML=s;}}}
</script>
[p.s.]Kad ievietojam šo skriptu, izmainām [T able] uz savu, piemēram, [vienkarsatabula]!!! [/p.s.]
3. Ja vēlamies, lai šī tabula uzrādītos pie BB pogām, tad dodamies uz New message form - /panel/?a=tmpl;m=8;t=3
4. Atrodam $BBCODES$, aiz kura ievietojam šo kodu:
Code
<input type="button" value="Таbula" onclick="simpletag('T able','','','message',''); return false;" class="codeButtons" title="Pievienot tabulu" name="T able"/>
[p.s.]Arī šeit izmainām T able uz tādu, kāds stāv iekš aiz BODY ievietotā skripta! [/p.s.]
Iznākums:
[blue][/blue]