How to integrate Phorum in HTML page

Posted by kyknos 
How to integrate Phorum in HTML page
July 03, 2008 11:18AM
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.
Re: How to integrate Phorum in HTML page
July 03, 2008 11:52AM
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
Re: How to integrate Phorum in HTML page
July 05, 2008 06:14AM
Yet another way would be use search and find almost every possible solution to this problem. Yes it has been discussed before... integrate, site, header etc. are good candidates for keywords.

---
-=[ Panu ]=-
Re: How to integrate Phorum in HTML page
August 08, 2008 06:11PM
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
Quote

include("//site header goes here");
and after that I add a
Quote

include("//site sidebar 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...
Re: How to integrate Phorum in HTML page
August 09, 2008 03:12AM
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
Re: How to integrate Phorum in HTML page
August 09, 2008 08:09AM
Oh ok. I think it works fine on my website though. I just replace jumpmenu with a drop down menu that automatically jumps to forum when you click on which forum and...its fine with the Embed Images. Sorry...
Re: How to integrate Phorum in HTML page
August 09, 2008 03:25PM
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
Re: How to integrate Phorum in HTML page
August 09, 2008 08:48PM
I'm happy. If anyone thinks this stinks, I can always change it back to the original format
Sorry, only registered users may post in this forum.

Click here to login