Categories > TinyButStrong general >

simple text blok doesn t work

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: jaji
Date: 2008-07-18
Time: 19:43

simple text blok doesn t work

Hello, will you be so nice and could  you help me or explain  me  why this code does t work. I am new in TBS. Thank you for every idea.


PHP CODE

include_once('tbs_class.php') ;

$recset[] = array('title'=>'I will love you'  , 'rank'=>'A') ;
$recset[] = array('title'=>'Tender thender'   , 'rank'=>'B') ;
$recset[] = array('title'=>'I got you babe'   , 'rank'=>'C') ;
$recset[] = array('title'=>'Only with you'    , 'rank'=>'D') ;
$recset[] = array('title'=>'Love me tender'   , 'rank'=>'E') ;
$recset[] = array('title'=>'Wait for me'      , 'rank'=>'F') ;
$recset[] = array('title'=>'Happy pop'        , 'rank'=>'G') ;
$recset[] = array('title'=>'Kiss me like that', 'rank'=>'H') ;
$recset[] = array('title'=>'Love me so'       , 'rank'=>'I') ;
$recset[] = array('title'=>'Us, you and I'    , 'rank'=>'J') ;

$TBS = new clsTinyButStrong ;
$TBS->LoadTemplate('block3.html') ;
$TBS->MergeBlock('bx',$recset) ;

$TBS->Show() ;






HTML CODE



  [bx_1.rank] [bx_1.title;block=_ ]

  [bx_2.rank] [bx_2.title;block=_ ]

  [bx_3.rank][bx_3.title;block=_ ][bx;block=_ ;serial]

 


It works only when istead of block=_ is  block=td . But I want simple text, no table.
By: jaji
Date: 2008-07-18
Time: 20:03

Re: simple text blok doesn t work

Hi folks, I have solved the problem.

THIS IS CORRECT HTML:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title></title>
  </head>
  <body>
 

<span>[bx_1.rank] [bx_1.title;block=_]
     [bx_2.rank] [bx_2.title;block=_]
     [bx_3.rank][bx_3.title;block=_]
     [bx;block=span;serial]
</span>
  </body>
</html>



Thanks