Categories > TinyButStrong general >

prb with $tbs->MergeBlock(BlockName,num,n);

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: achille
Date: 2004-07-03
Time: 14:53

prb with $tbs->MergeBlock(BlockName,num,n);

Hi all,
Currently upgrading a site from 1.91 to 1.97.7 and found 1 stuff not working properly.

if in the php code you have
$tbs->MergeBlock("ligne",num,20);
and in the html code you have
<p>[ligne.#;block=p]</p>

the the script runs forever and at the end output nothing (max time exec) , while it was working with 1.91


By advance thanks for your help.
Bst rgds.

By: Skrol29
Date: 2004-07-04
Time: 02:07

Re: prb with $tbs->MergeBlock(BlockName,num,n);

Hi Achille,

Thanks very much for this report.
The bug is fixed, there is a version 1.97.8 (I'm very sorry).
By: achille
Date: 2004-07-04
Time: 18:03

Re: prb with $tbs->MergeBlock(BlockName,num,n);

Thanks for the bug fix and don't be sorry
the minimum we (users) can do is to report TinyProblems in this TinyButSuperb engine.

By: powerpop
Date: 2004-07-09
Time: 03:42

Re: prb with $tbs->MergeBlock(BlockName,num,n);

is it possible to do something like the above MergeBlock with a database call - can you limit the number of items displayed?

$tbs->MergeBlock("items",$conn,$sql, n)

so it inserts the first n items?
By: Skrol29
Date: 2004-07-09
Time: 18:52

Re: prb with $tbs->MergeBlock(BlockName,num,n);

Yes, you can display the first page sized to n records.

  $tbs->MergeBlock("items",$conn,$sql, 1,n);

But remember that TBS will not use the LIMIT caluse by itself.
It will read data and close the query after the n first records. Which is different.
By: powerpop
Date: 2004-07-14
Time: 09:13

Re: prb with $tbs->MergeBlock(BlockName,num,n);

i just tried to use this feature but my lists come out empty - one set of pictures used to show 3 items - when i set my MergeBlock("photo",$conn,$sql,1,10) it showed no items

am i doing something wrong?