TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 431
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 96
  • Total: 96

I cannot get the center block to display

Started by nokonium, May 13, 2005, 07:25:09 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Nokonium

Fiddled all the ways I can think, even created a new center block. Both show 'green' in 'Edit Blocks' but neither show. Should there be a 'Use Center' in General Settings?

Just been reading the posts in the chlild board, is it theme related? Fiddlers Elbow is using Mercury and SGR is a custom them of my own.

Bjørn

You need a little bit of code in index.template.php..which is not in older versions.

http://www.tinyportal.net/smf/index.php?topic=301.msg2353#msg2353

Nokonium


sudden

how to put a centerblock at the bottom of the page (below forum news or forumboard)?


Bjørn

Basically just move the centerblock code like this:

from:
        echo '<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;" id="bodyarea">';
        if($context['TPortal']['centerbar'])
                     echo '<div>' , TPortal_centerbar() , '</div>';

}

function template_main_below()
{
        global $context, $settings, $options, $scripturl, $txt , $user_info;

   echo '</td>';


to:

        echo '<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;" id="bodyarea">';

}

function template_main_below()
{
        global $context, $settings, $options, $scripturl, $txt , $user_info;

        if($context['TPortal']['centerbar'])
                     echo '<div>' , TPortal_centerbar() , '</div>';

   echo '</td>';


Of course this would move ALL centerblocks under there...

TwinsX2Dad

How would I get a center block to center itself right below the forum display?

RC2 & TP 0.8.6 (With TP Helios Multi if that matters)   ;D

IchBin

You could manually enter the center block code to do this in the index.template file.

TwinsX2Dad

And that would probably vary depending on theme, right?


IchBin


This website is proudly hosted on Crocweb Cloud Website Hosting.