[SOLVED] Integrating phpBB in own website

This is a discussion on "[SOLVED] Integrating phpBB in own website" within the Web Page Design section. This forum, and the thread "[SOLVED] Integrating phpBB in own website are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 22nd, 2007, 13:40
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
[SOLVED] Integrating phpBB in own website

I don't know if this is the right forum but hey....

I want to integrate phpBB in my own website so I have my own header, menu and footer etc but don't know how to start

I want to the forum to be only visible in the content div if that makes any sense.

I understand by looking at the code of the forum header and footer that you need to edit the CSS but I am totally lost with this
Reply With Quote

  #2 (permalink)  
Old Sep 22nd, 2007, 16:27
mcdanielnc89's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Missouri
Age: 18
Posts: 231
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mcdanielnc89 Send a message via Yahoo to mcdanielnc89 Send a message via Skype™ to mcdanielnc89
Re: Integrating phpBB in own website

Hmm, well.. If i take a look I might be able to do this.. Depends as I'm a baby at css. haha
Last Blog Entry: My blog? (Oct 18th, 2007)
Reply With Quote
  #3 (permalink)  
Old Sep 22nd, 2007, 20:42
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,298
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Integrating phpBB in own website

ok, i am quite good with with phpbb, firstly the most important thing you need to know is, any phpbb {COMMANDS} work as soon as the word with {} are placed {L_LOGIN} for example is a link for the login file placing the login script where you want it

the second is that normal html works, so adding your own menu is entirly possible and quite easy. ( you can also import php scripts the normal way )

the third thing is that the files you need to edit are the .tpl's

and the last thing is the css, if you know css, it is not difficult to replace the backgrounds, colours, headers etc

the OVERALL_HEADER.tpl is the header, the OVERALL_FOOTER.tpl is the footer - the rest is look and see, then adjust as appropiate

if you add something to the overall_header to display to one side, it will display on the left, - if you add something to the overall_footer that you want to display down the side it will appear on the right

this is basically all you need to know

any more specific questions go to http://www.phpbb.com
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)

Last edited by saltedm8; Sep 22nd, 2007 at 20:46.
Reply With Quote
  #4 (permalink)  
Old Sep 22nd, 2007, 20:57
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Integrating phpBB in own website

I tried messing around with it and it screwed the layout right up and that's without doing anything to the css.

Even if you remove all CSS to do with phpBB it still goes screwey.

Is it to do with the way they use tables for layout
Reply With Quote
  #5 (permalink)  
Old Sep 22nd, 2007, 21:57
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,298
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Integrating phpBB in own website

no, if i were you i would concentrate on basic things first, like header, backgrounds, etc - for example, look for the header image they have and create an image then name it the same as them ( with the same extention .jpg, .gif etc ) and just replace the image

dont try anything with the .tpl's unless you are sure you know what you are doing, if you adjust sizes etc, it can mess the whole forum up

one of the little things you could hunt for are to adjust the width of the forum, it is located in the overall_header.tpl and finishes with 100% - just change it to adjust the width of the whole forum, unless you want to post the overall header code and i will show you where to change

the overall header and overall footer are all i would recamend you mess with for now, most of the things you would probebly want to do are located there
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #6 (permalink)  
Old Sep 22nd, 2007, 22:07
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,298
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Integrating phpBB in own website

ok, i have written you an easier header ( as long as you are using the defult phpbb template )

