I made the mistake of installing TinyPortal on the new SMF version. It doesn't work yet. How do I undo this?
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?
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.
What do I need to edit in Load.php?
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...............
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 )
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.
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!
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.
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.
What's the tinyportal07_11.mod file in the zip for? I seem to remember this had something to do with SMF v1.1?
yes, it is. I have included it for those that wanted to peek. BUT its not geared towards anything but 1.1beta 1, since thats what was avaialbe to me at the time. Essientailly the modifications done by TP is not very different in 1.1 than 1.0.5, some spaces and reshuffling of the same functions - but eesentially the same.
Next release will come with support for 1.1beta3 and 1.0.5. I am trying to use the xml alternative in installing, rather than the mod format. I'll see how it goes, I can always fall back to the mod format. ;)