
Good stressed afternoon!!.
As i mentioned last sunday, I was asked by my bro to integrate the header of his WordPress Header blog within the PHPBB forum he just setted up. I had never played around with PHPBB beyond knowing about that fantastic Development. I decided to search over internet and I found little info about that integration so that night i just decided to get into de code and try to figure it out. Easy work I must say, ...which I always says that it is translated into a beatifully design of the product.
The first thing to do was to look in he main directory where I found an Index.php file, ....hmmmm, that seemed the first place to look for. Within the PHP code I found that file index_body.html was being searched. Where was that file??. hmm It should the in templates folder: /styles/prosilver/template (if the theme used is other than prosilver then change the name to that theme) ..and there it was. Curious the first line of that file:
<!-- INCLUDE overall_header.html -->Mission one acomplished!!, I have found the header!!, now we know the file to change. The Header has two parts within the div
<div id="page-header">:<div class="headerbar"><div class="navbar">
headerbar is the one with the logo and the navbar is the one containing links to FAQ, Registration and Login. So the mission 2 was just to change headerbar with the code of the head of wordpress and that is all this divs:
<div id="menu"><div id="header"><div id="rss-big"><div id="portrait-bg"><div id="catmenu">
{SITENAME}. Finally the styles!!. Remember to refer at the top of the page to the wordpress stylesheet (in this case wp-content/themes/amazing-grace/style.css and in some case include the styles within the elements making sure it overrides the PHPBB styles for the header.This may not be the most elegant way to do it, ...but it just took me 1 hour and a half..
Soon my bro will ask me to change the styles of the forum to the same colors as the header, ...I know that will happen, but shhhhhhh!!, don't tell him, maybe i get rid of that task. I love code!!, but styles...
0 comentarios:
Publicar un comentario en la entrada