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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 204
  • Total: 204

[How-to] Remove upshrinks TP1.0.6

Started by IchBin, October 13, 2008, 12:58:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

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>';

Ruscon

#1
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;" />';

IchBin

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.

Ruscon

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

IchBin



ed_m2

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.

mnichols7

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.

Ken.

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.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Crip

..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
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



This website is proudly hosted on Crocweb Cloud Website Hosting.