HTML Editor for phpFoX

Here is a little tool I think will be really handy for a lot of clients. Lev came up with this idea the other night while talking to a client but hes off for the weekend so I wanted to get my hands dirty and create this little tool till he gets back in.

What this does is give you as the admin of your site the oppurtunuity to create a new page on your site without the hassle of opening a PHP file or create a template file and to well understand how it all works. This little editor can be integrated into your admin panel and you can simply create a new page using a WYSIWYG editor so you won’t even have to know HTML. Course if you want to use HTML you can. Plus the script also allows you to use variables from the phpFoX script. So anything that starts with $VAR or $phpfox_config will be replaced on the page.

Here is an example of how it will look.

Mind you this is just a simple page and with HTML you can do anything. Notice the variables replaced the site name and the phpFoX version our demo site is running. Also you will find the URLS of these pages have SEO in mind and you will have a HTML title tag for each page to make sure search bots pick them up.

In the admin panel you can add 2 links which will connect you to this tool. Here is a screenshot.

If you want this script you will need to download it first, which you can here.

Next unzip and upload the folder view your site. Then run for example: http://www.yoursite.com/view/install.php

Once you have installed the database open the file /adminpanel/html/menu.php and then look for:

[php]

‘SITE COUNTER’ => array(”.$go.’/?action=’.page(’index’).’&source=’.page(’counter’).”,”),

[/php]

Under that you can add:

[php]

‘LAYOUT - CREATE’ => array(”. $VAR[0] .’/view/create.php’,”),
‘LAYOUT - VIEW’ => array(”. $VAR[0] .’/view/list.php’,”),

[/php]

Once thats done you should be ready to go. Login, as an admin and visit your admin panel and then click on the link LAYOUT - CREATE.

If you have any questions let me know.

Enjoy!