News: Welcome to the TinyPortal Support site.

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

November 16, 2019, 11:03:58 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189259
  • Total Topics: 20772
  • Online Today: 217
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 200
Total: 200

Author Topic: tinyportal install error  (Read 8262 times)

0 Members and 1 Guest are viewing this topic.

MADxMAX

  • Guest
tinyportal install error
« on: April 06, 2006, 03:19:26 AM »
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
« Last Edit: April 19, 2006, 04:50:03 PM by G6 »

MADxMAX

  • Guest
Re: tinyportal install error
« Reply #1 on: April 06, 2006, 03:45:48 AM »
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

  • Guest
Re: tinyportal install error
« Reply #2 on: April 06, 2006, 04:02:58 AM »
Now none of the blocks work,left or right,really confused now lol HELP!!

WebMasterZ

  • Guest
Re: tinyportal install error
« Reply #3 on: April 06, 2006, 05:39:21 AM »
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

  • Guest
Re: tinyportal install error
« Reply #4 on: April 06, 2006, 05:45:27 AM »
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

  • Guest
Re: tinyportal install error
« Reply #5 on: April 06, 2006, 08:10:12 AM »
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

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: tinyportal install error
« Reply #6 on: April 06, 2006, 09:10:20 AM »
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

  • Guest
Re: tinyportal install error
« Reply #7 on: April 06, 2006, 09:16:45 AM »
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
Code: [Select]
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
ADD AFTER
Code: [Select]
// TinyPortal
        if(isset($context['TPortal']['fixed_width'])){
           require_once('SSI.php');
           loadtemplate('TPortalBlocks');
           $context['tportal_on']=true;
        }
SEARCH FOR
Code: [Select]
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
ADD AFTER
Code: [Select]
<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
Code: [Select]
<body>';
ADD AFTER
Code: [Select]
// 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
Code: [Select]
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name'], '" border="0" />';
ADD AFTER
Code: [Select]
// TinyPortal
     if($context['TPortal']['showtop']==1)
     {
// TinyPortal end
SEARCH FOR
Code: [Select]
<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
Code: [Select]
// TinyPortal
       }
//  end
SEARCH FOR
Code: [Select]
<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
Code: [Select]
';
// 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
Code: [Select]
// 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
Code: [Select]
// 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
Code: [Select]
echo '</td>
</tr></table>';
REPLACE WITH
Code: [Select]
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
Code: [Select]
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
REPLACE WITH
Code: [Select]
<td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
                                        ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>
SEARCH FOR
Code: [Select]
echo '
</body>
</html>';
AND ADD BEFORE
Code: [Select]
/ TinyPortal
         echo '</div>';
     if($context['TPortal']['fixed_width']!=0)
             echo '</td></tr></table>';
// end
SEARCH FOR
Code: [Select]
// 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
Code: [Select]
// 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
Code: [Select]
// 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
Code: [Select]
// 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'];

        }
« Last Edit: April 06, 2006, 01:30:49 PM by beemer »

MADxMAX

  • Guest
Re: tinyportal install error
« Reply #8 on: April 06, 2006, 09:36:15 AM »
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

  • Guest
Re: tinyportal install error
« Reply #9 on: April 06, 2006, 09:39:34 AM »
and yes i would be glad of the modified index.template.php :)

borgBOB

  • Guest
Re: tinyportal install error
« Reply #10 on: April 06, 2006, 09:42:39 AM »
Most of the edits suggested by beemer, are a manual install of TinyPortal. If you look at the .mod files in the TP package, you will see the same edits.

stigmartyr

  • Guest
Re: tinyportal install error
« Reply #11 on: April 06, 2006, 09:50:11 AM »
Yeah, uhmm, I tried to install 1.1rc2 last night and when I go to install.php it wanted my SQL password, which of course I have NFI what that is :P  I assume it is 'YES' but when I use that pw, it fails.


Isn't 'YES' the default SQL pw?

Offline Crip

  • Jesus Inside.
  • Themes
  • *
  • Posts: 4168
  • Theme Support
    • Cripzone
Re: tinyportal install error
« Reply #12 on: April 06, 2006, 10:56:53 AM »
Set your ftp info: in admin. panel: -> (server) ftp.yoursite.com + password, -> just like on your Ftp client.
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes


MADxMAX

  • Guest
Re: tinyportal install error
« Reply #13 on: April 06, 2006, 11:16:57 AM »
im still confused,could i have the modified index.template.php i really want this to work as the sites ive seen with it working properly look gr8

thnx for your help

Offline Crip

  • Jesus Inside.
  • Themes
  • *
  • Posts: 4168
  • Theme Support
    • Cripzone
Re: tinyportal install error
« Reply #14 on: April 06, 2006, 11:22:45 AM »
is tp installed here?: http://www.itforfree.net/forums/ - ifso, the default should show the intallation of TP
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes


Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: tinyportal install error
« Reply #15 on: April 06, 2006, 01:00:42 PM »
Max, the above code is all the changes the TP makes to the index.template.php file. Beemer is offering you the one that has the changes already. :)

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: tinyportal install error
« Reply #16 on: April 06, 2006, 01:02:07 PM »
Stig, your SQL password is probably your login username/password. Yes is only for the fantastico installations or something like that.

MADxMAX

  • Guest
Re: tinyportal install error
« Reply #17 on: April 06, 2006, 01:15:25 PM »
id be glad to have the file from beemer if he would like to send it to me and yes tp is installed says at the bottom of my website

Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media
TinyPortal v0.8.6 © Bloc

WebMasterZ

  • Guest
Re: tinyportal install error
« Reply #18 on: April 06, 2006, 01:37:26 PM »
OK
Here is the default RC2 Index.template.php with the TinyPortal edits applied

www.webmasterz.eclipse.co.uk/images/RC2_TP_Default_index_template.zip

Rename the default/index.template.php and extract this one to the same folder

« Last Edit: April 06, 2006, 01:39:02 PM by beemer »

MADxMAX

  • Guest
Re: tinyportal install error
« Reply #19 on: April 06, 2006, 01:47:05 PM »
OK
Here is the default RC2 Index.template.php with the TinyPortal edits applied

www.webmasterz.eclipse.co.uk/images/RC2_TP_Default_index_template.zip

Rename the default/index.template.php and extract this one to the same folder



its fixed sum of the problems but not all,the right blocks now work the but the left 1's still dont,any ideas?

Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: tinyportal install error
« Reply #20 on: April 06, 2006, 01:54:45 PM »
Have you checked that it's turned on in the Adminpanel/Tpsettings?

MADxMAX

  • Guest
Re: tinyportal install error
« Reply #21 on: April 07, 2006, 06:09:25 AM »
Have you checked that it's turned on in the Adminpanel/Tpsettings?

yes,its on in the admin panel but still does not work

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: tinyportal install error
« Reply #22 on: April 07, 2006, 06:12:46 AM »
What about the upshrink button?

MADxMAX

  • Guest
Re: tinyportal install error
« Reply #23 on: April 07, 2006, 06:21:27 AM »
What about the upshrink button?

aaaaaaaaah sorted it,did not know about that,thnx for the info,im sooooo dull
thnx every1 for the help and advice

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: tinyportal install error
« Reply #24 on: April 07, 2006, 09:58:29 AM »
You aren't the first, and I'm pretty sure you won't be the last either. :)