Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 09, 2022, 05:50:46 AM

Login with username, password and session length
Members
  • Total Members: 3842
  • Latest: Kokoro
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 57
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 1
Guests: 51
Total: 52

Author Topic: TinyPortal Standalone  (Read 11488 times)

0 Members and 1 Guest are viewing this topic.

Online @rjen

  • Support Team
  • *
  • Posts: 3285
    • FJR-club Nederland
Re: TinyPortal Standalone
« Reply #30 on: December 28, 2021, 11:59:23 AM »
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

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Online @rjen

  • Support Team
  • *
  • Posts: 3285
    • FJR-club Nederland
Re: TinyPortal Standalone
« Reply #31 on: December 28, 2021, 12:08:57 PM »
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

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline tino

  • Developer
  • *
  • Posts: 2613
Re: TinyPortal Standalone
« Reply #32 on: December 28, 2021, 01:32:48 PM »
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.

Offline tino

  • Developer
  • *
  • Posts: 2613
Re: TinyPortal Standalone
« Reply #33 on: December 28, 2021, 01:53:01 PM »
If you add this after the require_once('Settings.php') line then it loads the TinyPortal Menu

Code: [Select]

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

Online @rjen

  • Support Team
  • *
  • Posts: 3285
    • FJR-club Nederland
Re: TinyPortal Standalone
« Reply #34 on: December 28, 2021, 03:05:12 PM »
If you add this after the require_once('Settings.php') line then it loads the TinyPortal Menu

Code: [Select]

$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

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Online @rjen

  • Support Team
  • *
  • Posts: 3285
    • FJR-club Nederland
Re: TinyPortal Standalone
« Reply #35 on: December 28, 2021, 03:09:01 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

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline tino

  • Developer
  • *
  • Posts: 2613
Re: TinyPortal Standalone
« Reply #36 on: December 30, 2021, 03:32:47 AM »
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.