Announcement

Collapse
No announcement yet.

FAQ: How to install CMS in Root, Forums in subdirectory (up to 4.1.0 only)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • WeMovie.co.uk
    replied
    The index.php I uploaded here is the one I copied from the original post in this thread, but I changed 'forums' to 'forum' and now includes that little bit of code you asked me to try. It's the same as the one in the original post.

    Unless you want my index.php which is found in my forum root but I presume that has nothing to do with this.

    Leave a comment:


  • punchbowl
    replied
    I said I noticed what may be a mistake. The op works perfectly for me. I also don't think the index.php you have posted here is the same as the one you have uploaded. There is no back slash anywhere in any of the files and yet your error specifically mentions one!

    http://www.wemovie.co.uk/error_log

    So please check that.

    Leave a comment:


  • WeMovie.co.uk
    replied
    i just posted my index.php in my previous post...

    oh my days im so confused.
    i thought you just said to add ?> to my files? do i need that or not.
    i don't understand.

    Leave a comment:


  • punchbowl
    replied
    anyway post you index.php please so I can point out the typo in line 2. You've got a \ instead of a / imo.

    PHP Code:
    ?> 
    wasn't the issue imo

    Leave a comment:


  • WeMovie.co.uk
    replied
    content.php
    Code:
    <?php
    define(VB_RELATIVE_PATH, 'forum');
    chdir('./' . VB_RELATIVE_PATH);
    require('content.php'); 
    ?>
    editor.php
    Code:
    <?php
    define(VB_RELATIVE_PATH, 'forum');
    chdir('./' . VB_RELATIVE_PATH);
    require('editor.php'); 
    ?>
    index.php
    Code:
    <?php
    define(VB_RELATIVE_PATH, 'forum');
    chdir('./' . VB_RELATIVE_PATH);
    require('content.php'); 
    ?>
    list.php
    Code:
    <?php
    define(VB_RELATIVE_PATH, 'forum');
    chdir('./' . VB_RELATIVE_PATH);
    require('list.php'); 
    ?>
    widget.php
    Code:
    <?php
    define(VB_RELATIVE_PATH, 'forum');
    chdir('./' . VB_RELATIVE_PATH);
    require('widget.php'); 
    ?>

    Leave a comment:


  • WeMovie.co.uk
    replied
    Originally posted by punchbowl View Post
    just noticed what may be a mistake:

    index.php
    PHP Code:
    <?php
    define
    (VB_RELATIVE_PATH,  'forums');
    chdir('./' VB_RELATIVE_PATH);
    require(
    'content.php');  
    ?>
    note the
    PHP Code:
    ?> 
    at the end. This should be at the end of all five files.
    I didn't have that added. How come that isn't included with the code in the OP?
    It still isn't working.

    Leave a comment:


  • punchbowl
    replied
    can you post the content of all five files please? index.php especially

    Leave a comment:


  • WeMovie.co.uk
    replied
    Haha I decided against wordpress cause I'd like to just use the vB cms on the forum home.

    The forum works fine - http://www.wemovie.co.uk/forum

    The php files have been uploaded again. I'm still receiving the same error - http://www.wemovie.co.uk

    Leave a comment:


  • punchbowl
    replied
    just noticed what may be a mistake:

    index.php
    PHP Code:
    <?php
    define
    (VB_RELATIVE_PATH'forums');
    chdir('./' VB_RELATIVE_PATH);
    require(
    'content.php'); 
    ?>
    note the
    PHP Code:
    ?> 
    at the end. This should be at the end of all five files.

    Leave a comment:


  • punchbowl
    replied
    Does your forum work properly?

    Upload the five files to your root again. Don't delete anything. Don't try install wordpress in the meantime.

    Leave a comment:


  • WeMovie.co.uk
    replied
    As I said in the post above, I removed those php files from my root directory because it wasn't working.

    Leave a comment:


  • punchbowl
    replied
    Well they aren't there now.

    http://www.wemovie.co.uk/

    Leave a comment:


  • WeMovie.co.uk
    replied
    That's what I did.
    I've removed them now though because it wasn't working.
    My forum is located at public_html/forum/
    I uploaded the 5 php files into public_html/

    I'm not supposed to delete those files from the forum root before I upload to the root am I? Because I didn't do that.

    Leave a comment:


  • punchbowl
    replied
    Go back and read the instructions, specifically pay attention to part three "Then you will upload all those five files into your root directory"

    at the moment you don't have any of the files in the root directory. Note it doesn't say forum root directory just directory so if you have:

    /site/public_html/ and /site/public_html/forum

    then the files need to go into the first not the second location

    Leave a comment:


  • WeMovie.co.uk
    replied
    The index.php file contains the contents of what you included in the first post??
    Code:
    <?php
    define(VB_RELATIVE_PATH, 'forum');
    chdir('./' . VB_RELATIVE_PATH);
    require('content.php');
    The index.php file that is found in my forum's root is:
    Code:
    <?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.0.4 Patch Level 1 - Licence Number 1234567890 || # ---------------------------------------------------------------- # || || # Copyright 2000-2010 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/  /**  * If you want to move this file to the root of your website, change this  * line to your vBulletin directory and uncomment it (delete the //).  *  * For example, if vBulletin is installed in '/forum' the line should  * state:  *  *    define('VB_RELATIVE_PATH', 'forum');  *  * Note: You may need to change the cookie path of your vBulletin  * installation to enable your users to log in at the root of your website.  * If you move this file to the root of your website then you should ensure  * the cookie path is set to '/'.  *  * See 'Admin Control Panel  *    ->Cookies and HTTP Header Options  *      ->Path to Save Cookies  */  //define('VB_RELATIVE_PATH', 'forums');   // Do not edit. if (defined('VB_RELATIVE_PATH')) {     chdir('./' . VB_RELATIVE_PATH); }   /**  * You can choose the default script here.  Uncomment the appropriate line  * to set the default script.  Note: Only uncomment one of these, you must  * add // to comment out the script(s) that you DO NOT want to use as your  * default script.  *  * You can choose the default script even if you do not plan to move this  * file to the root of your website.  */  /**  * Use the CMS as the default script:  */  require('content.php');   /**  * Use the forum as the default script:  */  // require('forum.php');   /*======================================================================*\ || #################################################################### || # Downloaded: 14:36, Wed Jul 14th 2010 || # CVS: $RCSfile$ - $Revision: 31201 $ || #################################################################### \*======================================================================*/
    As far as I know my config.php file is fine. My host did it. The forum is working fine.
    Last edited by WeMovie.co.uk; Thu 15th Jul '10, 3:26am.

    Leave a comment:

widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X