CMS start page in different folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sinucello
    Senior Member
    • Mar 2006
    • 133
    • 4.2.X

    [CMS] CMS start page in different folder

    Hi,

    I have installed the vbulletin suite in a "forum" subfolder on my server. The forum start page is mysite.com/forum/index.php.
    Until now, I had a TYPO3 CMS running at mysite.com/index.php but I`d like to switch mysite.com/index.php to the vBulletin CMS start page. How could I achieve this:

    mysite.com/ (/var/www/mysite.com/) -> vB CMS page with articles and latest posts etc.
    mysite.com/forum/ (/var/www/mysite.com/forum/) -> vB forum (unchanged, I have tons of external URLs pointing to it)

    Symlinks?

    thank you - all the best,
    Sacha
    Thermomix, Rezepte und Küchenmaschinen
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74123

    #2
    Settings -> Options -> Content Management.

    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 http://www.example.com/, 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:

    <?php
    define(VB_RELATIVE_PATH, 'your_forum_path');
    chdir('./' . VB_RELATIVE_PATH);
    require('script.php');


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

    <?php
    define(VB_RELATIVE_PATH, 'forum');
    chdir('./' . VB_RELATIVE_PATH);
    require('widget.php');
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • sinucello
      Senior Member
      • Mar 2006
      • 133
      • 4.2.X

      #3
      great, thank you.
      Thermomix, Rezepte und Küchenmaschinen

      Comment

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