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

Recent

Welcome to TinyPortal. Please login or sign up.

April 19, 2024, 08:45:26 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,165
  • Total Topics: 21,219
  • Online today: 266
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 195
  • Total: 196
  • tino

Elkarte TinyPortal Testing

Started by tino, January 05, 2021, 01:55:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lurkalot


lurkalot

Ooh, what happened to the TP admin page with the icons, it was there last time I tried it?

@rjen

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

lurkalot

Quote from: @rjen on February 07, 2021, 05:21:37 PM
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.

tino

Quote from: lurkalot on February 07, 2021, 05:12:14 PM
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.

lurkalot

I always found it quite a nice touch, it's been there in TP since birth, so got rather attached to it.  ;)

@rjen

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

tino

Quote from: @rjen on February 07, 2021, 08:37:41 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;

    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.

@rjen

Just removed the old install completely and installed the new package
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

Methinks I'll start again with a fresh install of ElkArte before trying this again.