Jump to content

Lenny Warren

Clients
  • Posts

    331
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Lenny Warren

  1. 30 minutes ago, Mike John said:

    Is there a reason to keep the index.html file still though? The index.php will just show the Portal all the time.

    Not really, but I noticed it was showing my server default page, which made me wonder why that was happening. All seems fine now, so happy.

    Thanks again @Mike John :thumbsup:

  2. I seemed to have managed to get it to work, used

    $path    = './httpdocs/forums/';

    and it seemed to work. Occasionally it doesn't though, and seems to load the index.html page instead of the index.php.

    Would there be any reason for that?

  3. I'm a bit confused... (doesn't take much)

    My forum is in /forums and I've placed the home.php script in my root directory, /httpdocs

    I'm presuming I rename home.php to index.php and the file looks like this...

     

    <?php
    /**
     * @package        Portal
     * @author        <a href='http://www.devfuse.com'>DevFuse</a>
     * @copyright    (c) 2015 DevFuse
     */
    $_SERVER['SCRIPT_FILENAME']    = __FILE__;
    /**
     * Path to your IP.Board directory with a trailing /
     */
    $path    = './httpdocs/forums/';

    $_GET['app']        = 'portal';
    $_GET['module']        = 'portal';
    $_GET['controller']    = 'portal';

    require_once $path . 'init.php';
    \IPS\Dispatcher\Front::i()->run();

     

    Or should the path look like:

    $path    = 'http://www.militariacollectors.network/forums/';

     

    Neither seem to wor, tearing my hair out here... :(

     

×
×
  • Create New...