Integrate phpBB into Website

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
Thornapple
Registered User
Posts: 6
Joined: Tue Mar 17, 2009 1:13 pm
Location: http://www.darkasylum.org
Contact:

Integrate phpBB into Website

Post by Thornapple »

Boo

hey I have been looking and im sure it must be here some where...
Integrating a phpBB3 forum into a website.

Ok The website is all in php.
Header.php, footer, right nave and content etc.... yarda yarda yarda you get the idea.

Ok So im wanting to call up the forum in the content section. Just to make the user experience more streamed lined and better than the forum opening up in a separate window or well with a different look and feel I guess than the rest of the site.

How do I do that? Im sure its easy lol.
Have tried a basic include call but hmm may of done that wrong.

Hate these seemingly simple lil things that stop me in my tracks and stump me. XD.

So yeah. Site is all in php and each page is split up header, content etc. I just want to call up the forum to fix into the content box.

Should be simple shouldn't it. lol.

Hey just send me off to the link or article. I know I must of missed it somewhere. but hey if its simple bit of code it would be nice if you could throw it my way. :mrgreen:

Hey thanks in advance!

Alex
User avatar
Thornapple
Registered User
Posts: 6
Joined: Tue Mar 17, 2009 1:13 pm
Location: http://www.darkasylum.org
Contact:

Re: Integrate phpBB into Website

Post by Thornapple »

So any takers... Seems to be plenty of smart ppl on here. :ugeek:

As you can tell im not one by the looks of things.
:roll:

Any ideas most welcome.

Alex
bashsid
Registered User
Posts: 8
Joined: Fri Mar 13, 2009 3:22 am

Re: Integrate phpBB into Website

Post by bashsid »

I'm also looking for a similar solution! Would be great if someone can help!
User avatar
Thornapple
Registered User
Posts: 6
Joined: Tue Mar 17, 2009 1:13 pm
Location: http://www.darkasylum.org
Contact:

Re: Integrate phpBB into Website

Post by Thornapple »

Boo

So no ideas at all out there?

I can post all the details but yeah not sure if it matters...
Like incerting pbpBB3 into a page shouldnt matter on versions etc.

If you want I can leave the basic part of my content template so you can go "here you go, pop this in right here!" That would be nice.

Of link or two to an article would also be jolly good if not.

Jolly Goof then.

Alex
Eric Stetson
Registered User
Posts: 59
Joined: Wed Mar 04, 2009 7:42 pm

Re: Integrate phpBB into Website

Post by Eric Stetson »

See my website for an example of a nice integrated website with forum, the whole website running on phpBB3.0.4 platform: http://www.councilofwisdom.org

Basically this is what you need to do:

-- Rename index.php to something like forum.php, and similarly rename the index_header.html and index_body.html in the style templates folder.

