Announcement

Collapse
No announcement yet.

CMS in root directory

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

  • alfisti
    replied
    Originally posted by bszopi View Post
    This explains it a little better, and its been working for me for over a month.

    http://www.vbulletin.com/forum/proje...=14#note142527
    Thank you! I think it's working correctly!

    Leave a comment:


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

    http://www.vbulletin.com/forum/proje...=14#note142527

    Leave a comment:


  • alfisti
    started a topic [CMS] CMS in root directory

    CMS in root directory

    I want to put my CMS page in the root directory. In order, when I enter my address www.example.com 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 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:

    <?#shebang#?><?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:

    <?#shebang#?><?php
    define(VB_RELATIVE_PATH, 'forum');
    chdir('./' . VB_RELATIVE_PATH);
    require('widget.php');
    You will save me, please respond!!
    Thanks in advance!
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X