MyBB Community Forums

Full Version: Template help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok well I have this code thing:

Code:
    $plugins->run_hooks("gts_start");
    eval("\$gts_index_top = \"".$templates->get("gts_index_top")."\";");



    
    eval("\$gts_index_bottom = \"".$templates->get("gts_index_bottom")."\";");
        $plugins->run_hooks("gts_end");
    output_page($gts_index_top,$gts_index_bottom)

Everything works accept for the bottom ($gts_index_bottom) template isn't showing up... I have both the Gts_index_top and Gts_index_bottom templates of which I've entered into the admin cp thing and its only retrieving the gts_index_top and displaying it on the screen but not the gts_index_bottom.

What am I doing wrong?
PHP Code:
output_page($gts_index_top,$gts_index_bottom
You can only pass 1 content variable into the output_page function, and that content contains the entire page.

You should either have:

PHP Code:
$whole $gts_index_top $gts_index_bottom;
output_page($whole); 
Or have another template that contains both $gts_index_top and $gts_index_bottom, and pass that into output_page.
Thanks that worked!
Reference URL's