TinyPortal

Development => Support => Installation => Topic started by: Nolt on November 03, 2010, 07:59:09 PM

Title: TP 1.0 RC1 and SMF 2.0 RC4
Post by: Nolt on November 03, 2010, 07:59:09 PM
Hi, I have problem with installation. When I want install TP on RC4 i get msg that this package isn't compatible with this version of SMF.
Title: Re: TP 1.0 RC1 and SMF 2.0 RC4
Post by: ZarPrime on November 04, 2010, 12:57:33 AM
Nolt,

I don't believe that Bloc has finished checking through RC1 yet to make sure that there aren't any edits needed.  However, it should install fine on SMF 2.0 RC4 (but I'm not guaranteeing that yet).  In order to do that right now, you'd need to use one of the prescribed methods ...

1.  Click "Advanced" at the bottom of the Package Manager and emulate SMF 2.0 RC3.
2.  Unzip the RC1 zipfile and edit the xml file (without looking, I think it's called package-info.xml) to install and uninstall for RC4.  Then zip it back up.

We probably won't update here until bloc gives the green light though one or more of us may go ahead and do it on our test sites.  However, I haven't done it yet on mine. ;) Let us know if everything goes OK.  Oh, be sure to backup first, as always.

ZarPrime
Title: Re: TP 1.0 RC1 and SMF 2.0 RC4
Post by: Nolt on November 04, 2010, 02:46:04 PM
Error in ~/Sources/Security.php file. I've checked and I can't find that place. Screen attached.
Title: Re: TP 1.0 RC1 and SMF 2.0 RC4
Post by: ZarPrime on November 04, 2010, 03:15:42 PM
Nolt,

Until Bloc has an update, the only info I can give you is for SMF 2.0 RC3 ...

1.  Security.php is located in the Sources folder of your SMF install.

2.  The needed edits for SMF 2.0 RC3 for that file are as follows ...

Find:

// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context;


Add After:


// TinyPortal
TPortal_init();


ZarPrime
Title: Re: TP 1.0 RC1 and SMF 2.0 RC4
Post by: Maxx1 on November 04, 2010, 03:21:24 PM
Yes and I think Bloc has allot on his plate right at present, He is keeping real busy and I myself will wait a while before updating any major or active site until all bugs are worked out, on every thing including but not limited to themes and mods and the forum system!

In short I would wait before jumping into RC4 for a live site and even on their main site they advise this!

regards,
Maxx
Title: Re: TP 1.0 RC1 and SMF 2.0 RC4
Post by: Lesmond on November 04, 2010, 03:52:14 PM
in Sources/Security.php

Find: around line 172

// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context;


Add After: add this manually


// TinyPortal
TPortal_init();


What I did was to go ahead with the install, then added the above edits manually.

so it should look like this...

// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context, $scripturl;

// TinyPortal
TPortal_init();


For the package-info.xml

Find:
   <install for="2.0 RC3">
<redirect url="">Installed!</redirect>
                <require-dir name="SMF2RC2/Themes" destination="$boarddir" />
                <require-dir name="common/Themes" destination="$boarddir" />
<require-dir name="SMF2RC2/Sources" destination="$boarddir" />
                <require-dir name="common/tp-downloads" destination="$boarddir" />
                <require-dir name="common/tp-images" destination="$boarddir" />
<require-dir name="SMF2RC2/tp-files" destination="$boarddir" />
                <readme type="inline">Installing TinyPortal v1.0 beta 5 for SMF2.0 RC3</readme>
               <modification format="boardmod" type="file">SMF2RC3/tinyportal200rc3.mod</modification>
               <database>SMF2RC3/tp_upgrade.php</database>
        </install>
<uninstall for="2.0 RC3">
                <modification format="boardmod" type="file" reverse="true">SMF2RC3/tinyportal200rc3.mod</modification>
        </uninstall>
       <upgrade for="2.0 RC3" from="1.098, 1.099, 1.100">
<redirect url="">Upgraded!</redirect>
                <require-dir name="SMF2RC2/Themes" destination="$boarddir" />
                <require-dir name="common/Themes" destination="$boarddir" />
<require-dir name="SMF2RC2/Sources" destination="$boarddir" />
                <require-dir name="common/tp-downloads" destination="$boarddir" />
                <require-dir name="common/tp-images" destination="$boarddir" />
<require-dir name="SMF2RC2/tp-files" destination="$boarddir" />
                <readme type="inline">Installing TinyPortal v1.0 beta 5 for SMF2.0 RC3</readme>
               <modification format="boardmod" type="file">SMF2RC3/tinyportal200rc3b.mod</modification>
               <database>SMF2RC3/tp_upgrade.php</database>
        </upgrade>


Replace with:
   <install for="2.0 RC4">
<redirect url="">Installed!</redirect>
                <require-dir name="SMF2RC2/Themes" destination="$boarddir" />
                <require-dir name="common/Themes" destination="$boarddir" />
<require-dir name="SMF2RC2/Sources" destination="$boarddir" />
                <require-dir name="common/tp-downloads" destination="$boarddir" />
                <require-dir name="common/tp-images" destination="$boarddir" />
<require-dir name="SMF2RC2/tp-files" destination="$boarddir" />
                <readme type="inline">Installing TinyPortal v1.0 beta 5 for SMF2.0 RC4</readme>
               <modification format="boardmod" type="file">SMF2RC3/tinyportal200rc3.mod</modification>
               <database>SMF2RC3/tp_upgrade.php</database>
        </install>
<uninstall for="2.0 RC4">
                <modification format="boardmod" type="file" reverse="true">SMF2RC3/tinyportal200rc3.mod</modification>
        </uninstall>
       <upgrade for="2.0 RC4" from="1.098, 1.099, 1.100">
<redirect url="">Upgraded!</redirect>
                <require-dir name="SMF2RC2/Themes" destination="$boarddir" />
                <require-dir name="common/Themes" destination="$boarddir" />
<require-dir name="SMF2RC2/Sources" destination="$boarddir" />
                <require-dir name="common/tp-downloads" destination="$boarddir" />
                <require-dir name="common/tp-images" destination="$boarddir" />
<require-dir name="SMF2RC2/tp-files" destination="$boarddir" />
                <readme type="inline">Installing TinyPortal v1.0 beta 5 for SMF2.0 RC4</readme>
               <modification format="boardmod" type="file">SMF2RC3/tinyportal200rc3b.mod</modification>
               <database>SMF2RC3/tp_upgrade.php</database>
        </upgrade>


I will add this may not be the best way of doing things, it also may not be error free, SO PROCEED AT YOUR OWN RISK!!
Title: Re: TP 1.0 RC1 and SMF 2.0 RC4
Post by: Nolt on November 04, 2010, 11:12:10 PM
Thanks, for all anserws. I think I will wait for the public update (TP and theme I use - Argentum).

Thank you all again.
Title: Re: TP 1.0 RC1 and SMF 2.0 RC4
Post by: agridoc on November 05, 2010, 03:36:22 AM
I had announced a quick fix for TP 1.05 package and RC4 in TP Team board on November 2 and, in public, in TP topic in SMF mods board on November 3 http://www.simplemachines.org/community/index.php?topic=27642.msg2837912#msg2837912 (http://www.simplemachines.org/community/index.php?topic=27642.msg2837912#msg2837912) mainly because Rafferty had already upgraded to RC4.

It's very easy to edit the /SMF2RC3/tinyportal200rc3.mod, save as /SMF2RC4/tinyportal200rc4.mod and add the necessary lines in package-info.xml so it will install and unistall in all versions.

However, I hadn't given more details, as TP 1.0 RC1 is not yet properly tested for RC4.

My test RC4 install has Babylon and Classic Themes added from RC3 files, plus a 2.0 RC3 theme by Crip.

Since November 2, I didn't notice any difference in behavior in comparison to an RC3 installation.

I saw a report by Zarprime in http://www.tinyportal.net/index.php?topic=33339.msg267364#msg267364 (http://www.tinyportal.net/index.php?topic=33339.msg267364#msg267364) that, with RC4, block titles don't behave well with windowbg backgound but I could not find a difference from RC3, including the themes added. Maybe the specific site has other problems too.
Title: Re: TP 1.0 RC1 and SMF 2.0 RC4
Post by: agridoc on November 05, 2010, 03:51:50 AM
A very recent post in http://www.simplemachines.org/community/index.php?topic=27642.msg2840458#msg2840458 (http://www.simplemachines.org/community/index.php?topic=27642.msg2840458#msg2840458) from Jason kiDD, who has upgraded on November3 (//http://), using the quick fix, has the same, no problems, report.

And this is, as I see, a working forum with quite some activity.
Title: Re: TP 1.0 RC1 and SMF 2.0 RC4
Post by: clothahump on November 28, 2010, 12:22:35 PM
Any idea when the download will be compatible with SMF 2.0 RC4?
Title: Re: TP 1.0 RC1 and SMF 2.0 RC4
Post by: Lesmond on November 28, 2010, 12:32:29 PM
Ichbin is working on it as we speak, but I cant give you answer to when it will be ready!