Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Custom page using .php

So I was wondering if I could use this to create a new page? And what would I have to change to do it?
CodeDownload  
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: home.php
| Author: PHP-Fusion Development Team
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once __DIR__.'/maincore.php';
require_once THEMES.'templates/header.php';

$locale = fusion_get_locale('', LOCALE.LOCALESET.'homepage.php');

require_once THEMES.'templates/global/homepage.php';

add_to_title($locale['home']);

\PHPFusion\BreadCrumbs::getInstance()->addBreadCrumb(['title' => $locale['home'], 'link' => BASEDIR.'home.php']);

$contents = [];

display_home($contents);
require_once THEMES.'templates/footer.php';



For Example. Home would be coffee. Homepage would be coffeepage

And i want to display custom content, not "display_home($contents);"

Is this possible?
Only this you need for own .php page
CodeDownload  
<?php
require_once __DIR__.'/maincore.php';
require_once THEMES.'templates/header.php';

// YOUR CODE

require_once THEMES.'templates/footer.php';

ok, so I want to add html to it, so how do i do it. Html is going to be my actual content.
Please use Google..
CodeDownload  
<?php
require_once __DIR__.'/maincore.php';
require_once THEMES.'templates/header.php';
?>
// YOUR HTML CODE
<?php
require_once THEMES.'templates/footer.php';

Thread Information
Author
Posted In
Replies
4 posts
Views
64 times
Last Post
Last updated on 6 days ago
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
Users who participated in discussion: Vyper69, RobiNN