1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 broke a 3rd party script (Kotomi)

Discussion in 'XenForo Questions and Support' started by ExpertPixels.com, Jun 23, 2013.

  1. ExpertPixels.com

    ExpertPixels.com Well-Known Member

    Hey all,

    I have finally given up trying to work out how to push the xf forum route to /forums/ (Like how Xenporta does it) so i decided to attempt a previous method that brogan pointed out to me a while back and that was to use a 3rd party script called Kotomi found: here

    Now somewhere since 1.2 the script seems to have broken somehow.. I can't suss this out myself as i am only just learning XF from scratch.. but have had this working like such beforehand:

    mysite.com/kotomi-index.php <--- Custom page within the xf wrapper
    mysite.com/community/ <-- XF being installed here

    here is the code i believe to be causing the issues.. (the actually issue now is that the wrapper "header and footer" is not being displayed nor is the stylesheet being loaded)..

    PHP:
    <?php
     
    $startTime 
    microtime(true);
    $kotomi_indexFile "community";
    $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";
    Thanks in advance for any asistance on this topic.. I am watching / waiting with great interest in this, Cheers.

    Regards, Darren
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Use the route filter feature:

    http://xenforo.com/community/threads/route-filters.47946/

    Kotomi has nothing to do with changing existing routes.
     

Share This Page