1

Topic: Would this work?

I have an idea about how I might integrate PunBB with my site. I was thinking of having punbb in ./forum/, and then using mod_rewrite like this:

RewriteRule ^forum/(.*) /forum.php?pg=$1

Obviously I would need to use a RewriteCond to make sure it only matches .php files.

And basically forum.php would include the requested url in a div in my site, so that the page is always within the content area of my site (at the moment, the white area). I would rather not use an iframe as I think they are very ugly.

Or is there a better way of doing this which I have completely missed?

Hope someone can give some input smile

Thanks!

2

Re: Would this work?

Hmmm no replies, perhaps I am not making sense.

Say a user requests: http://site/forum/viewtopic.php?id=12140

Could I work out which page is being requested (easily using mod_Rewrite), then include that page (viewtopic.php in this case) in a div on my site? does PunBB use any strange exit()'s or anything like that which would stop the rest of the page being generated?

Re: Would this work?

I'm just not sure why you would want to rewrite the URLs.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

4

Re: Would this work?

so that I wouldnt need to change the urls that punbb generates. I just want to catch requests to any page on my forum and include it within the template of the rest of my site.

Re: Would this work?

Ah, I see. That's gonna be a lot of work. Can't you just implement your site template in PunBB? I mean, have you had a look at include/template/*?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

6

Re: Would this work?

Good idea. I don't know why I didn't think of this before lol