-- Create separate header and body pages in the style templates folder for each page of the site, plus a .php page in the main directory (e.g. page1.php, templates/page1_header.html, templates/page1_body.html. Put whatever HTML content you want on the pages in the body html pages. Make sure that the .php page calls the associated body page and the body page calls the associated header page.

-- You will want to change the navigation bar in the header pages to include links to all of your pages.

That's an overall explanation, based on what I did to create my website. There are various details I'm probably leaving out, but I'm sure this will give you a good start.

Eric
User avatar
Thornapple
Registered User
Posts: 6
Joined: Tue Mar 17, 2009 1:13 pm
Location: http://www.darkasylum.org
Contact:

Re: Integrate phpBB into Website

Post by Thornapple »

Boo

Fangs for getting back! Good of you.

I'm a lil lost I think so better try to describe where I'm at etc and what I'm trying to do a bit better.

Ok.

It's a new site that's an online community and ezine. So this is looking to be a very big website. Articles, galleries, reviews, music the whole wham-bam.

Due to this I have tried to make it a lil easy for future upgrades and site size etc. So there is One global header.php, one global rightnav.php that houses dynamic content, then the content template (whatever.php) that houses well whatever that page has on it. All governed by one css file.

Now the site is still in infant stages. Yet you can view it here http://www.darkasylum.org/home.php

The phpBB forum will be integrated in with the Gallery that will be Gallery 2 or the new 3 ( http://gallery.menalto.com/ ) So the two databases will be synchronised so people only have one log in once etc...

Now I'm wanting to take the forum and insert it into my content template (the whaterver.php) . So yeah forum.php the page may be called I guess - that calls up / includes the global sites files.

Also the forum is not in my directory root. its /forum at the moment to keep everything in the back end a lil more tidy.

Here is my content template.. the whatever.php ...

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thornapple Dark Asylum</title>
<meta name="description" content="New Zealands online dark community and ezine." />
<link href="../style.css" rel="stylesheet" type="text/css" />
<script src="../mouseovertabs.js" type="text/javascript"></script>
<script type="text/javascript" src="../swfobject.js"></script>
<script type="text/javascript">
		swfobject.registerObject("myId", "9.0.0", "header.swf");
		</script>
<?php include("includes/rollover_js.php"); ?>
</head>

<body onload="MM_preloadImages('img/nav/home_on.png','img/nav/forum_on.png','img/nav/video_on.png','img/nav/articles_on.png','img/nav/music_on.png','img/nav/comps_on.png','img/nav/download_on.png','img/nav/links_on.png','img/nav/store_on.png','img/nav/contact_on.png')">
	<div id="wrap">
        <?php include("includes/header.php"); ?>
        <div id="main_content">
        	<div id ="left_col">
            <!--start main content here-->
            	<div class="content_box">
                	<div class="content_box_head">
                    Content Box Header
                    </div>
                    <div class="content_box_main">
                    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque nec elit. Integer non sem eu diam volutpat mattis. Proin venenatis. You get the idea this is the content section displayed on site....</div>
                </div>
            <!--end main content-->
            </div>
           	<?php include("includes/rightnav.php"); ?>
            <div style="clear:both;"></div>
        </div>
        <div id="footer">
        © Thornapple Bootique Ltd 2004 - 2009
        </div>
    </div>

</body>
</html>
Yes I think I need it explained to me like a child. Im feeling very stupid at the moment. lol

Thanks again Eric!

Alex
User avatar
Thornapple
Registered User
Posts: 6
Joined: Tue Mar 17, 2009 1:13 pm
Location: http://www.darkasylum.org
Contact:

Re: Integrate phpBB into Website

Post by Thornapple »

Any advice would be great.
xXSebaSXx
Registered User
Posts: 7
Joined: Sat Mar 21, 2009 4:10 am

Re: Integrate phpBB into Website

Post by xXSebaSXx »

I run my main page via WP and just recently added a phpBB 3 forum... of course the first thing that came to my mind was the same thing that you're asking about. How do I get my main page and my Forum to look and feel as if they are running in unison?

Here's how I accomplished it:

1. I opened my main website in my browser... and went to the View Source menu.
2. From the source-code of my main site (WP)... I copied the generated html for the header and added it to the overall_header.html template in my phpBB installation.
3. I repeated step 2, but with the generated html for the footer section and pasted it to the overall_footer.html template.
4. I added a reference to the CSS stylesheet from my WP installation in the overall_header.html template, so that the classes referenced by doing steps 2 and 3 had the necessary style information applied to them.

It took a bit of tinkering with the <div> tags, to make sure that all were closing at the appropriate point in the layout.

I'd post a link to my site so that you can see it at work, but it is an adult site and I don't want to offend anyone, or get in trouble here.

Hope this helps,
xXSebaSXx
User avatar
Thornapple
Registered User
Posts: 6
Joined: Tue Mar 17, 2009 1:13 pm
Location: http://www.darkasylum.org
Contact:

Re: Integrate phpBB into Website

Post by Thornapple »

Hey thanks I will try that latter and let u know how it turned out!

Alex
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26502
Joined: Fri Aug 29, 2008 9:49 am

Re: Integrate phpBB into Website

Post by Mick »

Thornapple wrote:Boo
Fangs for getting back! Good of you.
You could always try the search facility on here.

Searching:

"integrate phpbb in to website" or similar brings up lot's of hits.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
Locked

Return to “[3.0.x] Support Forum”