Categories > TinyButStrong general >

new release - why doesnt this work anymore?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: powerpop
Date: 2004-06-29
Time: 18:30

new release - why doesnt this work anymore?

hi - i just upgraded - one template i have displays six thumbnail images of faces in two rows - i set a variable called lb (linebreak) in my array which tells the template to put a new table row into the set of images - here is my code that worked with the last release but not this one??

      [members;block=begin]
      '<td valign=top align=left>*'<img src=\"http://[var.ping_domain]/ping/[members.photo]\" border=0 alt=\"[members.displayname]\"></a></td>'
      '[members.lb;if [val]=1;then '</tr><tr>'; else '';htmlconv=no]'
      [members;block=end]
By: powerpop
Date: 2004-06-29
Time: 18:40

Re: new release - why doesnt this work anymore?

i am also getting the "cant merge because no key" error on one of my templates - but the key names are all in lower case as they are in the database - so i dont understand what is causing this as well? were there any other changes to MergeBlock that can effect key names?
By: Skrol29
Date: 2004-06-29
Time: 18:53

Re: new release - why doesnt this work anymore?

It supposed to be compatible except case sensitivity.

I'm testing your template piece but the data has probably something to do with this prolem.
If you merge the block 'members' with an array, could you send to me what you get when you add:
  echo var_export($thearray); exit;
just before your line
  $TBS->MergeBlock('members',$thearray);
By: Skrol29
Date: 2004-06-29
Time: 20:18

Re: new release - why doesnt this work anymore?

Ok, this bug is fixed.
There is a version 1.97.2 available.

For the "cant merge because no key" error, I need more information about your data and your template.