Running phpBB v3.0.8 with the standard ProSilver theme. Its a default install and sits here.
With the help of a great video, I want to try and match the header from my WP theme in my phpBB site.
i.e. I want it to visually appear seamless between phpBB and WP.
Actually, it will probably only be the top green bit and the menus and search panel that sit within it.
However, I have fallen over fairly early.
These are the steps I took:
1. Opened my header.php from my WP theme. (Source for this can be seen here)
2. Copied the folling code:
- Code: Select all
<!-- BEGIN WRAPPER -->
<div id="wrapper">
<!-- BEGIN HEADER -->
<div id="header">
<div id="logo"><a href="<?php bloginfo('url'); ?>/"><img src="<?php echo get_option('boldy_logo_img'); ?>" alt="<?php echo get_option('boldy_logo_alt'); ?>" /></a></div>
<div id="logo2"><a href="http://www.esriaustralia.com.au/esri/4619.html"><img src="<?php echo get_option('boldy_logo2_img'); ?>" alt="<?php echo get_option('boldy_logo2_alt'); ?>" /></a></div>
<!-- BEGIN MAIN MENU -->
<?php if ( function_exists( 'wp_nav_menu' ) ){
wp_nav_menu( array( 'theme_location' => 'main-menu', 'container_id' => 'mainMenu', 'container_class' => 'ddsmoothmenu', 'fallback_cb'=>'primarymenu') );
}else{
primarymenu();
}?>
<!-- END MAIN MENU -->
<!-- BEGIN TOP SEARCH -->
<div id="topSearch">
<form id="searchform" action="<?php bloginfo('url'); ?>/" method="get">
<input type="submit" value="" id="searchsubmit"/>
<input type="text" id="s" name="s" value="type your search" />
</form>
</div>
<!-- END TOP SEARCH -->
3. Pasted this code into ProSilvers overall_header.html file - (source can be seen here)
- Code: Select all
</head>
<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
<!-- header to match Boldy theme -->
<div id="wrapper">
<!-- BEGIN MAIN MENU -->
<?php if ( function_exists( 'wp_nav_menu' ) ){
wp_nav_menu( array( 'theme_location' => 'main-menu', 'container_id' => 'mainMenu', 'container_class' => 'ddsmoothmenu', 'fallback_cb'=>'primarymenu') );
}else{
primarymenu();
}?>
<!-- END MAIN MENU -->
<!-- BEGIN TOP SEARCH -->
<div id="topSearch">
<form id="searchform" action="<?php bloginfo('url'); ?>/" method="get">
<input type="submit" value="" id="searchsubmit"/>
<input type="text" id="s" name="s" value="type your search" />
</form>
</div>
<!-- END TOP SEARCH (all the above has been pasted in from Boldy themes header-->
<div id="wrap">
<a id="top" name="top" accesskey="t"></a>
<div id="page-header">
4. Also added a /div tag to the overall_footer, as mentioned in the video.
So, that ends up giving me the following error:
Parse error: syntax error, unexpected T_STRING in /home6/dekhofor/public_html/forum/includes/template.php(668) : eval()'d code on line 107
I assume its having issues executing the php?
Would really like some help on solving this. Im new to PHP, but keen to learn.









