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?

October 02, 2022, 04:18:56 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 193513
  • Total Topics: 21092
  • Online today: 41
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 0
Guests: 27
Total: 27

Author Topic: Elkarte TinyPortal Testing  (Read 18426 times)

0 Members and 1 Guest are viewing this topic.

Offline lurkalot

  • Administrator
  • *
  • Posts: 7409
    • Camera Craniums
Re: Elkarte TinyPortal Testing
« Reply #40 on: February 07, 2021, 10:03:40 AM »
Add this to the bottom of Load.php if you want it to work on PHP7.2

https://github.com/PHPWatch/is_countable-polyfill/blob/master/src/is_countable.php

That worked. Thanks.  O0 Now time to play.

Offline lurkalot

  • Administrator
  • *
  • Posts: 7409
    • Camera Craniums
Re: Elkarte TinyPortal Testing
« Reply #41 on: February 07, 2021, 10:12:14 AM »
Ooh, what happened to the TP admin page with the icons, it was there last time I tried it?

Offline @rjen

  • Support Team
  • *
  • Posts: 3300
    • FJR-club Nederland
Re: Elkarte TinyPortal Testing
« Reply #42 on: February 07, 2021, 10:21:37 AM »
It’s gone (I already asked)
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Offline lurkalot

  • Administrator
  • *
  • Posts: 7409
    • Camera Craniums
Re: Elkarte TinyPortal Testing
« Reply #43 on: February 07, 2021, 10:31:36 AM »
It’s gone (I already asked)

I haven't tested it since RC1 so until today wasn't aware it had gone. Obviously I knew the admin had moved into the ElkArte admin section because it was like this in the first I tried, but then you could get back to the original TP admin page from there. You can't now.

Offline tino

  • Developer
  • *
  • Posts: 2615
Re: Elkarte TinyPortal Testing
« Reply #44 on: February 07, 2021, 10:31:49 AM »
Ooh, what happened to the TP admin page with the icons, it was there last time I tried it?

I didn’t see what it added. It’s not completely removed (yet) but as you can access everything from the top menu or the side. Then I see no need for it.

Offline lurkalot

  • Administrator
  • *
  • Posts: 7409
    • Camera Craniums
Re: Elkarte TinyPortal Testing
« Reply #45 on: February 07, 2021, 10:40:06 AM »
I always found it quite a nice touch, it's been there in TP since birth, so got rather attached to it.  ;)

Offline @rjen

  • Support Team
  • *
  • Posts: 3300
    • FJR-club Nederland
Re: Elkarte TinyPortal Testing
« Reply #46 on: February 07, 2021, 01:37:41 PM »
Just installed the latest version, but it does not seem to find any texts...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Offline tino

  • Developer
  • *
  • Posts: 2615
Re: Elkarte TinyPortal Testing
« Reply #47 on: February 07, 2021, 02:07:47 PM »
Just installed the latest version, but it does not seem to find any texts...

It 'should' do.

Or are you using non english ones? Although it should fall back to the old location.

If you go to TinyPortal\ModelSubs.php and change the loadLanguage function to this;

Code: [Select]
    public function loadLanguage($template_name, $lang = '', $fatal = true, $force_reload = false) {{{
        global $user_info, $language, $txt;
       
        if ($lang == '') {
            $lang = isset($user_info['language']) ? $user_info['language'] : $language;
        }
           
        foreach( array ( $lang, 'english' ) as $l) {
            $filePath = BOARDDIR . '/TinyPortal/Views/languages/'.$l.'/'.$template_name.'.'.$l.'.php';
            if(file_exists($filePath)) {
                require_once($filePath);
                return $lang;
            }
        }

        return \loadLanguage($template_name, $lang, $fatal, $force_reload);
       
    }}}

It might work correctly.

Offline @rjen

  • Support Team
  • *
  • Posts: 3300
    • FJR-club Nederland
Re: Elkarte TinyPortal Testing
« Reply #48 on: February 07, 2021, 02:17:50 PM »
Just removed the old install completely and installed the new package
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Offline lurkalot

  • Administrator
  • *
  • Posts: 7409
    • Camera Craniums
Re: Elkarte TinyPortal Testing
« Reply #49 on: February 07, 2021, 03:02:35 PM »
Methinks I'll start again with a fresh install of ElkArte before trying this again.