News: Welcome to the TinyPortal Support site.

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

July 16, 2019, 02:54:33 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 188512
  • Total Topics: 20736
  • Online Today: 26
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 18
Total: 18

Author Topic: Manual Install Help - cannot find correct code in Subs.php  (Read 1230 times)

0 Members and 1 Guest are viewing this topic.

shelzmike

  • Guest
Manual Install Help - cannot find correct code in Subs.php
« on: July 28, 2008, 02:37:24 PM »
Okay, I am doing the manual install on a test server that I have and am at where I Need to edit the subs.php file from directions from the tinyportal1010-1049.mod file.

It tells me to first find:
Code: [Select]
function redirectexit($setLocation = '', $refresh = false) and replace with
Code: [Select]
function redirectexit($setLocation = '', $refresh = false, $tp_not = false)
That was easy enough, now it is telling me to find:
Code: [Select]
if ($setLocation == $scripturl) and replace with if ($setLocation == $scripturl && !$tp_not).

I am not finding anything when searching for
Code: [Select]
if (SetLocation ==$scripturl)
The only thing I am finding remotely close is:
Code: [Select]
if ($add)
                       $setLocation = $scripturl . '?' . $setLocation;

or
Code: [Select]
elseif ($add)
$setLocation = $scripturl . ($setLocation != '' ? '?' . $setLocation : '');

I am trying to install Tp 1.05.

Can anyone shed some light on this?

Thanks.

Mike



Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: Manual Install Help - cannot find correct code in Subs.php
« Reply #1 on: July 28, 2008, 02:55:29 PM »
Check this page instead and see if it get a bit easier.

http://docs.tinyportal.co.uk/index.php?topic=140.0