TinyPortal

Development => Support => Installation => Topic started by: rebelminion on April 19, 2006, 02:29:29 PM

Title: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: rebelminion on April 19, 2006, 02:29:29 PM
Hi All,

I tried doing a search before posting, but found nothing that helped. Since I am not seeing my problem in a previous post, I suspect it's pilot error.

However, here is where I am at.

I just upgraded my SMF forum to 1.1RC2 including the latest bug fix.

I then successfully uploaded the TP 86. However, when I tried to install it, I got the error saying that:

An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!


I went to package directory and manully confirmed everything was writable, still got same error.

After searching on here, it looks like this is not a TP but SMF issue. So, I figured I would go for the manual install.

I unzipped the manual install to the correct directory, then ran the "manual_tp_install.php" file and got a message indicating it had done it's thing... IE: said everything listed was successful.

Now what?

I go to my forum and it all looks the same. No new options in admin, no additional packages waiting to be activated. Have I missed a step?

I was not able to find any instructions on the manual install, so there is a pretty good chance I am missing something.

Thanks for any help you can provide,
R
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: G6Cad on April 19, 2006, 02:32:30 PM
You have to copy and paste some code to into some files.

Download this text file and read it through, then follow the instructions and you will have your portal up and running :)
http://www.tinyportal.net/smf/index.php?action=dlattach;topic=2481.0;attach=1830
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: rebelminion on April 19, 2006, 02:35:07 PM
Coolness.

Thanks.. I will give it a try.

Thanks again for the quick reply.

R
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: Crip on April 19, 2006, 02:39:16 PM
If that doesn't do the trick, run TP_.zip via package manager again, repeat if needed. ;)
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: rebelminion on April 19, 2006, 02:51:40 PM
package manager option just does not seem to want to work for me.

In editing these files, I am finding that the index.template.php text I am supposed to be searching for is not being found. I have even tried smaller subsets and am still not finding the text I am supposed to be replacing or pasting after - looks like some changes were made with the last update.

For instance, the following code cannot be found in the original file. In fact, even if I just search on "common_stats" nothing is found in the file.

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


Is there an updated version of the changes file I can work from?

Thanks,
R
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: G6Cad on April 19, 2006, 03:03:29 PM
Are you reading the textfile correct for the version of the smf you have?
My first time i was looking for codes that didnt seem to be in my files, but actually i was trying to add in code for a much later version.
The textfile show codes from the early betas to..
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: G6Cad on April 19, 2006, 03:09:47 PM
If you dont find the strings in the index.template.php file and if you have 1.1rc2 you can take this file and try it out.
ItÂÃ,´s with the modificatin for TP
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: rebelminion on April 19, 2006, 03:18:15 PM
Very helpful... thanks
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: RealiX on April 28, 2006, 04:59:12 AM
i still dont get the lines for editing in the index.template.php, both in my root folder and the one u've provided. im using SMF 1.0.7 patch
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: G6Cad on April 28, 2006, 06:24:29 AM
The index file i provided in this link is for the 1.1RC2 and not the 1.0.7  ;)

If you read back in the threads in this topic, IchBin have one working index.template.php file attached for you to try.
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: RealiX on April 28, 2006, 07:43:42 AM
which thread is it?
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: G6Cad on April 28, 2006, 08:25:25 AM
Try the search, it's really working  ;)
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: IchBin on April 28, 2006, 03:00:31 PM
This the one you're looking for?

http://www.tinyportal.net/smf/index.php?topic=2481.msg22237#msg22237
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: Xarcell on April 30, 2006, 08:07:21 PM
Is that not a chmod issue?
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: Kreagon on May 04, 2006, 01:29:10 AM
First let me say I'm new to SMF and TinyPortal. However, as a *nuke admin and coder I'm not new to modifying files.

I was recently exploring other non-*nuke options for my forums and CMS when I came upon SMF and fell in love; my next evolutionary step will be vBulletin but that is another story.


Here are a few issues I've noticed with the TP_mod-instructions.txt file.

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

ACTUAL:
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';


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


ACTUAL:
Can't seem to find


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


Closest Match:
<a href="#" 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'], '" align="bottom" style="margin: 0 1ex;" /></a>

Just a few observations but it does seem that the instructions need to be updated to reflect these changes in the current 1.1RC2 download.

I'm still working on a the solution.
Title: Re: No luck with install - tried package and manual [1.1rc2 and 86]
Post by: G6Cad on May 04, 2006, 08:38:58 AM
Where to manually insert the code in default index.template.php for the  1.1Rc2 and TP v.086

In Themes/default/index.template.php

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

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


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


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


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