Categories > TinyButStrong general >

Integrating TBS into Mambo module - getting strange results

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: kwblue
Date: 2005-05-19
Time: 03:19

Integrating TBS into Mambo module - getting strange results

Hello,

I am using Mambo CMS, I have a template which allows putting different content into different 'areas' of the screen.  I have menus on both sides, TBS content on the top module, and Mambo content on the bottom.

For example, a small part of the template is below:

        <td width="60%">
            <div id="body_outer">
                <div id="body_inner">
                    <?php mosLoadModules ( 'top' ); ?>
                    <?php mosMainBody(); ?>
                </div>
            </div>
        </td>


When I use TBS on an HTML template within this structure, it does not display the rest of the content in the 'MainBody'.  It basically cuts it off entirely, just like it is cutting off the head and body tags.  I say this because the background color gets cut off right after the TBS generated content.

However, if I just use the HTML template (static) without the variables, it works just fine.

Any ideas???

Thanks!
By: RwD
Date: 2005-05-19
Time: 12:38

Re: Integrating TBS into Mambo module - getting strange results

Well, first thing that comes to mind is that templates are not php code and none of the code inside will be processed.

I know little to nothing about Mambo CMS so I cannot help you any further, but my guess is you are looking at the problem from the wrong side.

PHP uses TBS, TBS uses templates OR includes scripts.
By: kwblue
Date: 2005-05-19
Time: 13:21

Re: Integrating TBS into Mambo module - getting strange results

The code processes fine.  The problem is that nothing after it processes.  When I run TBS on the template, all variables are switched appropriately and the HTML is displayed.  However, it doesn't process after that.

Since it is just being displayed to a portion of the viewable page (supposed to be), then it should display like the HTML it is.  That is what I think.

However, I changed the code.... unfortunately removed TBS for now, and replaced it with php variables which are database driven.  Not my preference because now I cannot easily change 'templates' (look/feel) on the fly, but it does work that way.

thank, though.

By: RwD
Date: 2005-05-19
Time: 14:14

Re: Integrating TBS into Mambo module - getting strange results

ow, tbs calls exit after you call the Show() method.

You can cancel that using:
$tbs->Render     = TBS_OUTPUT;