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: 1
  • Guests: 381
  • Total: 382
  • lurkalot

TinyPortal v0.7.5 release/update

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

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

bloc

Its not done for TinyPortal v.0.7.5 - because it only modifies the SMF files, and that hasn't changed since TP 0.6.5 in fact.

Just use the one in this thread:
http://www.tinyportal.net/smf/index.php?topic=927.0

Nokonium

Quote from: nokonium on October 27, 2005, 07:08:23 AM
Quote from: nokonium on October 26, 2005, 10:32:20 PM
I've just done a manual update 0.74 to 0.75 .....

I've had another go and it is still the same.

I've now got the database updated, I had entered custom table prefix I use for the SMF tables instead of adding it to the tportal table prefix.

Still have the problem though  :(

lithanual

well, everything installed without any errors at all, but for some reason the default block's were set wrong.

The shoutbox was set to like menubox and they were all like that...

I fixed them all, expept for the "content' block.. what is that supposed to be?

borgBOB

I believe content is a menu box type, as used on this site shows.

lithanual

http://www.phazm.net/hygportal/

nothing shows up (and I do have some test content) when I use menubox

Nokonium

Quote from: nokonium on October 29, 2005, 12:53:23 PM
Still have the problem thoughÂÃ,  :(

I think that I've found the problem, but I need help to identify what I need to remove.

This is indextemplate lines 401 to 525

<?php 
function template_main_below()
{
        global 
$context$settings$options$scripturl$txt;

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

        
// Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!
        
echo '

        <div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
                <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                        function smfFooterHighlight(element, value)
                        {
                                element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
                        }
                // ]]></script>
                <table cellspacing="0" cellpadding="3" border="0" width="100%">
                        <tr>
                                <td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
                                        <a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
                                        <a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
                                </td>
                                <td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
                                        '
theme_copyright(), ' <br />'tportal_version() , '
                                </td>


                                <td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
                                        <a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
                                        <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
                                </td>
                        </tr>
                </table>'
;

        
// Show the load time?
        
if ($context['show_load_time'])
                echo 
'
                <span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

        echo 
'
                </div>'
;

        
// This is an interesting bug in Internet Explorer AND Safari.  Rather annoying, it makes overflows just not tall enough.
        
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'])
        {
                
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
                
echo '
                <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

                
// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
                
if ($context['browser']['is_safari'])
                        echo 
'
                        window.addEventListener("load", smf_codeFix, false);

                        function smf_codeFix()
                        {
                                var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

                                for (var i = 0; i < codeFix.length; i++)
                                {
                                        if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
                                                codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
                                }
                        }'
;
                else
                {
                        echo 
'
                        var window_oldOnload = window.onload;
                        window.onload = smf_codeFix;

                        function smf_codeFix()
                        {
                                var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

                                for (var i = codeFix.length - 1; i > 0; i--)
                                {
                                        if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
                                                codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
                                }

                                if (window_oldOnload)
                                {
                                        window_oldOnload();
                                        window_oldOnload = null;
                                }
                        }'
;
                }

                echo 
'
                // ]]></script>'
;
        }
        
// TinyPortal
         
echo '</div>';
         if(
$context['TPortal']['fixed_width']!=0)
             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>';

        
// end
        // TinyPortal
         
echo '</div>';
     if(
$context['TPortal']['fixed_width']!=0)
             echo 
'</td></tr></table>';
// end

        
echo '
        </body>
        </html>'
;
        }
?>


Please

lithanual

okay, you were right, I didn't have the content enabled :)

Nokonium

I've removed lines 405 to 414

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


  :-\

bloc

Ok. You just removed the code to show the rightbar then..and that get rid of the error?

Nokonium

#39
Not quite, it got rid of the extra bar in the footer area, but the footer area, with the powered by and version bits, is now only across the bottom of the center section whilst both sidebars are down.ÂÃ, 

I printed all 14 pages of the code and looked at it. I saw two sets of code for the right bar, so I looked at the two sections of code and compared them to the left bar code. The first one was the odd one, so I removed it.

This website is proudly hosted on Crocweb Cloud Website Hosting.