Categories > TinyButStrong general >

&nbsp thing

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: albertos
Date: 2006-07-17
Time: 16:08

&nbsp thing

hi. i'm having some progs with the   thing when inserting in some templates.

it's being set in a nested table and the result is breaking up the parent table.

any ideas?

sample

Desired Thing (simplified)!
<table>
  <tr>
    <td>some thing here....</td>
  </tr>
  <tr>
    <td>
        <table><tr><td>&nbsp;</td></tr></table>
   </td>
  </tr>
</table>

Result
<table>
  <tr>
    <td>some thing here....</td>
  </tr>
  <tr>
    <td>
        <table><tr><td>&nbsp</td></tr></table>
By: albertos
Date: 2006-07-17
Time: 16:09

Re: &nbsp thing

the nested template is...

<table cellpadding="3" cellspacing="2" id="adminTableDetails">
    <tr>
        <th colspan="2">&#923;&#949;&#960;&#964;&#959;&#956;&#941;&#961;&#949;&#953;&#949;&#962; &#935;&#961;&#942;&#963;&#964;&#951;</th>
    </tr>
    <tr>
        <td width="100" nowrap="nowrap" class="even">&#908;&#957;&#959;&#956;&#945; &#935;&#961;&#942;&#963;&#964;&#951;:</td>
        <td>[blk2.urealname]</td>
    </tr>
    <tr>
        <td width="100" nowrap="nowrap" class="even">Login:</td>
        <td>[blk2.ulogin]</td>
    </tr>
    <tr>
        <td width="100" nowrap="nowrap" class="even">&#917;&#960;&#943;&#960;&#949;&#948;&#959;:</td>
        <td>[blk2.ulevel]</td>
    </tr>
    <tr><td colspan="2">&nbsp;</td></tr>
    <tr>
        <td><input type="button" name="back" value="&#917;&#960;&#953;&#963;&#964;&#961;&#959;&#966;&#942;" onclick="location.href='mng_users.php'" /></td>
        <td></td>
    </tr>
</table>
By: TomH
Date: 2006-07-17
Time: 16:47

Re: &nbsp thing

Try the alternate

&#160;
By: albertos
Date: 2006-07-17
Time: 17:42

Re: &nbsp thing

nope the same... seems that the ; makes the difference... :-(
By: Skrol29
Date: 2006-07-17
Time: 20:39

Re: &nbsp thing

Hello, in fact I dont understand your problem. Can you give more details ?
By: TomH
Date: 2006-07-17
Time: 21:07

Re: &nbsp thing

The code you show as "the nested template" renders correctly for me
(shows "&nbsp;" in "Show source")
on  WinXP / Apache / Seamonkey and MSIE
HTH
By: albertos
Date: 2006-07-17
Time: 23:34

Re: &nbsp thing

i'll post the original code and some screenshot... but 2morrow (kinda tooooo tired now...)
By: albertos
Date: 2006-07-23
Time: 21:04

Re: &nbsp thing

found what it wrong (in a way....) my template look like this:
    <[var.op; if <[val]>==home; then
            '<[var.ProjectTabPage;htmlconv=no;]>';
            if <[val]>==tasks; then '
            <table>
                <tr>
                    <td colspan="6"><input type="button" name="netask" value="&#925;&#941;&#959; Task" onclick="location.href='mng_project.php?id=<[var.pid]>&op=tasksnew'" /></td>
                </tr>
                <tr>
                    <td>Num</td>
                    <td>User</td>
                    <td>Date Start</td>
                    <td>Date Fin</td>
                    <td>Task Name</td>
                    <td>Actions</td>
                </tr>
                <tr>
                    <td><[blk.#;block=tr]></td>
                    <td>-</td>
                    <td>Date Start</td>
                    <td>Date Fin</td>
                    <td><[blk.tname]></td>
                    <td>View - Del</td>
                </tr>
                <tr>
                    <td colspan="6"><[blk;block=tr;nodata]>No Items</td>
                </tr>
            </table>' ]>

....

i'm using <[ and ]> as tags.I noticed that when i apply after then single quotes and a TBS var, then everything is ok, but when no var is to set i get wrong results. Further more if i set single quotes everything is working, but the TBS outputs the single quotes.

i'm using php5.1.4 on IIS (as cgi) and i tries the same on a 5.0.4 Apache system. the results are the same.

If anyone knows something, please let me know. thanks 4 this great class.