integration into website

This forum is now closed. Please ask all styles-related questions in the phpBB 3.0 Styles Support & Discussion Forum.
dvdd127
Registered User
Posts: 402
Joined: Fri Jan 13, 2006 12:35 am
Location: Chicago, IL

integration into website

Post by dvdd127 » Sun Jul 16, 2006 10:21 pm

I want to know where i can learn how to integrate my forum into my site layout....
kind ok like what they did on this site

any help would be appricated..
thanks in advance
/DD

Thatbitextra
Former Team Member
Posts: 7604
Joined: Mon Mar 21, 2005 5:04 am
Location: A place where something is or could be located; a site.
Contact:

Post by Thatbitextra » Sun Jul 16, 2006 11:02 pm

Edit overall_header.tpl and overall_footer.tpl so the the forum is put into a table with the menus and other stuff around it.
Styles KB
My MODs: Choose Who to Accept PMs From (Prevents unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

dvdd127
Registered User
Posts: 402
Joined: Fri Jan 13, 2006 12:35 am
Location: Chicago, IL

Post by dvdd127 » Sun Jul 16, 2006 11:16 pm

I dont know how to do that.
thats why I am asking for a tutorial or somewhere to look at a sample and have code to compare it too.

thanks
/DD

dvdd127
Registered User
Posts: 402
Joined: Fri Jan 13, 2006 12:35 am
Location: Chicago, IL

Post by dvdd127 » Thu Jul 20, 2006 12:24 am

how do i do it if my menu is on the left or right side?
/DD

mssturgeon
Registered User
Posts: 15
Joined: Thu Jun 30, 2005 1:49 pm
Location: Xenia, OH
Contact:

Post by mssturgeon » Sat Jul 22, 2006 12:35 am

Hi there Davood,

I'd be glad to assist you with your site integration if you have some specific questions.

I have a few questions for you that are fundamental in determining how easy it will be to integrate:

1) Do you have an existing user table/authentication system?

2) Do you want to use phpBB's authentication, or your own?

3) Are you starting with a website and adding phpBB, or vice versa?


Our site was built first and I added phpBB later. To integrate the login, I migrated all of our users to the phpBB user table, then put the phpBB header info into all of our pre-existing pages, specifically, this bit of code:

Code: Select all

	// phpBB initialization
	define('IN_PHPBB', true);
	$phpbb_root_path = BASE_DIR .'/forum/';
	include_once($phpbb_root_path . 'extension.inc');
	include_once($phpbb_root_path . 'common.'.$phpEx);
		
	// Start session management
	$userdata = session_pagestart($user_ip, PAGE_INDEX);
	init_userprefs($userdata);
	// End session management
(Note: BASE_DIR is the absolute path to your root html directory.)

From there, I just point to the login page for the phpBB and away we go. Hope that helps a bit. Please feel free to ask additional questions.

- Shane Sturgeon
Publisher, HDTV Magazine
Your Guide to High Definition Television

dvdd127
Registered User
Posts: 402
Joined: Fri Jan 13, 2006 12:35 am
Location: Chicago, IL

Post by dvdd127 » Sun Jul 30, 2006 5:13 am

dvdd127 wrote: how do i do it if my menu is on the left or right side?
gentle bump
/DD

atnbueno
Registered User
Posts: 39
Joined: Sun Aug 03, 2003 5:26 pm
Location: Spain
Contact:

Post by atnbueno » Sun Jul 30, 2006 11:25 am

Wrap the forum with a <div id="forum">...</div> and style it (CSS) to leave space or not overlap the menu. Or use and old-style table. This is just a general idea, as I don't know how your menu is positioned.
Antonio B.
mundoplus.tv - Televisión por Satélite en España

dvdd127
Registered User
Posts: 402
Joined: Fri Jan 13, 2006 12:35 am
Location: Chicago, IL

Post by dvdd127 » Sun Jul 30, 2006 2:24 pm

atnbueno wrote: Wrap the forum with a <div id="forum">...</div> and style it (CSS) to leave space or not overlap the menu. Or use and old-style table. This is just a general idea, as I don't know how your menu is positioned.
what file(s) do i need to edit tho?
/DD

Thatbitextra
Former Team Member
Posts: 7604
Joined: Mon Mar 21, 2005 5:04 am
Location: A place where something is or could be located; a site.
Contact:

Post by Thatbitextra » Sun Jul 30, 2006 6:29 pm

Overall_header.tpl and overall_footer.tpl.
Styles KB
My MODs: Choose Who to Accept PMs From (Prevents unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

dvdd127
Registered User
Posts: 402
Joined: Fri Jan 13, 2006 12:35 am
Location: Chicago, IL

Post by dvdd127 » Sun Jul 30, 2006 6:47 pm

Thatbitextra wrote: Overall_header.tpl and overall_footer.tpl.
to put a menu on the left.. i edit header and footer?
/DD

Thatbitextra
Former Team Member
Posts: 7604
Joined: Mon Mar 21, 2005 5:04 am
Location: A place where something is or could be located; a site.
Contact:

Post by Thatbitextra » Sun Jul 30, 2006 7:16 pm

Yes.
Styles KB
My MODs: Choose Who to Accept PMs From (Prevents unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

atnbueno
Registered User
Posts: 39
Joined: Sun Aug 03, 2003 5:26 pm
Location: Spain
Contact:

Post by atnbueno » Mon Jul 31, 2006 12:49 pm

dvdd127 wrote: to put a menu on the left.. i edit header and footer?

Think of them as "before everything" and "after everything" files. Your webpage could be:
  • header
  • menu (left)
  • forum (right)
  • footer
So you could put the header and the menu in overall_header.tpl and just the footer in overall_footer.tpl
Antonio B.
mundoplus.tv - Televisión por Satélite en España

dvdd127
Registered User
Posts: 402
Joined: Fri Jan 13, 2006 12:35 am
Location: Chicago, IL

Post by dvdd127 » Tue Aug 01, 2006 12:00 am

atnbueno wrote:
dvdd127 wrote:to put a menu on the left.. i edit header and footer?

Think of them as "before everything" and "after everything" files. Your webpage could be:
  • header
  • menu (left)
  • forum (right)
  • footer
So you could put the header and the menu in overall_header.tpl and just the footer in overall_footer.tpl
Could you show me an example??
/DD

mssturgeon
Registered User
Posts: 15
Joined: Thu Jun 30, 2005 1:49 pm
Location: Xenia, OH
Contact:

Post by mssturgeon » Tue Aug 01, 2006 2:59 am

The following table will give you a two column layout, which is a basic "menu & content" layout:

Code: Select all

<table><tr>
<td>menu</td>
<td>content</td>
</tr></table>
So your overall_header.tpl would contain:

Code: Select all

<table><tr>
<td>menu</td>
<td>
and your overall_footer.tpl would contain:

Code: Select all

</td>
</tr><table>
Hope that helps,

- Shane
Publisher, HDTV Magazine
Your Guide to High Definition Television

dvdd127
Registered User
Posts: 402
Joined: Fri Jan 13, 2006 12:35 am
Location: Chicago, IL

Post by dvdd127 » Tue Aug 01, 2006 4:38 am

Shane,
Maybe I am misunderstanding but I would like to know how to do it with my menu on the left hand side as well.

Thanks.
/DD

Locked

Return to “[2.0.x] Styles Development & Discussion”