replace your overall_header.tpl code with this

Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
.style1 {font-size: 12px}
.style2 {color: #FFFFFF}
-->
</style>
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/subsilver/{T_HEAD_STYLESHEET}" type="text/css" -->
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
 if ( {PRIVATE_MESSAGE_NEW_FLAG} )
 {
  window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
 }
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
<a name="top"></a>
<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> 
 <tr> 
  <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
   <tr> 
    <td><a href="{U_INDEX}"><img src="templates/subsilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
    <td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />&nbsp; </span> 
    <table cellspacing="0" cellpadding="2" border="0">
     <tr> 
      <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subsilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subsilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subsilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subsilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp; 
      <!-- BEGIN switch_user_logged_out -->
      &nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subsilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp;
      <!-- END switch_user_logged_out -->
      </span></td>
     </tr>
     <tr>
      <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subsilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subsilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subsilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
     </tr>
    </table></td>
   </tr>
  </table>
  <br />
now it should be a little easyier to customise ( let me know ) - the problem is that phpbb does not take to customising very quickly unless you know what you are doing, so i made this so that most of what you do will work ( as long as its proper html and css )
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)

Last edited by saltedm8; Sep 22nd, 2007 at 22:11.
Reply With Quote
  #7 (permalink)  
Old Sep 22nd, 2007, 22:09
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Integrating phpBB in own website

OK.......here is tpl header

I appreciate any help as this is totoally new to me and I have no clue
Attached Files
File Type: txt overall_header.txt (11.4 KB, 7 views)
Reply With Quote
  #8 (permalink)  
Old Sep 22nd, 2007, 22:12
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,298
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Integrating phpBB in own website

do the above
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #9 (permalink)  
Old Sep 22nd, 2007, 22:19
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Integrating phpBB in own website

How do I use my own stylesheet for the layout?
Reply With Quote
  #10 (permalink)  
Old Sep 22nd, 2007, 22:20
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,298
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Integrating phpBB in own website

you dont, you will have to adjust their one so it matches your site ( there is stuff in there that is too important )
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)

Last edited by saltedm8; Sep 22nd, 2007 at 22:23.
Reply With Quote
  #11 (permalink)  
Old Oct 12th, 2007, 22:40
New Member
Join Date: Oct 2007
Location: Uk
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Integrating phpBB in own website

Hi there!

Long time lurker and i came accross this thread while google'in.

Basically i am asking the same question, but all this css and most html is right over my head.

I have a simple design for my website. I just edit the content when needed,

I am running phpbb 2.x.x

I would like to have the side navigation bar down the side as it is on the website, Well the whole section, There is the top and left hand side and the content is in the center where i would like the forum to go (if you look at the link i will post you will see what i mean)

I would still like to be able to edit the links along the side but thats about all i will need to do.

Thanks for reading,

Website address www.technicalchat.co.uk
Forum Address www.technicalchat.co.uk/forum

Adam D
Reply With Quote
  #12 (permalink)  
Old Oct 12th, 2007, 22:56
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Integrating phpBB in own website

Adam, please start your own thread! This is Hi-jacking someone elses.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #13 (permalink)  
Old Oct 12th, 2007, 22:59
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Integrating phpBB in own website

That is so weird as I thought you were talking about me as my name is Adam
Reply With Quote
  #14 (permalink)  
Old Oct 12th, 2007, 23:12
New Member
Join Date: Oct 2007
Location: Uk
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Integrating phpBB in own website

Quote:
Originally Posted by alexgeek View Post
Adam, please start your own thread! This is Hi-jacking someone elses.
I didn't think it was hijacking as it was the same question and not something off topic to the subject.
Reply With Quote
  #15 (permalink)  
Old Oct 12th, 2007, 23:14
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Integrating phpBB in own website

Me too.....It saves starting 2 threads with the same objective
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrating to WordPress.. FXDesigns Website Planning 4 Jan 13th, 2008 13:51
[SOLVED] phpBB issue. mcdanielnc89 Scripts and Online Services 13 Dec 19th, 2007 07:52
[SOLVED] Integrating Blog on Website JIM_genius5 Starting Out 6 Oct 28th, 2007 17:17
Integrating Mpp with the .NET Application. akshitshah ASP.NET Forum 0 Sep 28th, 2007 05:23
help with integrating forum into website jj1234 PHP Forum 0 Feb 16th, 2006 11:16


All times are GMT. The time now is 18:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43