Global Header

Events happening in the community are now at Drupal community events on www.drupal.org.
MGadAllah's picture

Hi All
I do hope to find some help with this issue. I've installed the drupal 5.7 fine, phpbb3.0.0 fine, and done the integration fine. I've edited the primary links to have a link for the forum fine. Now when I hit the forum link it displaying the whole board and nothing from the home page links at all. I would like to know how can I have the header from Drupal when viewing the forum.
Thanks
Please help because I am trying since a long time but no result at all.

Comments

As mentioned in a few

arkepp's picture

As mentioned in a few places, this module is not a complete integration, so you'll have to duplicate the headers yourself. If you look at http://drupal.i1media.no then that's just a small hack using styles/prosilver/template/overall_header.html and overall_footer.html

It's not hard, but you'll want a tool like Firebug to look at the elements of the page while you do it. With that tool it actually took me less than 10 minutes (then again, that theme is trivial), in the past it has taken me about an hour to get it right.

Here's the diff:

diff overall_header.html ../../prosilver/template/overall_header.html
81d80
< <style type="text/css" media="all">@import "/themes/i1media/style.css";</style>
84,85c83,84
< <!-- link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" / -->
< <!-- link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" / -->
---
> <link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
> <link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />
91a91
>
93,109c93,121
<  
< <!-- start i1media -->
< <body>
<   <div id="wrap">
<       <div id="header"></div>
<       <div  id="menu">
<     <ul>
<       <li><a href="/">Home</a></li>
<       <li><a href="/forum">Forum</a></li>
<                 <li><a href="/drupal+phpbb">Drupal+phpBB</a></li>
<       <li><a href="/services">Services</a></li>
<               </ul>
<       </div>
<  
<       <div id="content-wrap">
<     <br>
< <!-- end i1media -->
---
>
> <div id="wrap">
>       <a id="top" name="top" accesskey="t"></a>
>       <div id="page-header">
>               <div class="headerbar">
>                       <div class="inner"><span class="corners-top"><span></span></span>
>
>                       <div id="site-description">
>                               <a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
>                               <h1>{SITENAME}</h1>
>                               <p>{SITE_DESCRIPTION}</p>
>                               <p style="display: none;"><a href="#start_here">{L_SKIP}</a></p>
>                       </div>
>
>               <!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
>                       <div id="search-box">
>                               <form action="{U_SEARCH}" method="post" id="search">
>                               <fieldset>
>                                       <input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
>                                       <input class="button2" value="{L_SEARCH}" type="submit" /><br />
>                                       <a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
>                               </fieldset>
>                               </form>
>                       </div>
>               <!-- ENDIF -->
>
>                       <span class="corners-bottom"><span></span></span></div>
>               </div>
>
148a161,162
>       </div>
>

I am really a newbie to

MGadAllah's picture

I am really a newbie to html, is it possible if someone help me to do it? Honestly Arkepp I do not know what to do with the above code you posted. I am really trying my best to let it work. I am sorry for bothering you guys with my questions. but really please advise.

Unfortunately there's no

arkepp's picture

Unfortunately there's no generic way, it's very much dependent on what theme you choose for phpBB and what for Drupal.

Not sure this will be of any use, you can't really do much theming without understanding HTML and CSS, that's just the nature of the beast. But a quick explanation of the diff above:
Lines prefixed with < show what I have in my overall_header.html
Lines prefixed with > show the standard overall_header.html that comes with the proSilver theme in phpBB.

So "<" followed by ">" means that I have inserted <[stuff] and removed >[stuff]

In essence I am
1) Adding @import "/themes/i1media/style.css";
2) Commenting out (two lines)
3) Deleting "

<

div id="page-header">" and replacing it with the top menu line I have in Drupal (just go to the front page, and do view source, cut'n'paste)

Note that there's a tag in there that probably shouldn't be there,,, diffs can be quite revealing ;)

Well ... I will do my best

MGadAllah's picture

Well ... I will do my best to learn and understand as possible as I can but I am still hope to find a help here mate.
I've installed Drupal 5.7 and phpbb 3.0.0, and I am using the garland themes as my default theme. Please take a look here (http://pro-designations.info) and I hope to integrate drupal (garland themes) and forum theme (prosilver themes). So is it possible to find a help for this thing.
Thanks

I don't know the answer

arkepp's picture

I don't know the answer (there's more than one way, anyway). Garland is not an easy theme, but if you start and show us where you are stuck, I am sure we can help?

I just want to add a link

MGadAllah's picture

I just want to add a link for homepage in the forum for the time being till I know more information. I mean beside the links exists in the forum header to add just a link titled home that is linked to homepage, and place it at any place of the forum header. That is till I understand and learn more html, and css. Is it possible?
Thanks

I found this useful for an

krisbfunk's picture

I found this useful for an iframes solution that dynamically resizes to the height of the forum:

http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm

Menus to choose for phpbb3

akis p's picture

Have a look,
http://www.phpbb.com/community/viewtopic.php?f=74&t=577293&hilit=prosilv...
http://www.phpbb.com/community/viewtopic.php?f=74&t=575822&hilit=menu+in...

There are many ways .
Here is the menu that we use on our forum at northepirus.com

<div class="navbar">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="linklist navlinks">
<li class="icon-home"><a href="/" title="κύρια σελίδα του ιστοχώρου μας" accesskey="n">βόρεια ήπειρος</a>
</li><li class="icon-chat"><a href="./index.php" title="το στέκι των βορειοηπειρωτών" accesskey="h">φόρουμ</a>

</li><li class="icon-chat"><a href="/chat/" title="μπλα μπλα" accesskey="c">chat</a>
</li><li class="icon-ucp"><a href="viewtopic.php?f=58&amp;t=12&amp;start=0&amp;st=0&amp;sk=t&amp;sd=a" accesskey="a">ποιοι είμαστε</a>
</li><li class="icon-bump"><a href="/gallery/" title="Η γκαλερί της Βορείου Ηπείρου" accesskey="l">γκαλερί</a>
</li><li class="icon-members"><a href="memberlist.php?mode=&amp;sk=m&amp;sd=a" accesskey="u">η ομάδα</a>
</li><li class="icon-faq"><a href="/contact%20" accesskey="m">επικοινωνία</a>
</li><li class="icon-bump"><a href="/tagadelic/chunk/3" title="Προς άλλους ιστοχώρους" accesskey="l">συνδέσεις</a>
</li>
</ul>
<span class="corners-bottom"><span></span></span></div>

To use it change the links,titles, names.
You can add or remove a link like above ,
<li class="icon-bump"><a href="/tagadelic/chunk/3" title="Προς άλλους ιστοχώρους" accesskey="l">συνδέσεις</a></li>

Open in your forum folder go to
/styles/prosilver/template/overall_header.html
or
/styles/prosilver/template/overall_footer.html
and put the above div code where you prefer,
After go to the admin section and clear the cache and you are done.
Thanks

First of arkepp thanks for

grawat's picture

First of arkepp thanks for the module. I'm using this to integrate phpbb forum with my site.

http://yeawo.com/forum/

I tried getting the global header from drupal to show on my phpbb forum and it looks alright except theres a blank line at the top above the header, could someone please tell me how to get rid of that.

Set 'padding: 0;' on your

archard-gdo's picture

Set 'padding: 0;' on your body css element.

phpbb

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week