AUZ Posted October 11, 2013 Report Share Posted October 11, 2013 Hello all, Some of my scripts are converting to html tags instead of php for some reason. When I open up the page in the code editor, the php code is still there but for some reason there is html code injected between the php code. Its happening on custom pages etc, Any idea why this would be happening ? Any advice, would be mostly appreciated. Thanks in advance Quote Link to comment Share on other sites More sharing options...
EastCoastHops Posted October 19, 2013 Report Share Posted October 19, 2013 I suggest creating your pages through the ftp instead of the admin panel. Below are the instructions on doing so In your File Manager go to Core > Moduals > and create a folder for the page name you want. For example we want to make a fleet page so we will create a new directory names Fleet (first letter MUST be capital) Navigate into the Directory you made A.K.A Fleet and create a new file name Fleet.php Past the following script into the Fleet.php file <?php class Fleet extends CodonModule { function index() { $this->show('fleet'); } } <<<End of Script Don't Insert This Line>>> Now save this file and navigate into your active skin file (/lib/skins/skinname) Create a file named fleet.tpl (all lowercase) This fleet.tpl file is what you will edit to show your page content. This should fix the html tag issue. Hope I helped! Cheers! Brendan 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.