TinyPortal

Development => Support => Topic started by: mildmanneredj on January 08, 2008, 03:10:19 AM

Title: Center Block below main body
Post by: mildmanneredj on January 08, 2008, 03:10:19 AM
Any way to put a center block below the main forum body.  As I see it, any center block is placed above all the boards.


SMF 1.1.4
TP 0.9.7
Title: Re: Center Block below main body
Post by: IchBin on January 08, 2008, 05:00:02 AM
There's no way to do that at the current time. You'll need to wait for TP 1.0.
Title: Re: Center Block below main body
Post by: shawnlg on February 03, 2008, 04:50:40 AM
Is there a way to hard code text into the bottom then instead of a center block.  I am anxiously waiting for 1.0 it sounds like it can do everything I need it to do.

I ALWAYS want the center blocks below the main area.  Any clues how I can recode it to make it do that, or would someone from the team help me with it.  I would really apprecaite it.  I ALWAYS want the center blocks below the main area.  Any clues how I can recode it to make it do that, or would someone from the team help me with it.  I would really apprecaite it. 
Title: Re: Center Block below main body
Post by: shawnlg on February 06, 2008, 09:08:47 PM
Does anyone know a way to do this?  This is the last thing I need to do on this site.
Title: Re: Center Block below main body
Post by: G6Cad on February 06, 2008, 09:41:05 PM
Im sorry to say this again, but IchBin have allready given the answer to your question here, the answer is no, it's to much work so better wait for TP V1 then messing around and try to reinvent the wheel sort of.  :-\
Title: Re: Center Block below main body
Post by: shawnlg on February 06, 2008, 09:46:50 PM
Thanks for the answer.  i will try to figure out how to post something in the cell through use of a style sheet or find the end of the cell and put a box there.  I just need the same text to appear on every page below the main section.  I will figure it out somehow.  I just figured someone else has already crossed the bridge.

Looking forward to the new version.. sounds awesome!

Thanks for your help!
Title: Re: Center Block below main body
Post by: shawnlg on February 08, 2008, 03:23:57 AM
I figured out how to do it.. Should I post it here or create a snipit, or both please advise.

Shawn
Title: Re: Center Block below main body
Post by: IchBin on February 08, 2008, 03:25:21 AM
Feel free to post it here.
Title: Re: Center Block below main body
Post by: shawnlg on February 08, 2008, 03:48:07 AM
What are the tags again I use in order to denote code?  Is there a list of the different tags I use in a forum?  Please let me know.
Title: Re: Center Block below main body
Post by: IchBin on February 08, 2008, 03:51:04 AM
If you go to the reply screen you'll see there is a # sign in the BBC buttons for code.
Title: Re: Center Block below main body
Post by: shawnlg on February 08, 2008, 04:31:14 AM
In the theme section goto your index.template.php file with in your theme around number 250 find this
        echo '<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;">';
        if($context['TPortal']['centerbar'])
                     echo '<div>' , TPortal_sidebar('center') , '</div>';

}

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


   echo '</td>';


Replace it with this..
        echo '<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;">';
       

}

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt , $user_info;
if($context['TPortal']['centerbar'])
echo '<div>' , TPortal_sidebar('center') , '</div>';
   echo '</td>';


Thats it.  It may be different from theme to theme but I have checked out a couple and it relitively has the same code here.  I hope this helps other people.

Remember this only moves the center blocks from the top to the bottom.  It does not give you the option from center block to center block.