No announcement yet.

CMS in root directory

  • Filter
  • Time
  • Show
Clear All
new posts

  • [CMS] CMS in root directory

    I want to put my CMS page in the root directory. In order, when I enter my address to show the CMS.
    How can I do that??

    also I dont get what I must do with this setting
    Optional URL for your CMS.

    This may be specified to change the base URL for all CMS links. This is useful if you run the CMS from a location that differs from your Forum URL.

    You may specify an absolute URL such as, or a URL relative to your Forum URL. If your forum is in /forum and your CMS is at the root of your webserver then you may use ../. If you use an absolute URL the option Always use Forum URL as Base Path will have no effect for CMS pages, and the CMS url specified will always be used. If you wish to run your CMS from a location other than your Forum URL then you must ensure that the appropriate entry scripts have been set up. These include:
    • content.php or index.php
    • editor.php
    • list.php
    • widget.php

    The easiest way to do this is to create text files with the following:

    define(VB_RELATIVE_PATH, 'your_forum_path');
    chdir('./' . VB_RELATIVE_PATH);

    For example, if your forum is in /forum then /widget.php may look like:

    define(VB_RELATIVE_PATH, 'forum');
    chdir('./' . VB_RELATIVE_PATH);
    You will save me, please respond!!
    Thanks in advance!

  • #2
    This explains it a little better, and its been working for me for over a month.


    • #3
      Originally posted by bszopi View Post
      This explains it a little better, and its been working for me for over a month.
      Thank you! I think it's working correctly!


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