TinyPortal

Development => Support => Installation => Topic started by: desertcities on May 10, 2006, 08:56:52 PM

Title: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: desertcities on May 10, 2006, 08:56:52 PM
I'm using the default SMF 1.1 RC2 Theme, with some mods already installed, and the Package option to install Tiny Portal was successful on all files except index.template.php which I'm trying to manually install.

Everything has gone okay so far except now I cannot find this one piece of text to replace.  The text in the manual install calls to search for the following text, but I cannot find it anywhere in my index.template.php file:

<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>';
</search for>
<add after>

// TinyPortal
       }
//  end
</add after>


I'm attaching my index.template.php file.  I still have a few more files to modify too.  Hope they go smoothly. 

Lastly, once I modify my index.template.php file, do I then use again the Package method to try to install this program?  Confused.

Thank you very much.

Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: G6Cad on May 10, 2006, 10:10:05 PM
Here you go
The reason for the error in index.template.php when you tried to use the packagemanager was the array code.
You had the "chat" in that array and the installer was looking for that line, but without the chat ;)

This file is complete with TP and Chat intact.
Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: desertcities on May 10, 2006, 10:39:17 PM
Hi,

After applying the index.template.php file, and then using the package option to install the mod, I'm now getting installation errors in my Load.php and again my index.template.php file.

I'm gathering from existing mods I have that I cannot find the text to replace. 

I thought if you don't mind to attach both files here and just see if anything stands out wrong that I can fix.  This is all relatively new for me coming from a UBB vBulletin background.  I've actually scrapped those programs for SMF.

Thank you again.

Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: G6Cad on May 11, 2006, 07:56:17 AM
Reupload all the TP files manually from the manual installations package and overwrite the existing ones made by the packagemanager and it should work.
Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: elody on July 06, 2006, 03:42:31 PM
Hi

I've the same Problem. I just can find the line or something that is like this in the index.template.php.

What can I do now?

I've tryed to understand what do  when I found this topic here, but I just don't...

Could someone please help a stupid girl?

Thanks a lot

Elody
Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: IchBin on July 06, 2006, 07:27:50 PM
You can use the index.template that G6 just posted, unless you have other mods installed.
Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: anil on August 09, 2006, 09:52:20 AM

I am also facing the same problem , but i did not understand u r solution array stuff.
I am attaching my index.template.php also here.
will u please help me in solving this problem ?

Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: G6Cad on August 09, 2006, 09:56:29 AM
Im not sure i follow you with what you want to have done to your index.template.php file?
Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: anil on August 09, 2006, 02:15:15 PM
I am not able to find some of the entries in the index.template.php file.

if you go to the tp_mod-instructions.txt file it contains information about the -------------------------------------------------------------------------------------------------------
Themes/default/index.template.php
-------------------------------------------------------------------------------------------------------
also

when i was trying to modify my forum's index.template.php , i was not able to find some of the entries.
[color=red]
1)[/color]
</add after>

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


[color=red]2)[/color]
<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'];
</search for>




Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: anil on August 09, 2006, 02:16:25 PM
In the code window , u will find the entries which i was not able to find
Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: G6Cad on August 09, 2006, 02:23:43 PM
If you download the index.template.php that is posted in this thread you have a correct file for the install
Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: anil on August 09, 2006, 03:06:51 PM
Still no luck
copy pasted the download one there into the path.Getting same errors
when i was installing
Install Actions
Installations actions for "TinyPortal":
Installing this package will perform the following actions:  Type Action Description
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 Test successful
10. Execute Modification ./Sources/Subs.php Test successful
11. Execute Modification ./Sources/ManagePermissions.php Test successful
12. Execute Modification ./Sources/Security.php Test successful

Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: G6Cad on August 09, 2006, 03:08:26 PM
If you uploaded the index.template.php file from this thread, you can iggnore that error message and go on with the installation.
You get the error cause the xml cant find the code to change, itÂÃ,´s allready there so the script dont recognise the code ;)
Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: anil on August 09, 2006, 03:21:19 PM
CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process.

it is showing the below line in the explorer and got the above message.
"http://bn-euro00331/bni/index.php?action=packages;sa=install2;package=Tinyportal0_86_rev2.zip
Title: Re: Manual Entry, index.template.php, Can't Find This Text, Help
Post by: G6Cad on August 09, 2006, 07:50:30 PM
That is something you have to ask your host about, their timeout settings on the server is to low for the time taken to install the package.
It's not a TP issue.
So i suggest you contact your host and ask them to look into that for you.