Firefox PHP

Integrating Phorum in a Smarty-templated site

Posted by iamback 
Integrating Phorum in a Smarty-templated site
January 17, 2007 11:32AM
Hi all,

I'm still a total Phorum newbie: I have installed the latest (5.1.16a) on my test/development machine (less than 18 hours ago and I had some sleep as well ;)), and have read a lot of documentation and forum posts and absorbed a lot of ideas. My intention is to install and integrate Phorum into my own "travel blog" site (which will be more than just a blog). The site's software is PHP + MySQL, plus a number of open source modules/classes; the core is my own code though. And I'm using Smarty for templating.

What I'm intending to do is more than just display Phorum inside a div; My site has a sidebar which displays several "blocks" the content of which can depend on context. On a Phorum page, I'd like to have such a sidebar as well - but have its content "integrated" with what the Phorum page is showing. For instance, I could have several subforums, each for a different country, and if one is shown the sidebar should contain "blocks" relevant to that particular country - but the rest of the site should be able to have the same country-specific "blocks" in its sidebar if a country-specific page is loaded.

I'd also like to use Phorum's user administration and permissions system for the rest of the site (so I can enable comments, for instance) - but I am using sessions (which I understand Phorum is not doing).

Main questions:
- Has anyone integrated Phorum into a Smarty-templated site? If so: any hints on how to tackle this?
- Should I use the "portable" code approach in this case or would using the embed_phorum module be a better approach?

If anyone has any hints on how to tackle this, preventing me from going down the garden path with a non-optimal approach for this situation, I'd be very grateful! I'd like to avoid wasting time on non-productive approaches,and get a Phorum forum up and running as soon as possible.

P.S. The site I'm planning to add Phorum to is Marjolein's Travel Blog. The forum would be on its own subdomain but otherwise tightly integrated as indicated above. See the current sidebar for links to software I'm using.

-- Marjolein Katsma * Marjolein's Travel blog * Marjolein's Travel Forum
The first condition of understanding a foreign country is to smell it.
-- Rudyard Kipling
Sorry, only registered users may post in this forum.

Click here to login