Announcement

Collapse
No announcement yet.

FAQ: How to install CMS in Root, Forums in subdirectory

Collapse
X
Collapse
  •  

  • FAQ: How to install CMS in Root, Forums in subdirectory

    Have you been pulling out your hair trying to figure out how in the world to simply install the vBulletin Suite's CMS or "portal" page as your front page in the root directory (e.g. http://www.site.com ) and your forums in the forums directory? (e.g. http://www.site.com/forums/ )

    Well, here's the How To guide, courtesy of me after trying to figure what all the confusing instructions in 48 different places meant. I've just done this clean install on a fresh site and it appears that it works...

    1) Create a "forums" directory off the root (or call it "forum" if you prefer, whatever). If you're a novice, the root is the top level of your web site or http://www.site.com in this example case. Using FTP it's /home/sitename/public_html/ or something similar like:

    /home/sitename/www/

    but you get the point.

    2) Upload the entire vB4 Suite into that "forums" directory, not into the root, and install into that /forums/ directory. That would be /home/sitename/public_html/forums/

    NOTE: Install the sample CMS content. You can delete it later but at least you can tell if your install works properly.

    3) The manual entry here explains the same thing although hopefully this will make it a little clearer for you:

    http://www.vbulletin.com/docs/html/o...tentmanagement

    What you need to do is create five blank text files called:

    - content.php
    - editor.php
    - list.php
    - widget.php
    - index.php.

    If your forum directory is called "forums", you can copy the exact text corresponding to each file into that file, e.g. the four lines below content.php will be copied into the content.php file. Then you will upload all those five files into your root directory: /home/fixxeraccount/public_html/

    Note: If you've installed your vb forum into a directory other than one called "forums", just replace the red "forums" text with "forum" or whatever directory you use for each of the five files below.

    If you need to understand what is going on, all these files are telling the browser that the files it needs to run the CMS portion in the back end are really contained in your forums directory so use them... but still output the result in this directory, the root or front page of your web site.

    content.php

    PHP Code:
    <?php
    define
    (VB_RELATIVE_PATH'forums');
    chdir('./' VB_RELATIVE_PATH);
    require(
    'content.php');
    editor.php

    PHP Code:
    <?php
    define
    (VB_RELATIVE_PATH'forums');
    chdir('./' VB_RELATIVE_PATH);
    require(
    'editor.php');
    index.php

    PHP Code:
    <?php
    define
    (VB_RELATIVE_PATH'forums');
    chdir('./' VB_RELATIVE_PATH);
    require(
    'content.php');
    list.php

    PHP Code:
    <?php
    define
    (VB_RELATIVE_PATH'forums');
    chdir('./' VB_RELATIVE_PATH);
    require(
    'list.php');
    widget.php

    PHP Code:
    <?php
    define
    (VB_RELATIVE_PATH'forums');
    chdir('./' VB_RELATIVE_PATH);
    require(
    'widget.php');
    4) In the vBulletin AdminCP, go to Settings > Options > Content Management

    This is how I've set this up - the site tab URL is the key to keep the CMS in the root. I am only listing the important fields:

    CMS URL: http://www.site.com
    Default Home Page: 1-Index
    Site Tab URL:

    5) In the vBulletin AdminCP, go to Settings > Options > Site Name / URL / Contact Details

    Again, I am only listing the important fields:

    Forum URL: http://www.site.com/forums
    HomePage URL: http://www.site.com

    6) Get a beer or something harder if you've tried doing this yourself another way first. It's done.

    clear.gif
    Attached Files

    • ez4arab
      #20
      ez4arab commented
      Editing a comment
      nice job I like it

    • malmazan
      #21
      malmazan commented
      Editing a comment
      Is there not a simpler "official" way of of doing this a year later from the admin CP?

    • too_cool_3
      #22
      too_cool_3 commented
      Editing a comment
      *** THIS GUIDE IS ONLY VALID FOR UP TO VERSION 4.1.0 - PLEASE SEE THIS LINK FOR INSTRUCTIONS FROM 4.1.1 ONWARDS ***

      Perhaps a mod should update the article to state this.
    Posting comments is disabled.

About the Author

Collapse

slinky eat, drink, sleep, work Find out more about slinky

Article Tags

Collapse

advanced (5) album bits (1) android (2) api (29) array (17) beginner (17) blog (4) calendar (2) cms (2) Custom (1) forum (3) forums (4) Intermediate (7) iphone (3) Logo (1) mapi (30) methods (10) mobile (34) sections (1) security (2) style (2) tags (1) threads (4) vb5howto (5) vBulletin (5)

Latest Articles

Collapse

  • Managing CMS Section and Content
    by Don Kuramura
    Here's a quick Visual Guide on how Manage Sections in the new CMS.

    1. Editing a Section: If you have permissions to manage a Section, as you hover over the Section title, a pencil icon will display.

    After clicking the pencil icon, you will be taken to the Section Edit page. Here's what you will see:

    2. Section Name:
    Enter the Section Name
    3. SEO URL Alias: This is the SEO Friendly URL. By default, if this is blank, the system will automatically copy the section title.
    4. Section Layout: For each section you can define an individual section layout.
    ...
    Tue 11th Mar '14, 2:04pm
  • How to Create a New Article
    by Don Kuramura
    Here's a quick visual guide on how to create a new article with the CMS.

    1. Create New Article Button: Navigate to the section you want the article to be published in. Click on the “Create a New Article” button. This will open an article form.


    2. Article Title: In the "Add/Edit Article" screen, enter the title of your article in the “Title” textbox.
    ...
    Tue 11th Mar '14, 2:04pm
  • Promoting Articles from the Forums
    by Don Kuramura
    One of the innovative new features on vBulletin 4.0 Publishing Suite is the cross-publishing "Promote to Article" functionality. In the spirit of promoting content discovery, we wanted to create features that will allow content to flow between Forums, Blogs, and Articles. For example, there might be a really popular post in the forums, but unfortunately it is buried inside page 13 of a thread. We will now have an option (if you have permissions) to “promote” a forum (or blog) post as a new artic...
    Tue 11th Mar '14, 2:04pm
  • Welcome to the new CMS. Read me first.
    by Don Kuramura
    Welcome to the new CMS. Here's a quick guide of the different areas of this page.

    1. Section Navigation Widget. This widget allows you to go to different sections. The "plus icon" means that this section has sub-sections. Clicking on the "plus icon" will display the sub-sections. ...
    Tue 11th Mar '14, 2:04pm
  • Recovering a hacked vBulletin Site
    by TheLastSuperman
    Symptoms

    Having your site hacked is something no owner wants to experience due to the fact it takes quite a bit of effort to fix, often times requiring payment to a experienced third-party when a owner feels inundated by the sheer amount of work required to troubleshoot and remedy the situation.
    • Site has been defaced - This is the most blatant form of hacking where your sites pages have been replaced with a very disruptive and sometimes rude message from the hacker themselves.
    ...
    Tue 12th Jun '12, 1:37am
  • Issues After Upgrading
    by TheLastSuperman
    If your running a completely default forum upgrading is a very simple process. Many sites however run third-party add-ons and even use a custom style therefor when things change between older and newer
    Thu 24th May '12, 12:02pm
Working...
X