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,910
  • Total Topics: 21,307
  • Online today: 872
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 364
  • Total: 364

tinyportal install error

Started by MADxMAX, April 06, 2006, 10:19:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MADxMAX

i got the following error on install
1.     Extract Tree     ./Themes     
2.    Extract Tree    ./Sources    
3.    Extract Tree    ./wysiwyg    
4.    Extract Tree    ./tp-downloads    
5.    Execute Code    tp_install.php    
6.    Execute Modification    ./index.php    Test successful
7.    Execute Modification    ./Sources/Load.php    Test successful
8.    Execute Modification    ./Themes/default/index.template.php    Test failed
9.    Execute Modification    ./Themes/babylon/index.template.php    File not found
10.    Execute Modification    ./Sources/Subs.php    Test successful
11.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
12.    Execute Modification    ./Sources/Security.php

im using SMF 1.1RC2 on my site any help or advice would be nice

MADxMAX

ive managed to get it into install with no errors,but now i have a problem with the blocks,the right side blocks work ok, but the left blocks dont show on the site at all,again any help or advice would be gr8

thnx

MADxMAX

Now none of the blocks work,left or right,really confused now lol HELP!!

WebMasterZ

Got a link to your site?

Re the following,
9.    Execute Modification    ./Themes/babylon/index.template.php    File not found
do you have "/Themes/babylon/index.template.php

8.    Execute Modification    ./Themes/default/index.template.php    Test failed
What are the permissions?

eldacar

You can ignore the babylon error.

As for default/index.template.php, do the installation like that (even though there are errors) and then manually modify that file. There are instructions explaining how to do that.

MADxMAX

ive managed to install tinyportal without any errors now,link to my site is www.itforfree.net,my main problem is that i can not get the side blocks to work,when they are switched on they do not appear on the site ( and if they do they only appear at the bottom of the page ),in your above post you said about modfiy the index.template.php manually,im new to coding etc,could you explain this further and or provide a link to the instructions for my problem if possible?

thnx

IchBin

It appears you don't have any TP themes installed. In my sig I think there's a link for you to download and install one of the TP themes.

WebMasterZ

#7
The reason it did not auto install is because you have the googlebot installed  somehow they seem to clash >:(

You could upload a clean index.template.php and run the TP installer again

Make all the edits below to your existing index.template.php (remember to back it up FIRST)

The googlebot doesnt makes any changes to index.template so I know which one I would prefer  ;)

I have a modified file if you want it,

You need to edit your default/index.template.php ( there is quite a bit)
SEARCH FOR

function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

ADD AFTER

// TinyPortal
        if(isset($context['TPortal']['fixed_width'])){
           require_once('SSI.php');
           loadtemplate('TPortalBlocks');
           $context['tportal_on']=true;
        }

SEARCH FOR

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

ADD AFTER

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_leftbar = ', empty($options['collapse_leftbar']) ? 'false' : 'true', ';

                function shrinkHeaderLeftbar(mode)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0);';
        echo '
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

                        current_leftbar = mode;
                }
          // ]]></script>
       <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_rightbar = ', empty($options['collapse_rightbar']) ? 'false' : 'true', ';

                function shrinkHeaderRightbar(mode)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_rightbar", mode ? 1 : 0);';

        echo '
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

                        current_rightbar = mode;
                }
        // ]]></script>

SEARCH FOR

<body>';

ADD AFTER

// TinyPortal start
     if($context['TPortal']['fixed_width']!=0)
             echo '<table align="center" width="'.$context['TPortal']['fixed_width'].'" cellpadding="0" cellspacing="0" border="0"><tr><td>';

// TinyPortal end

SEARCH FOR

<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name'], '" border="0" />';

ADD AFTER

// TinyPortal
     if($context['TPortal']['showtop']==1)
     {
// TinyPortal end

SEARCH FOR

<b>', $context['common_stats']['total_posts'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $context['common_stats']['total_topics'], '</b> ', $txt[64], ' ', $txt[525], ' <span style="white-space: nowrap;"><b>', $context['common_stats']['total_members'], '</b> ', $txt[19], '</span><br />
', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
</div>
</div>';

ADD AFTER

// TinyPortal
       }
//  end

SEARCH FOR

<a href="javascript:void(0);" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 2ex 2px 0;" border="0" /></a>';

AND REPLACE WITH

';
// TinyPortal

         if($context['TPortal']['showtop'])
             echo '<a href="javascript:void(0);" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTemp" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 1ex;" /> ';
         if($context['TPortal']['leftbar'])
             echo '<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;" />';
         if($context['TPortal']['rightbar'])
             echo '<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;" />';
// TinyPortal end

SEARCH FOR

// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';

AND REPLACE WITH

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

          }

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

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

SEARCH FOR

<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>

REPLACE WITH

<td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
                                        ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>

SEARCH FOR

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

AND ADD BEFORE

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

SEARCH FOR

// Show the [home] and [help] buttons.
echo '
<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];

AND REPLACE WITH

// Show the [home] and [help] buttons.
       echo '
                     <a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'];
       echo '        <a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="Forum Index" style="margin: 2px 0;" border="0" />' : 'Forum Index'), '</a>', $context['menu_separator'];
       echo '        <a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];

SEARCH FOR

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 2px 0;" border="0" />' : $txt[2]), '</a>', $context['menu_separator'];

ANDREPLACE WITH

// Is the user allowed to administrate at all? ([admin])
        if ($context['allow_admin']){
                echo '
                                <a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 2px 0;" border="0" />' : $txt[2]), '</a>', $context['menu_separator'];
                echo '
                                <a href="', $scripturl, '?action=tpadmin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/tpadmin.gif" alt="Tiny Portal Admin" style="margin: 2px 0;" border="0" />' : 'TPadmin'), '</a>', $context['menu_separator'];

        }

MADxMAX

Quote from: beemer on April 06, 2006, 04:16:45 PM
I have a modified file if you want it,you would just need to add in the googlebot changes

a modified file would be what,sry to ask stupid questions,but as far as i know the only really stupid question is the 1 that is not asked,whats the difference to your modified index.template.php and a clean index.template.php,another question is all the code in above post what is that exactly for?,i like to try to understand why im changing sumthing aswell as getting things to work,then i might understand what went wrong in the 1st place :P

thnx for you patience

MADxMAX

and yes i would be glad of the modified index.template.php :)

This website is proudly hosted on Crocweb Cloud Website Hosting.