Forum Moderators: coopster

Message Too Old, No Replies

Calling a forum page.

         

Tomness

5:31 pm on Jun 22, 2005 (gmt 0)

10+ Year Member



I have a minibb forum, in a directory called 'forum', under a directory called 'www'.

So it's

route
-----> www
----------> forum

Most my website is called using a php script that calls everything into the main index.php (I don't know what they're called)

Anyway, I would like to call my minibb forum into my index like I have the rest of the website, but it is not working.

Anyone who can help?

mcibor

7:16 pm on Jun 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The problem is such. This is the exemplary folder structure:
www.example.com/index.html
www.example.com/www/forum/forum.html

in index.html you want to have:
if($forum == 1) include("www/forum/forum.html"); //go to the forum

And here comes the problem. Because for the program to work correctly all the links in forum have to look like this:
include("www/forum/inc/function.inc.php");

whereas they are like this:
include("inc/function.inc.php");

This problem appears, because your forum catalogue is not www/forum/ anymore, but plain www.example.com

Hope this helps you
Michal Cibor

Tomness

10:46 pm on Jun 23, 2005 (gmt 0)

10+ Year Member



It does help, but I don't know how to take action on this.

If I do what you said, would that mean my entire forum will work via my websites main index?

Also, would that mean making the forum read 'www/forum/' instead?

mcibor

10:27 pm on Jun 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In the forum config file, there should be defined a default path. Change it to /www/forum and that may help.

Best regards
Michal