Template file and TPL sidebar in admin panel

Hey guys, I get this in ADMIN panel..

and I can’t resolve it. Equally, with codeshare module (Strider) I don’t get the file in the sidebar, and it’s a pain to do codeshares..

Any assistance greatly received! Running simpilot 5.5.2 as phpVMS and PHP 5.5 (I think..)

Thanks guys!

Hey! Open admin/templates/ruleregs folder and change the extension of all the .tpl files to .php (if any). After then open core/modules/Ruleregs.php file and on line 11 replace this:

$this->set('sidebar', 'ruleregs/ruleregs_sidebar');

with this:

$this->set('sidebar', 'ruleregs/ruleregs_sidebar.php');

The same philosophy should be followed for Strider’s module too.

1 Like

Thank you! I’ll try it now

Line 11 was using $render or something for each, so I managed to fix the first issue of TPL, but the sidebar isn’t showing. Can you advise?

Did you change line 11? What is it now?

This is more complex than expected.

The whole file reads:

[/size]
<?php
///////////////////////////////////////////////
///Rules and Regulations v1.2 by php-mods.eu///
/// Author php-mods.eu ///
/// Packed at 11/2/2015 ///
/// Copyright (c) 2015, php-mods.eu ///
///////////////////////////////////////////////
class Ruleregs extends CodonModule {
public function index()
{
$this->set('category', RuleregsData::getAllRuleCat());
$this->render('ruleregs.php');
}
}

Basically my mistake, I referred you to the wrong file. Can you check admin/modules/Ruleregs/Ruleregs.php? Change the line 11 of this file.

It worked, thanks! Is this/will this be updated in GitHub? But… The template file “/******/pilots/core/templates/ruleregs.php” doesn’t exist in /******/ccvgnet/public_html/pilots/core/classes/TemplateSet.class.php on line 231

-DHB

Yes.

It worked, thanks! Is this/will this be updated in GitHub? But… The template file “/******/pilots/core/templates/ruleregs.php” doesn’t exist in /******/ccvgnet/public_html/pilots/core/classes/TemplateSet.class.php on line 231

-DHB

(Found a new issue… sorry)

But anyway, thanks so much Servetas!

Got a new issue -.-

The template file “/******/pilots/core/templates/ruleregs.php” doesn’t exist in /******/ccvgnet/public_html/pilots/core/classes/TemplateSet.class.php on line 231

If you go to core/templates, is ruleregs.php there or is it named ruleregs.tpl

if it is named ruleregs.tpl, rename it to ruleregs.php

It is .php but the TemplateSet.class.php is looking for a tpl file. Do I then have to update my phpvms or is that fine?

I have no .tpl files