Forum Moderators: mack

Message Too Old, No Replies

Lock phpbb into a page

phpbb lock into page

         

harrybailey

5:36 pm on Sep 29, 2003 (gmt 0)

10+ Year Member



Hi there all.
Last time I was here you were all very helpful. Thankyou for that, so I thought I would return.

I have nearly completed a site using the php include tag and it works a treat. I only have to update the menu once for all pages and the same with header and footers. Brilliant.

My problem comes now that I have been asked to add a phpBB to the site. Ideally I would like it to be part of a normal page with the original header/footer/menu remaining in place.
I have had several goes at including the phpBB as part of a page and succeeded in getting the index to appear in a normal page. The problem is that as soon as I click on any link on the BB it breaks out of the page. I have altered the target="" tag but as it isn't in a frame this makes no difference.
Is there anything I can do/research about that will keep the BB in the table that the BB index page appears in?

Im quite happy to do the leg work myself. I just need a push in the right direction.

Thank you.
Harry

JamesR

5:38 pm on Sep 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



do all the links on the page open in new windows or only that one?

Yidaki

5:50 pm on Sep 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



phpBB uses a lot of different templates. So if you include the phpBB index into a seperate page, you'll have to do the same with every deep link that goes into the phpbb forums. In other words: if you include the index, you have also to include threads, posts etc. into your non-phpbb template. Now there's a problem: if you use relative links for phpbb, you have to route every phpbb request to your template.php which itself loads the phpbb output (you use include, right!?) into the template.

Can you follow me?

harrybailey

5:51 pm on Sep 29, 2003 (gmt 0)

10+ Year Member



Most links open on the same page (as the whole page)
Any links that are external open as a new page (_blank)

Jenstar

5:52 pm on Sep 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As an alternative, with phpbb, it has uses the same header and footer file for all pages (except phpbb admin pages) within the pbpbb environment. So you could modify those two files to make it match the rest of the site.

You might find much more information on solving this issue at phpbb.com - their support forum is amazing when it comes to needing help altering the boards to make them do what you want them to ;) Do a search there, and you will probably find the exact answer you are needing.

harrybailey

5:53 pm on Sep 29, 2003 (gmt 0)

10+ Year Member



Im with you Yidaki

Its gonna get a bit complicated.

So my best bet is?
Have the phpBB as a different page?
I refuse to use frames out of principle.

harrybailey

5:57 pm on Sep 29, 2003 (gmt 0)

10+ Year Member



I actually find this forum more helpful. Things seem to be explained in a way that makes my mind work better and I then either understand the problem better or come up with a solution for it.
I still class myself as a learner when it comes to web design but I grip things pretty fast whe I want to solve a problem.

Some phpbb's have a kind of index page with 'news' 'new users' 'latest posts' etc. I might try and incorperate that and change that header to my own. My phpbb is almost identical to my site, I would just like to keep the menu at all times.

Yidaki

6:01 pm on Sep 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>Some phpbb's have a kind of index page with 'news' 'new users' 'latest posts' etc.
>I might try and incorperate that and change that header to my own.

That is by far the easiest task. Especially with phpbb just little knowlegde about html and php (beginner level) is enough to modify alot. You might allready know that there are also some ready made mods available for free. Just look at the mods sections of the phpbb.com site.

>My phpbb is almost identical to my site, I would just like to keep the menu at all times.

You can change and customize EVERY template of your phpbb installation.

Have fun! ;)

griz_fan

9:14 pm on Sep 29, 2003 (gmt 0)

10+ Year Member



Hi Harry,

I've been investigating ways to use PHPBB2 to run an entire site. I've found [phpbbhacks.com...] to be a great resource for guides and info on customizing PHPBB2. Hopefully, you'll find some helpful information here.