Forum: Ruby on Rails embedding a forum inside a rails app

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 Adam Denenberg (Guest)
on 2006-03-03 17:37
(Received via mailing list)
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
Bf66e10c8fc4abefebde0425e7f6f15a?d=identicon&s=25 Norman Timmler (Guest)
on 2006-03-04 10:53
(Received via mailing list)
Am Freitag, den 03.03.2006, 11:35 -0500 schrieb Adam Denenberg:
> 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 Timmler

http://blog.inlet-media.de
1e99128ebac5ca41c91940291d315332?d=identicon&s=25 Luke Redpath (Guest)
on 2006-03-04 13:31
(Received via mailing list)
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 Timmler <lists@inlet-media.de> wrote:
> Norman Timmler
>
> http://blog.inlet-media.de
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
Cheers,
Luke Redpath
www.lukeredpath.co.uk
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 Adam Denenberg (Guest)
on 2006-03-04 15:34
(Received via mailing list)
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
This topic is locked and can not be replied to.