TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

December 11, 2024, 05:56:00 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,443
  • Total Topics: 21,252
  • Online today: 88
  • Online ever: 6,457 (November 30, 2024, 02:40:09 PM)
Users Online
  • Users: 0
  • Guests: 47
  • Total: 47

TinyPortal Standalone

Started by tino, June 09, 2018, 06:34:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

@rjen

I put the latest file in the root of my test forum (2.0.19) and it works for me when logged in.
However when a guest accesses the page he gets a white page ( try: https://test.fjr-club.nl/TPstandalone.php)

Then there are two observations:

1. When accessing TPstandalone the Tinyportal menu option is missing...

2. There are some encoding issues on the page: see example

Is this the intended install option? I thought it was also intended to be able to put the file in a different folder / location?

What is needed to make that work?


Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

On SMF2.1 it works for guests (try: https://test2.fjr-club.nl/TPstandalone.php)

But when I am logged in as admin it takes 30 seconds to load, where all other pages load fine...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

tino

The menu option is missing due to the way it loads, well TinyPortal loads.

Encoding issues, I don't know what's causing that as it's the same calls as SMF makes, unless there is a section of code where the encoding type is set not called.

What error's do you get for the guest access?

To put it where ever you like you need to include Settings.php and TPortal.php correctly. Whatever that path is.

tino

If you add this after the require_once('Settings.php') line then it loads the TinyPortal Menu



$txt['tp-tphelp']   = 'TinyPortal';
$context['TPortal'] = array();

@rjen

Quote from: tino on December 28, 2021, 08:53:01 PM
If you add this after the require_once('Settings.php') line then it loads the TinyPortal Menu



$txt['tp-tphelp']   = 'TinyPortal';
$context['TPortal'] = array();


that worked on 2.1, but not on 2.0.19
Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

Quote from: tino on December 28, 2021, 08:32:48 PM
What error's do you get for the guest access?


Just checked the website error log: no errors logged that I can find
Running Latest TP on SMF2.1 at: www.fjr-club.nl

tino

Quote from: @rjen on December 28, 2021, 10:09:01 PM
Quote from: tino on December 28, 2021, 08:32:48 PM
What error's do you get for the guest access?


Just checked the website error log: no errors logged that I can find

I can't recreate this one, loads fine as a guest or user.