Categories > TinyButStrong general >

mergeblock and serial

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: shadow
Date: 2004-08-19
Time: 20:22

mergeblock and serial

hello,
i have a problem with mergeblock and serial.
TPL file :
<table border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="150"><div align="center"><img src="[bx_1.url;block=td]" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
    </td>
    <td width="150"><div align="center"><img src="[bx_2.url;block=td;friendb=img]" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
    </td>
    <td width="150"><div align="center"><img src="[bx_3.url;block=td;friendb=img]" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
    </td>
    <td width="150"><div align="center"><img src="[bx_4.url;block=td;friendb=img]" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
   [bx;block=tr;serial]</td>
  </tr>
</table>
TPL php file
<?
global $db;
$TPL_site = new clsTinyButStrong;

$TPL_site->LoadTemplate($GLOBALS[templetpath] .$GLOBALS[con]. $GLOBALS[tpl_endung]);
$TPL_site->MergeField('templetpath',$GLOBALS[templetpath]);
$TPL_site->MergeField('meldung',$meldung);
$TPL_site->MergeField('linkaction_back',"index.php?con=bilder/bilder_content&menu=".$GLOBALS[menu]."&auswahl_kat=".$GLOBALS[auswahl_kat]."&auswahl_grup=".$GLOBALS[auswahl_grup]."&search=".$GLOBALS[search]."&page=".$GLOBALS[page]);

$con_id = $db->get_var("select con_id from ".$GLOBALS[sqltable_03]." WHERE id ='".$_GET['id']."'");
$TPL_site->MergeBlock('bx',$db,"SELECT * FROM ".$GLOBALS[sqltable_06]." WHERE content = '".$con_id."' ORDER BY pos ASC");

$titel = $db->get_var("SELECT content FROM ".$GLOBALS[sqltable_03]." WHERE id ='".$_GET['id']."'");
$TPL_site->MergeField('titel',$titel);

$TPL_site->Render = TBS_OUTPUT;
$TPL_site->Show();
?>

and this is my result in a browser
<table border="0" align="center" cellpadding="0" cellspacing="0">
  tr>
    <td width="150"><div align="center">####url####view?CID=12128&amp;PID=8851&amp;KAPITEL=1" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
    </td>
    <td width="150"><div align="center">####url####view?CID=12128&amp;PID=8851&amp;KAPITEL=2" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
    </td>
    <td width="150"><div align="center">####url####view?CID=12128&amp;PID=8851&amp;KAPITEL=3" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
    </td>
    <td width="150"><div align="center">####url####view?CID=12128&amp;PID=8851&amp;KAPITEL=4" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
   </td>
  </tr>tr>
    <td width="150"><div align="center">####url####view?CID=12128&amp;PID=8851&amp;KAPITEL=5" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
    </td>
    <td width="150"><div align="center">####url####view?CID=12128&amp;PID=8851&amp;KAPITEL=6" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
    </td>
    <td width="150"><div align="center">####url####view?CID=12128&amp;PID=8851&amp;KAPITEL=7" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
    </td>
    <td width="150"><div align="center">####url####view?CID=12128&amp;PID=8851&amp;KAPITEL=8" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
   </td>
  </tr>tr>
    <td width="150"><div align="center">####url####view?CID=12128&amp;PID=8851&amp;KAPITEL=9" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
    </td>
    <td width="150"><div align="center">####url####view?CID=12128&amp;PID=8851&amp;KAPITEL=10" border="0" align="absmiddle" width=150></a>&nbsp;&nbsp;</div><br>
    </td>
    <td valign="middle" bgcolor="#E4F1E4"><div align="center">
        <p><span class="text-mini"></span> <br>
        </p>
      </div>
    </td>
    <td valign="middle" bgcolor="#E4F1E4"><div align="center">
        <p><span class="text-mini"></span> <br>
        </p>
      </div>
    </td>
  </tr></table>

the "<tr>" tag is display not "<tr>" it display a "tr>"

i can not find any bug..
with tbs 1.95 i have no problem

sorry for my bad english.. i can better explan in german
By: Skrol29
Date: 2004-08-20
Time: 01:31

Re: mergeblock and serial

Hi,
A bug like this was fixed with TBS 1.97.11. Last version is now 1.97.12.
Which version do you have?
By: Anonymous
Date: 2004-08-20
Time: 07:39

Re: mergeblock and serial

i use the last version .....
By: shadow
Date: 2004-08-29
Time: 20:45

Re: mergeblock and serial

Thanx for bugfix