CapitalConnectVirtualGroup Posted March 5, 2016 Report Share Posted March 5, 2016 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! Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted March 5, 2016 Moderators Report Share Posted March 5, 2016 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 Quote Link to comment Share on other sites More sharing options...
CapitalConnectVirtualGroup Posted March 6, 2016 Author Report Share Posted March 6, 2016 Thank you! I'll try it now Quote Link to comment Share on other sites More sharing options...
CapitalConnectVirtualGroup Posted March 6, 2016 Author Report Share Posted March 6, 2016 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? Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted March 6, 2016 Moderators Report Share Posted March 6, 2016 Did you change line 11? What is it now? Quote Link to comment Share on other sites More sharing options...
CapitalConnectVirtualGroup Posted March 6, 2016 Author Report Share Posted March 6, 2016 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'); } } Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted March 6, 2016 Moderators Report Share Posted March 6, 2016 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. Quote Link to comment Share on other sites More sharing options...
CapitalConnectVirtualGroup Posted March 8, 2016 Author Report Share Posted March 8, 2016 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 Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted March 8, 2016 Moderators Report Share Posted March 8, 2016 Yes. Quote Link to comment Share on other sites More sharing options...
CapitalConnectVirtualGroup Posted March 8, 2016 Author Report Share Posted March 8, 2016 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! Quote Link to comment Share on other sites More sharing options...
CapitalConnectVirtualGroup Posted March 11, 2016 Author Report Share Posted March 11, 2016 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 Quote Link to comment Share on other sites More sharing options...
web541 Posted March 11, 2016 Report Share Posted March 11, 2016 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 Quote Link to comment Share on other sites More sharing options...
CapitalConnectVirtualGroup Posted March 12, 2016 Author Report Share Posted March 12, 2016 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? Quote Link to comment Share on other sites More sharing options...
CapitalConnectVirtualGroup Posted March 12, 2016 Author Report Share Posted March 12, 2016 I have no .tpl files Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.