TinyPortal

Development => Support => Topic started by: darkangel on July 29, 2014, 11:45:18 AM

Title: TP and SMF 2.0.8
Post by: darkangel on July 29, 2014, 11:45:18 AM
Is there a newer version of this for  2.0.8 of SMF?

I am right now trying to install it into fresh 2.0.8 forum. I have had many troubles since going to 2.0.8 too I might add.

Anyway I have fresh files uploaded to my stores forum, no other packages installed at all since I  uninstalled all of them to upload those fresh files.

TP is the only one I have even tried to install right now and get this error:

13. Execute Modification ./Sources/QueryString.php Test Failed
Replace .sources/QueryString.php test failed

That is the only failed part for this package

The code that it fails to insert is:

./Sources/QueryString.php
Find: [Select]

// If $scripturl is set to nothing, or the SID is not defined (SSI?) just quit.

Add Before: [Select]

// A better place
if (function_exists('tp_addcopy'))
$buffer = tp_addcopy($buffer);


Find: [Select]

// Let's do something special for session ids!
if (defined('SID') && SID != '')
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?(?:' . SID . ';)((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html?' . SID . '\$2\"'", $buffer);
else
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);

Replace With: [Select]

// Let's do something special for session ids!
if (defined('SID') && SID != '')
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?(?:' . SID . ';)((?:board|topic|page|cat)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html?' . SID . '\$2\"'", $buffer);
else
$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic|page|cat)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);

[/code

I have tried emulating to 2.0.4 (that is the highest it lists at SMF download section) or do they still have an older one?

I can manually do the edits, which I will do them all and not use the installer but will it cause problems.
Title: Re: TP and SMF 2.0.8
Post by: Skhilled on July 30, 2014, 03:37:44 PM
I just tried it myself onmy server and get the same...
Title: Re: TP and SMF 2.0.8
Post by: lurkalot on July 30, 2014, 06:59:31 PM
Just make the edit manually, and all will work fine with 2.0.8. See http://www.tinyportal.net/index.php?topic=35325.0
Title: Re: TP and SMF 2.0.8
Post by: darkangel on July 30, 2014, 07:34:07 PM
LOL, OK I did the manual update. It runs right so am happy. Thanks
Title: Re: TP and SMF 2.0.8
Post by: ZarPrime on August 01, 2014, 12:54:14 AM
Darkangel,

This issue was caused by some changes between SMF versions 2.O7 and 2.08. should be fixed in the new update for Tinyportal when we finally get it released. This will be version 1.1 of TP but I don't know when it will be released to the public. However, since you are a beta tester, you should have access to the release.

You can read more about it in this topic --- http://www.tinyportal.net/index.php?topic=35343.0
Title: Re: TP and SMF 2.0.8
Post by: darkangel on August 01, 2014, 01:55:23 AM
Thanks sugar, I followed the link, got the manual edits and yuppers....that is the code I inserted into the querystring file. I had gotten it from the TP zip file.