TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 141
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 101
  • Total: 101

Manual Entry, index.template.php, Can't Find This Text, Help

Started by desertcities, May 10, 2006, 08:56:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

desertcities

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.


G6Cad

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.

desertcities

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.


G6Cad

Reupload all the TP files manually from the manual installations package and overwrite the existing ones made by the packagemanager and it should work.

elody

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

IchBin

You can use the index.template that G6 just posted, unless you have other mods installed.

anil


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 ?


G6Cad

Im not sure i follow you with what you want to have done to your index.template.php file?

anil

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>





anil

In the code window , u will find the entries which i was not able to find

This website is proudly hosted on Crocweb Cloud Website Hosting.