EOSERV Forum > WebCP > Adding pages to webcp
Page: << 1 >>
Adding pages to webcp
Author Message
Post #203994 Adding pages to webcp

I went to go add additional pages to my webcp like a page for rules an such I ran a rules.php code that has runs but won't bring up the rules.htm page I have setup inside the tpl page with everything else instead I get just a template screen that shows the page name but no words that are in my rules.htm page. I am unsure if I am missing something, I know it's reading the php script but is there something else? I have included my code any help would be great thanks 


rules.php

<?php

$pagetitle = 'Server Rules';

require 'common.php';

$tpl->Execute('rules');


rules.htm

<h2>Rules</h2>

<hl>

<p></p>

Welcome to ******* Here are the rules</br>


So any help would be great thanks again hope we can find a solution 

6 years, 50 weeks ago
Post #203997 Re: Adding pages to webcp

This tells me your php file is in the correct folder, but maybe your htm file isn't. Check that you have put it in tpl/green/. 

6 years, 50 weeks ago
Post #203998 Re: Adding pages to webcp

I actually firgured it out, I moved a copy of rules.php into the complied folder, then I noticed that rules was using .html I changed it to .htm an it seemed to fix the issue. So is that a weird fluke with webcp or is this something else going on at the core?

6 years, 50 weeks ago
Post #203999 Re: Adding pages to webcp

It was most likely your file extention was simply wrong.

6 years, 50 weeks ago
Post #204000 Re: Adding pages to webcp

So I'm assuming webcp won't read anything but .htm an .php? An a few others obviously just so I'm aware 

6 years, 50 weeks ago
Page: << 1 >>

EOSERV Forum > WebCP > Adding pages to webcp