General discussion
Best way of structuring the website?

Hi,

I have placed the forum section in a separate directory folder and my main website in the main web hosting folder. The trouble is, is that my main website uses a template that relies on seperate smarty and bootstrap files too.

So basically i have two different websites in two different directories and i'm trying to make them look like each other and it seems like a lot of work.

I noticed that you have an option to add individual pages to your forum. How can i make a page which is named index, so when you come to my website it goes to that page instead of the main category page?

Thanks for your help, Richard

Hi, I have placed the forum section in a separate directory folder and my main website in the main web hosting folder. The trouble is, is that my main website uses a template that relies on seperate smarty and bootstrap files too. So basically i have two different websites in two different directories and i'm trying to make them look like each other and it seems like a lot of work. I noticed that you have an option to add individual pages to your forum. How can i make a page which is named index, so when you come to my website it goes to that page instead of the main category page? Thanks for your help, Richard

From the backend create new page , you will get your page url there.

You need to set that page url as the homepage.
To do that, open routes.php file and replace

dispatch_get('/', function() {

    global $installed;
    if (!$installed) {

        $url = str_replace("index.php?u=/", "", RURI);
        header("Location: " . $url . "install/index.php");
    }

    $forum = new \Controller\forum();
    $forum->topics(1);
    CODOF\Smarty\Layout::load($forum->view, $forum->css_files, $forum->js_files);
});

with

dispatch_get('/', function() {

    global $installed;
    if (!$installed) {

        $url = str_replace("index.php?u=/", "", RURI);
        header("Location: " . $url . "install/index.php");
    }

   header("Location: YOUR_PAGE_URL_HERE");
});
From the backend create new page , you will get your page url there. You need to set that page url as the homepage. To do that, open routes.php file and replace ``` dispatch_get('/', function() { global $installed; if (!$installed) { $url = str_replace("index.php?u=/", "", RURI); header("Location: " . $url . "install/index.php"); } $forum = new \Controller\forum(); $forum->topics(1); CODOF\Smarty\Layout::load($forum->view, $forum->css_files, $forum->js_files); }); ``` with ``` dispatch_get('/', function() { global $installed; if (!$installed) { $url = str_replace("index.php?u=/", "", RURI); header("Location: " . $url . "install/index.php"); } header("Location: YOUR_PAGE_URL_HERE"); }); ```
146
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft