Page 1 of 1

Modifying mboard.php ? to change header and footer .txt

Posted: Sun Dec 21, 2008 7:46 pm
by DarrenK
Script URL: http://www.volvoowners.ie/messageboard/mboard.php
Version of script: 1.3
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: template, header, footer, include

Write your message below:

First of all I just wanted to say that this is an excellent script - I've been searching for one just like this for a looong time before finally coming across it on Hotscripts. It's very, very hard to try and get a non-forum script now-a-days as apposed to something so simple like this. It brings back memories of the days of BoardHost!

I really want my board to fit to the layout of my website. My website uses include files (.inc) which are stored in their own include folder in the public directory root. I've tried a couple of different 'include' codes within the header and footer .txt files but unfortunately it doesn't seem to be loading the .inc files. It must be picking the path for them up ok otherwise I'm sure I'd get a path error or two on mboard.php.

Is it possibly to modify mboard.php to allow it to pick up my .inc header and footer files rather than the .txt files? if so, would you have time to explain what is involved?

A working page of the website layout I'd like to fit the message board to is;
http://www.volvoowners.ie/links.shtml

I hope you understand what I mean.

Thanks.

Posted: Sun Dec 21, 2008 10:12 pm
by Henrie
Hello DarrenK
Is it possibly to modify mboard.php to allow it to pick up my .inc header and footer files rather than the .txt files? if so, would you have time to explain what is involved?
Yes, this it is possible to use the .inc files instead of the .txt files.
However, this will not work. I have taken a look at your .inc files. The included links are relative ones. Because the files that will use your .inc files will be placed in different subdirectories relative links will not work. You will have to use absolute links.

You can use the current code in your .inc files and copy and paste these in the header.txt and footer.txt files. Than change the links in the .txt files to absolute links.

Greetings,
Henrie

Posted: Mon Dec 22, 2008 11:14 pm
by DarrenK
Hey Henrie,

Thanks very much for your reply. I'm glad to inform you that I took your advice and copy and pasted my .inc file contents into the .txt files before changing the links to absolute links.

http://www.volvoowners.ie/messageboard/mboard.php

Works nice and I'm very happy with it. It's only a very minor section of the website anyway, for a small majority of visitors to get more information.

P.S. Also found the visitor count a nice feature. 8)