By: Denis Ogun
Date: 2008-07-17
Time: 12:07
|
Dynamic block issues on a TinyButStrong based websiteHi, I am currently using PHPmotion which runs on the TinyButStrong engine.
http://pwn-tube.com/gaming-movies/play.php?vid=472 At the moment it looks like this, but if you compare it to my current default template, it shows that not all comments have boxes. http://pwn-tube.com/play.php?vid=472 This is my code, if you guys could help it would be much appreciated.
CSS
and
PHP Thanks Denis Ogun |
||||
By: Skrol29
Date: 2008-07-17
Time: 23:44
|
Re: Dynamic block issues on a TinyButStrong based websiteHi Denis,
I didn't knew that PHPmotion was using TBS. What a nice news :) Here are my remarks about your template: a) You should replace [blk3.poster_picture;block=div;comm] with [blk3.poster_picture;block=div] because this TBS field is not embedded inside an HTML comment tag (ie: <!-- ... -->) b) replace [blk3.by_username;block=((div));comm] with <!--[blk3.by_username;comm]--> There is no need the repeat the block definition for each fields. Only one is enough. The other ones are ignored. c) same thing for <!--[blk3.comments;block=((div));comm]--> d) the field [onload_1;block=div;when [var.show_comments]=1] is good to delete the block if $show_comments is equal to 1. But you should think to also not merge "blk3" in this case. If you code MergeBlock('blk3',...) then TBS will found no block, then it will merge nothing, so it won't make any error, but it's cleaner to not do the merging. I hope this helps, Regards, |