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: 195,994
  • Total Topics: 21,325
  • Online today: 348
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 257
  • Total: 257

Help! TinyPortal SMF 1.1 Beta 3

Started by jazz, July 01, 2005, 09:37:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jazz

I made the mistake of installing TinyPortal on the new SMF version.  It doesn't work yet.  How do I undo this?

jazz

I was able to do fix this by restoring the database.  The site is now without TinyPortal.  Will you update TinyPortal soon for the newest release?

IchBin

It does work on the 1.1 beta 3 SMF forum. Only you'll have to manually add the changes to the Load.php and index.template.php file.

jazz

What do I need to edit in Load.php?

ontap

i was going to upgrade to SMF 1.1 Beta but ive to many mods installed that dont work with this version so im gonna wait...............

Bjørn

Jazz, look at the mod file in TinyPortal archive.

I will release a new version soon, with support for SMF 1.1, but can't promise exactly when. Between theme commissions and SMF staff-work, its now become proper summer here as well.. ;D (feel like we rained away last month :P )

IchBin

You too eh Bloc? Seems our spring was rained away here too. We have had more water this year than we have had in the previous 10 years. Seems like we didn't even have a spring. We went from 50 Fahrenheit to 85+ in a matter of just a few weeks...

Is there anything I can do to help here Bloc? If so, feel free to ask.

jazz

Quote from: IchBinÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â,¬Å¾Ã,¢ on July 02, 2005, 12:25:34 AM
You too eh Bloc? Seems our spring was rained away here too. We have had more water this year than we have had in the previous 10 years. Seems like we didn't even have a spring. We went from 50 Fahrenheit to 85+ in a matter of just a few weeks...

Is there anything I can do to help here Bloc? If so, feel free to ask.

If you could help me I'd really appreciate it.  I have no idea what I'm supposed to modify in these files to make TinyPortal work.

It's been the same here by the way.  More rain this spring than I can remember in years!  We'll have an 85 degree day, and then out of nowhere a storm comes in.  It makes it impossible to wash a car!

IchBin

Well, it's not exactly a fun thing to do but I'll give you an example here.
You need to open up the file in the tinyportal package called tinyportal065.mod
In this file is all the instructions on what code needs to be changed. Here's an example of the code:
<edit file>
index.php
</edit file>

<search for>
require_once($sourcedir . '/Security.php');
</search for>
<add after>
       // TinyPortal include
       require_once($sourcedir . '/TPortal.php');
</add after>

<search for>
// Is the forum in maintenance mode? (doesn't apply to administrators.)
</search for>
<add before>
        // TinyPortal
        TPortal_init();

</add before>


<search for>
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
</search for>
<replace>
                // Action and board are both empty... BoardIndex!
                if (empty($board) && empty($topic))
                {
                        require_once($sourcedir . '/TPortal.php');
                        return 'TPortal';
                }
</replace>

<search for>
'.xml' => array('News.php', 'ShowXmlFeed'),
</search for>
<add after>
                'tpadmin' => array('TPortalAdmin.php', 'TPortalAdmin'),
                'forum' => array('BoardIndex.php', 'BoardIndex'),
                'tpmod' => array('TPmodules.php', 'TPmodules'),
</add after>


<edit file>
$sourcedir/Load.php
</edit file>


You'll notice that in the beginning it says your editing the index.php file. Then it tells you to search for this string "require_once($sourcedir . '/Security.php');". I use the ctrl+f option to find the string. Then it says you need to add after the following.
       // TinyPortal include
       require_once($sourcedir . '/TPortal.php');
I just put my cursor on the end of the line and hit return for a new line, and then paste the code it tells you to add after. Sometimes you'll need to replace or even add before the code lines your searching for. If you can follow the instructions in that file you'll need to only edit index.php and Load.php for it to work. Thats only if you already have a Tinyportal Theme installed. I hope this helps. If you get stuck post back and I'll try and help.

Bjørn

Well, it seem the rain is back today..(sigh) . At least its warm still. ;)

Thanks for the offer, IchBin..helping out with any questions is really what I need.

This website is proudly hosted on Crocweb Cloud Website Hosting.