How to integrate Phorum in HTML page
Posted by kyknos
|
How to integrate Phorum in HTML page July 03, 2008 11:18AM |
Registered: 18 years ago Posts: 1 |
Hello,
I want to integrate Phorum in my HTML page and I wonder how I can do that.
The main part is HTML (with the layout in CSS).
I tried to INCLUDE it with PHP in the DIV where I place the content for all the different sites, but it didn't work.
Is there a way one can make it work?
Thank you for your help.
Greetings,
Kyknos.
I want to integrate Phorum in my HTML page and I wonder how I can do that.
The main part is HTML (with the layout in CSS).
I tried to INCLUDE it with PHP in the DIV where I place the content for all the different sites, but it didn't work.
Is there a way one can make it work?
Thank you for your help.
Greetings,
Kyknos.
|
Re: How to integrate Phorum in HTML page July 03, 2008 11:52AM |
Admin Registered: 22 years ago Posts: 8,532 |
The very best way is to copy the site layout to the header and footer of the Phorum layout.
Another option that is somewhat using an include, is using the portable installation. Check out the portable directory inside your Phorum dir. It serves mostly as an example, so you probably have to do some reading on the code to get that working.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Another option that is somewhat using an include, is using the portable installation. Check out the portable directory inside your Phorum dir. It serves mostly as an example, so you probably have to do some reading on the code to get that working.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: How to integrate Phorum in HTML page July 05, 2008 06:14AM |
Registered: 25 years ago Posts: 1,076 |
|
Re: How to integrate Phorum in HTML page August 08, 2008 06:11PM |
Registered: 18 years ago Posts: 95 |
The way I did this was to go to the header.tpl of my template and look at the first "<?" tag. Immediately after that tag I add a
and after that I add aQuote
include("//site header goes here");
and that seems to do the trick. If you want to configure the footer you can add a file to the template directory called footer.php. This will automatically replace footer.tpl. Hope this helps...Quote
include("//site sidebar goes here");
|
Re: How to integrate Phorum in HTML page August 09, 2008 03:12AM |
Admin Registered: 22 years ago Posts: 8,532 |
I advice strongly against this method. You will probably get weird results, since this will make the page non-valid HTML. It will get you multiple <html> and <body> open tags, which is not allowed. It might work in some browsers, but you cannot really predict the outcome.
Now you tell this, it makes perfect sense to me that the jumpmenu doesn't work and that the image viewer is not showing in the center. This all is because you produced broken HTML code.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Now you tell this, it makes perfect sense to me that the jumpmenu doesn't work and that the image viewer is not showing in the center. This all is because you produced broken HTML code.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: How to integrate Phorum in HTML page August 09, 2008 08:09AM |
Registered: 18 years ago Posts: 95 |
|
Re: How to integrate Phorum in HTML page August 09, 2008 03:25PM |
Admin Registered: 22 years ago Posts: 8,532 |
Hmm.. I don't think it's fine with your embed images.
The full size viewer is too far to the right and down the page because of this.
But if you're happy, I'm happy.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
The full size viewer is too far to the right and down the page because of this.
But if you're happy, I'm happy.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: How to integrate Phorum in HTML page August 09, 2008 08:48PM |
Registered: 18 years ago Posts: 95 |
Sorry, only registered users may post in this forum.