Announcement

Collapse
No announcement yet.

CMS start page in different folder

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

  • [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

  • #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 customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #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...
      X