TinyPortal

Development => Support => Topic started by: IchBin on October 13, 2008, 12:58:36 AM

Title: [How-to] Remove upshrinks TP1.0.6
Post by: IchBin on October 13, 2008, 12:58:36 AM
Open TPBlocksLayout.template.php.

Find and remove these lines:
if(!empty($context['TPortal']['upshrinkpanel']))

echo '<div style="float: right; margin-top: -1.4em;">', $context['TPortal']['upshrinkpanel'] , '</div>';
Title: Re: [How-to] Remove upshrinks
Post by: Ruscon on October 13, 2008, 01:07:04 AM
Couldn't find that, only this code (code from TP 1.0.5) below:

if($context['TPortal']['centerpanel']==1)

echo '

<div id="tpcenterbarHeader"', (!empty($options['tpcollapse_centerbar']) && $context['TPortal']['showcollapse']==1) ? ' style="display: none;"' : '' , '>' , TPortal_panel('center') , '</div>';



echo '<div class="smalltext" style="float: right; margin: 10px 10px 0 0;">'. $context['TPortal']['upshrinkpanel'] . '</div><br style="height: 2px; clear: both;" />';
Title: Re: [How-to] Remove upshrinks TP1.0.6
Post by: IchBin on October 13, 2008, 01:11:37 AM
That would be because you're using TP 1.0.5. Change the title to reflect that this is code for TP 1.0.6. Can't remember where its at for that version. You'll need to look in the files for where it echo's it out. Search in TPBlocksLayout.template.php (default theme directory) or TPModules.php (Sources Directory) for the line $context['TPortal']['upshrinkpanel'] where it is being echo'd.
Title: Re: [How-to] Remove upshrinks TP1.0.6
Post by: Ruscon on October 13, 2008, 01:13:06 AM
Simply removed this line:

echo '<div class="smalltext" style="float: right; margin: 10px 10px 0 0;">'. $context['TPortal']['upshrinkpanel'] . '</div><br style="height: 2px; clear: both;" />';


Now it's gone! Thank you
Title: Re: [How-to] Remove upshrinks TP1.0.6
Post by: IchBin on October 13, 2008, 01:17:32 AM
From where?
Title: Re: [How-to] Remove upshrinks TP1.0.6
Post by: Ruscon on October 13, 2008, 02:48:37 AM
Quote from: IchBinâ,,¢ on October 13, 2008, 01:17:32 AM
From where?

TPBlocksLayout.template.php
Title: Re: [How-to] Remove upshrinks TP1.0.6
Post by: ed_m2 on October 13, 2008, 01:26:41 PM
Cheers I.B..... this was getting close to the top of my todo list... but have been too lazy to track down where to look.
Title: Re: [How-to] Remove upshrinks TP1.0.6
Post by: mnichols7 on October 13, 2008, 01:37:40 PM
Is this something that we need to do in 1.0.6?  Will there be major problems if we don't?  Just testing on my testsite right now.
Title: Re: [How-to] Remove upshrinks TP1.0.6
Post by: Ken. on October 13, 2008, 02:34:22 PM
Marian, some members have asked if this is possible so the code edit was posted by IchBinâ,,¢.

You need not remove the upshrinks unless you wish to do so.
Title: Re: [How-to] Remove upshrinks TP1.0.6
Post by: Crip on October 13, 2008, 03:12:11 PM
..on the themes I have saw that [margin-top: -1.4em;"] would look better like: :

echo '<div style="float: right; margin-top: -1.6em;">', $context['TPortal']['upshrinkpanel'] , '</div>'; needs u^p a hair bit..imo