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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 148
  • Total: 148

[ Help ] Trying to move "Shrink or Expand the header" links

Started by graecus, October 01, 2008, 09:46:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

graecus

First:

Link to my site: http://www.teamvertex.net/forum
SMF version: 1.1.6
TP version: 1.0.5 beta
Theme name and version: Default theme from fresh 1.1.6 install
Mods installed: nneonneo's Ajax Shoutbox, Tinyportal
Related Error messages: No error messags, other than my frustration in the form of hair-pulling.

Second:

From everything I've searched this far, it appears this problem is quickly and swiftly dealt with by commenting out lines found in:

/forum/Themes/default/index.template.php

Regarding the following code:

// TinyPortal
if($context['TPortal']['leftbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
         if($context['TPortal']['rightbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
// TinyPortal end


It was even heavily commented and displayed in the following thread:

http://www.tinyportal.net/index.php/topic,25754.0.html

But has not been fully answered.
I found the only instance of the above code being found in index.template.php.  After commenting it out various ways, killing it, changing it, I have come to the realization that the code listed above, in that location, does nothing.

If I move it elsewhere inside index.template.php, say for instance in the < tr > that it's referenced after (which is where the HOME  FORUM  ADMIN etc options are, it places at the END of that row, after LOGOUT.

I'm literally pulling my hair out here, which is ok since I have a fabulous coiffeur atop my head, but needless to say I'm having a difficult time nailing this down.  Any help is greatly appreciated, and sorry for adding yet another topic of this issue to the forum.




G6Cad

That code does not apply in TP V1.0.5 anylonger, it's only for TP V098 you have that code in the index.template.php file.

If you have firefox installed, you can download the addon called firebug and with that tool, you can then check where the code is and also you can change it and see how it looks with out chaning the original file until you are happy with how it looks.

graecus

Hrm.  Currently using Google Chrome at the moment, though I have IE7 and FF to test at home.  How does one utilize Firebug to discover where the code for that is?

edit:  Inspect Element?  Like that which Chrome comes with?

Thanks for the speedy reply.

IchBin

I'm not sure where its at in that beta version of TP. Search your TinyPortal files in the Sources and Default themes directory for this code and see if you can find.
echo $context['TPortal']['upshrinkpanel'];

graecus

After a lot of grepping, drinking, and more grepping, I found it was in

/forum/themes/default/TPBlockLayout.php

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

Though more modification is necessary to float and position everything is even.  Thanks for the help guys.


This website is proudly hosted on Crocweb Cloud Website Hosting.