Jump to content

Custom pages and various scripts being turned into html tags


AUZ

Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...