Announcement

Collapse
No announcement yet.

Change forum.php to index.php

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

  • NashChristian
    replied
    This still REALLY doesn't work, right? Except basically as a redirect when you enter the site through the front door. After that, anytime you click on content from the CMS, it will send you straight to the site.com/forums/content.php? Which is not what I want. I want all CMS content to come from the root directory and the forums content to come from the forums directory. Apparently that is not possible the way things currently stand with vB. Am I correct?

    Sadly, as a work-around, I guess I'm going to dump my whole FORUMS directory into my root folder (which I hate to do - because it's MESSY), that way the CMS will appear to come from the root, and not just be a silly FORUM add-on.

    This really has been a very complicated and disappointing transition!

    Leave a comment:


  • Beth & Rod
    replied
    Hi, here's the file modifications:
    Code:
    *    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');
    Also, I have made sure the cookie paths are ok as well. This file is in the root of the site not in the forums folder, is that correct to do so?

    Leave a comment:


  • Trevor Hannant
    replied
    Did you just move the index.php file and not edit the code inside it or did you change these details:

    Code:
    /**
     * 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);
    }

    Leave a comment:


  • Beth & Rod
    replied
    I've got it so that the forums are now just forums/index.php and the cms is at the root, however CSS/Images are broken, when I view the HTML the CSS and images think that the data in the forum folder are in the root which they are not. How do I resolve this?

    Leave a comment:


  • Beth & Rod
    started a topic [CMS] Change forum.php to index.php

    Change forum.php to index.php

    Currently with CMS/vB 4.0.1 the structure is set up like this:

    site.com/forums/content for the CMS
    site.com/forums/forums.php for the forums

    I want it the way it used to be which is
    site.com/forums/index.php for the forums
    site.com/ for the CMS

    How do I do this?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X