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,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 388
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 331
  • Total: 331

TinyPortal v0.7.5 release/update

Started by Lesmond, October 24, 2005, 12:10:26 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

bloc

Check that you actually have the line "echo '</tr></table></div>';"  since it closes the middle part before the footer.

Nokonium

#41
I had removed that bit. I've just replaced it and now the footer is across the whole width, also unfortunately so is the contents of the right barÂÃ, 

I took out the wrong bit didn't I? ÂÃ, :2funny:

Nokonium

I think I've found out where I went wrong,

Here:
Quoteh.) search for:
   echo '</td></tr></table>';
replace with:
   echo '</td>';

         // TinyPortal integrated bars
          if($context['TPortal']['rightbar']){
              echo '<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; background-color: #D4D4D4; padding-top: 4px;" valign="top" align="right">
                 <div id="rightbarHeader"', empty($options['collapse_rightbar']) ? '' : ' style="display: none;"', ' style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
              TPortal_rightbar();
              echo '</div></td>';
          }

        echo '</tr></table></div>';

Could there have been more than 1 echo '</td></tr></table>'; ?

It seems that I had inserted the code after the footer area, (where modification 'j' goes) when it should have overwritten the existing right bar code. I think it is all correct now (I added extra comments to help me)
// The main content should go here.  A table is used because IE 6 just can't handle a div.
        echo '<div id="bodyarea" style="padding: 10px 8px 0px 8px;">
        <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';

// TinyPortal integrated bars  (left)
          if($context['TPortal']['leftbar'])
          {
              echo '<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; background-color: #D4D4D4; padding-top: 4px;" valign="top">
                 <div id="leftbarHeader"', empty($options['collapse_leftbar']) ? '' : ' style="display: none;"', ' style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 TPortal_sidebar('left');
              echo '</div></td>';

          }
// TinyPortal integrated bars (center)
        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>';


}
// Main template
function template_main_below()
{
        global $context, $settings, $options, $scripturl, $txt;
        echo '</td>';
// TinyPortal integrated bars  (right)
          if($context['TPortal']['rightbar']){
              echo '<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; background-color: #D4D4D4; padding-top: 4px;" valign="top" align="right">
                 <div id="rightbarHeader"', empty($options['collapse_rightbar']) ? '' : ' style="display: none;"', ' style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
              TPortal_rightbar();
              echo '</div></td>';
          }

        echo '</tr></table></div>';

// Footer area - Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!

bloc

Normally no more than 1..but if something goes haywire with installing, it can happen. :) i once had 9 lines of 'tpadmin' => etc. in index.php - just because it wouldn't go beyond a certain point in the package manager... :P

But recent versions of SMF stops correctly now it seems..no more part done, part un-done.

Oldiesmann

What's the solution for the "undefined index tp-path-to-thumbs2" error?

bloc

Add the string to the Tportal.english.php file for now. Just set it to '';

rawandy


Cybertoad

Puzzling to me.

Installed no errors but upon installing mercury I lost the TM admin and tinyportal is gone.
If I revert back to Default they are there. But not in mercury.
I found no error and was a smooth install.

I have tried to install 3 times and the results were the same.

Cybertoad.

Nokonium

You need Mercury TP to work with TinyPortal.

Cybertoad

#49
QuoteThanks I will look it over again must have missed something.
Cybertoad



Ok MY Bad, I was missed up with Mercury and Mecury TP

Install was perfect then, no problems on RC
Now i'll go test it.

Thanks

This website is proudly hosted on Crocweb Cloud Website Hosting.