PunBB integration

Hi,

I'm new to ruby and rails and, after some inital success, I've hit a bit of a roadblock. I'm setting up a community-based site which will include a forum. I'm thinking of using PunBB for this but I dont understand just how I can get a php app running within my rails app.

Like how can I get php code to run on the rails server???

Ideally, I'd like the user to be able to click the 'forum' link and then for the punBB code to display within the page's view.

Can anybody tell me if this is possible? Any help would be appreciated, thanks.

Gearóid O'Ceallaigh wrote:

Hi,

I'm new to ruby and rails and, after some inital success, I've hit a bit of a roadblock. I'm setting up a community-based site which will include a forum. I'm thinking of using PunBB for this but I dont understand just how I can get a php app running within my rails app.

Like how can I get php code to run on the rails server???

Ideally, I'd like the user to be able to click the 'forum' link and then for the punBB code to display within the page's view.

Can anybody tell me if this is possible? Any help would be appreciated, thanks.

well y u want to integrate punbb u can integrate caboo(beast) forum or eldorado or rforum which is built on rails..thats a better option..unless there is some specific reason y u want to use punbb

Thanks

Dhaval Parikh Software Engineer www.railshouse.com sales(AT)railshouse(DOT)com

Hi,

I'm new to ruby and rails and, after some inital success, I've hit a bit of a roadblock. I'm setting up a community-based site which will include a forum. I'm thinking of using PunBB for this but I dont understand just how I can get a php app running within my rails app.

Like how can I get php code to run on the rails server???

Well mongrel etc... won't serve php for you, but it's not hard with
apache, nginx etc... to have one vhost pointing at your rails app and
another at your php app.

Fred

I was thinking this way myself. However can I call pages to be included on a page which are located on a seperate server? For example, imagine my rails app held stuff like venue information but then my forums was hosted on another server (or port when working locally). So could I use something like this:

<!-- # START:yield -->   <div id="content">     <%= yield :layout %>   </div>   <!-- # END:yield -->

where yield calls my php boards?

thanks for the help btw

Well mongrel etc... won't serve php for you, but it's not hard with apache, nginx etc... to have one vhost pointing at your rails app and another at your php app.

Fred

I was thinking this way myself. However can I call pages to be included on a page which are located on a seperate server? For example, imagine my rails app held stuff like venue information but then my forums was hosted on another server (or port when working locally). So could I use something like this:

<!-- # START:yield --> <div id="content">    <%= yield :layout %> </div> <!-- # END:yield -->

Not out of the box you can't. I suppose you could manually invoke the
php executable, but you might find you have to do quite a lot of
fiddling around in order to setup the environment (all the stuff that
apache would normally do for you).

Fred

> <!-- # START:yield --> > <div id="content"> > <%= yield :layout %> > </div> > <!-- # END:yield -->

maybe you can use an iframe instead of the div then this could look something like

<iframe src='<%= path_to_wherever %>' width="90%" height="400" name="PunBB" />

Crap.

See, I'd have little issue with using Beast only I'm finding it particularly difficult to install. I've gone through all the usual steps suggested but get error 500 when trying to view it. Guess I'll just give it another shot...

Check your log/development.log for any errors.