If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Include tpl_header.php to phpbb

Include tpl_header.php to phpbb

Started by djdavedawson on 30 Jul 2012, 6:35 PM · Views: 958

Results 1 to 5 of 5
30 Jul 2012, 6:35 PM
#1
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Include tpl_header.php to phpbb

Is there a way to incude the zencart header -> tpl_header.php as the header of the phpbb Prosilver forum.

I am using the correct PHPBB include method

<!-- INCLUDEPHP ./../includes/templates/MYTEMPLATE/common/tpl_header.php -->

But get the following error:

Fatal error: Call to a member function size() on a non-object in /home/MYUSR/public_html/includes/templates/MYTEMPLATE/common/tpl_header.php on line 23

Is there a way to do this?

Thanks in Advance

~D

30 Jul 2012, 7:35 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Include tpl_header.php to phpbb

Here's how we did it in common.css. Rename your Zencart header image as header_bg.jpg and save it in the phpBB template's theme/images folder. Adjust the height as necessary:

.headerbar {
background-image: url("styles/prosilver/theme/images/header_bg.jpg");
background-repeat: no-repeat;
color: #FFFFFF;
margin-bottom: 4px;
padding: 0 5px;
height: 50px;
}

30 Jul 2012, 8:00 PM
#3
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Re: Include tpl_header.php to phpbb

Thanks for this.

Although I was wanting to include the entire tpl_header.php file, so it would show the navMain and so-on.

Any ideas?

Thanks

7 Aug 2012, 9:41 PM
#4
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Re: Include tpl_header.php to phpbb

Still trying to figure this out, I want to show the shopping cart contents in the header when people are on the forum. But I'm not sure which other files I need to include so that it will use the zen functions and such.