This is mainly intended for developer use. It lets you embed a non-XenForo/non-MVC script (just about any PHP script should work) into the XenForo page and use XenForo functions such as permissions while still accessing the script from a standard URL (the XenForo route system is pretty much disregarded).
So using this addon you can do a very basic integration of pretty much anything into XenForo - be it a blog, gallery, store, standalone script, etc. Probably even vBulletin if you wanted
This example shows the header (top block of code) and footer (bottom line) you need to add to your existing script:
$kotomi_indexFile should be updated to the relative directory where XenForo's index.php can be found.
$kotomi_container can be set to false for a raw integration (still passes through XenForo's framework etc, just without any XenForo HTML/CSS/templates being applied).
The example gives the following output:
(Notice how the URL is a real PHP script without routes being involved at all; it could be in a completely different directory if you wanted.)
Navigation/breadcrumbs unfortunately need to be added and configured manually.
Also removing the title text from within the page itself is as simple as editing the dark_kotomi template to your liking.
So using this addon you can do a very basic integration of pretty much anything into XenForo - be it a blog, gallery, store, standalone script, etc. Probably even vBulletin if you wanted
This example shows the header (top block of code) and footer (bottom line) you need to add to your existing script:
PHP:
<?php
$startTime = microtime(true);
$kotomi_indexFile = "./";
$kotomi_container = true;
$fileDir = dirname(__FILE__)."/{$kotomi_indexFile}";
require "{$fileDir}/library/Dark/Kotomi/KotomiHeader.php";
echo "
<html>
<head>
<title>kotomi test</title>
</head>
<body>
Hello world!
</body>
</html>";
require "{$fileDir}/library/Dark/Kotomi/KotomiFooter.php";
$kotomi_indexFile should be updated to the relative directory where XenForo's index.php can be found.
$kotomi_container can be set to false for a raw integration (still passes through XenForo's framework etc, just without any XenForo HTML/CSS/templates being applied).
The example gives the following output:
(Notice how the URL is a real PHP script without routes being involved at all; it could be in a completely different directory if you wanted.)
Navigation/breadcrumbs unfortunately need to be added and configured manually.
Also removing the title text from within the page itself is as simple as editing the dark_kotomi template to your liking.