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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060303/87cfb63e/attachment.html
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
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:> 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 > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Cheers, Luke Redpath www.lukeredpath.co.uk
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 On 3/4/06, Luke Redpath <contact@lukeredpath.co.uk> wrote:> > 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: > > 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 > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > Cheers, > Luke Redpath > www.lukeredpath.co.uk > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060304/b513eded/attachment.html