Embedding a forum inside a rails app

what is the best way to embed a forum (phpbb is currently installed
under
/public/forums/) inside my layout ? I dont want the foum to be its own
page
i would like it to appear inside the main part of the page with
navigation
and border in tact. is this possible with the current way it is
installed ?

thanks
adam

Am Freitag, den 03.03.2006, 11:35 -0500 schrieb Adam D.:

what is the best way to embed a forum (phpbb is currently installed
under /public/forums/) inside my layout ? I dont want the foum to be
its own page i would like it to appear inside the main part of the
page with navigation and border in tact. is this possible with the
current way it is installed ?

Why don’t you use a iframe?


Norman T.

http://blog.inlet-media.de

You aren’t really going to have much luck integrating a PHP app into a
Rails app, short of using an iframe as suggested above.

I’m currently working on a Rails website which uses a punbb forum and
the simplest way of doing it was to create a punbb skin that wraps the
forum in the sites layout/navigation and then run the forum off of a
subdomain (forum.foo.com) next to the main site (www.foo.com). The
only downside is the punbb forum is duplicating your rails layout so
it means two things to maintain and the navigation on the forum skin
is also hardcoded to point at www.foo.com/somelink which is also more
maintenance. Its not a huge site though so not much of an issue.

In fact, we ARE integrating the two in some ways, because part of the
Rails app needs people to log in to access it and the client has
requested they can use the same credentials for both the forum and
this part of the Rails app. We have accomplished this by creating a
new database connection in database.yml for the punbb database,
creating a new class that extends ActiveRecord::Base called Punbb
which is set to use the punbb database, then extending the Punbb class
to create models for the tables in the Punbb database that we need to
use, in this case just the user table. Now we can authenticate against
Punbb’s user table easily.

On 3/4/06, Norman T. [email protected] wrote:

Norman T.

http://blog.inlet-media.de


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Cheers,
Luke R.

thanks i put the forum at forum.domain.com and then just used an iframe
as
suggested above. I manipulated the CSS of phpbb to match my layout
colors
and now things look fine (enough).

Thanks for the suggestions.

adam