Announcement

Collapse
No announcement yet.

Wrong Forum URL

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

  • [Forum] Wrong Forum URL

    I have set the forum URL to example.com/forum in admin CP, but this shows the CMS

    The forum seems to be at example.com/forum/forum.php

    This screws up all my members' bookmarks and links.

    What I want is the forum to be at example.com/forum and the home page to be at example.com

    Is this possible?

  • #2
    Go to your index.php page and change this area of the file to look like this:
    Code:
    /**
     * Use the CMS as the default script:
     */
    
    // require('content.php');
    
    
    /**
     * Use the forum as the default script:
     */
    
    require('forum.php');

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment


    • #3
      That makes the forum example.com/forum but does not help with the CMS, which I want to be at the root, ie so the home page is at the root, which you would expect.

      Comment


      • #4
        Move the index.php into the root and follow the instructions at the top to set path to forums

        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, 'forum');

        Comment


        • #5
          But according to this, that is not a good solution:

          http://www.vbulletin.com/forum/showt...=1#post1925351

          ???

          Comment


          • #6
            besides, when I try that and navigate to example.com/index.php I get this:


            Warning: require(content.php) [function.require]: failed to open stream: No such file or directory in /data02/pjt/public_html/xxxx/index.php on line 56

            Fatal error: require() [function.require]: Failed opening required 'content.php' (include_path='.:/usr/lib/php') in /data02/pjt/public_html/xxxx/index.php on line 56

            Comment


            • #7
              Can you post the contents of your index.php file please
              Vote for:

              - *Admin Settable Paid Subscription Reminder Timeframe*
              -
              *PM - Add ability to reply to originator only*
              - Add Admin ability to auto-subscribe users to specific channel(s)
              - "Quick Route" Interface...

              Comment


              • #8
                here you go:

                Code:
                <?php
                /*======================================================================*\
                || #################################################################### ||
                || # vBulletin 4.0.2 Patch Level 1 - Licence Number xxxxx
                || # ---------------------------------------------------------------- # ||
                || # 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, 'forum');
                
                
                // 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: 06:18, Tue Feb 23rd 2010
                || # CVS: $RCSfile$ - $Revision: 31201 $
                || ####################################################################
                \*======================================================================*/
                Last edited by Lynne; Tue 23 Feb '10, 8:30am. Reason: license number removed

                Comment


                • #9
                  Have you for a link to your site also? Sorry, meant to ask in last post...
                  Vote for:

                  - *Admin Settable Paid Subscription Reminder Timeframe*
                  -
                  *PM - Add ability to reply to originator only*
                  - Add Admin ability to auto-subscribe users to specific channel(s)
                  - "Quick Route" Interface...

                  Comment


                  • #10
                    here:

                    (EDIT: redunt URL removed : /forumtestvb4/)

                    problem:

                    http://cafesaxophone.com/index.php
                    Last edited by Mermaid; Sat 24 Apr '10, 12:56am. Reason: test URL no longer there

                    Comment


                    • #11
                      define(VB_RELATIVE_PATH, 'forumtestvb4');
                      Vote for:

                      - *Admin Settable Paid Subscription Reminder Timeframe*
                      -
                      *PM - Add ability to reply to originator only*
                      - Add Admin ability to auto-subscribe users to specific channel(s)
                      - "Quick Route" Interface...

                      Comment


                      • #12
                        Ok, that works,

                        BUT if I then click on the forum tab, then click on the home tab, it doesn't go back to the root.

                        Comment


                        • #13
                          Try setting this to point to the root index.php file:

                          AdminCP > Settings > Options > Content Management > Site Tab URL
                          Vote for:

                          - *Admin Settable Paid Subscription Reminder Timeframe*
                          -
                          *PM - Add ability to reply to originator only*
                          - Add Admin ability to auto-subscribe users to specific channel(s)
                          - "Quick Route" Interface...

                          Comment


                          • #14
                            Thanks, that works from the forum, but the internal links in the CMS go back into the forum directory
                            Last edited by Mermaid; Sat 20 Mar '10, 10:11am.

                            Comment


                            • #15
                              Cool just like vBAdvanced, sorry for posting, just need more info on this too!

                              Comment

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