How to have forum set up like this

Gio

FP's Greek Ambassador
Joined
Nov 15, 2011
Messages
9,302
Reaction score
919
FP$
32,339
I'll be using GeeksHut for example. If you click on their forums link(Clicky), you'll see a global header. How does one set up a global header or footer?
 
I'm pretty unfamiliar with phpBB, but I would assume you just copy and paste the header's HTML code in the correct place in each of the templates.
 
I also am unfamiliar with PHP, but search for a file named "global.php" or "header.php" in your forum files. Place a call to your wanted header file in the relevant place in either of those files, not sure which it'd be in phpBB but in MyBB I believe it's global.php.
 
Wait, it looks done. What are you trying to accomplish? It's rather easy actually, but I'm a bit confused on what you're actually asking.
 
Without getting technical you do this:
Go to all your templates
Find the template that has something like:
<header>
<forum>
<footer>
Make a new reference for your new header bar thingy. Call it <thingy>
then go back to the template from before and do:
<thingy>
<header>
<forum>
<footer>

now go to your header template.
remove anything you dont want.

Your <thingy> will be something like
<div class="thingy">blahblahblah</div>

then in your CSS
.thingy {
all your random stuff here such as width (100%)
}

its been a while but i did this in mybb and it should be similar in phpbb. good luck<br /><br />-- 22 May 2013, 06:35 --<br /><br />Also, just view their page source to get an idea of what it may look like.
Here's their CSS:
http://forums.geekshut.com/style.php?id ... 6a8fff03a5

You can check out the CSS for making the Logo get placed there on the left and other stuff too
 
Jake said:
Wait, it looks done. What are you trying to accomplish? It's rather easy actually, but I'm a bit confused on what you're actually asking.
He's saying he wants to put the same header on his blog/website and forum, like we have on Geeks Hut.
 
All you have to do is edit the header and a few other files so that the css seems to be inherited from your blog, while it's actually two completely different files 🙂
 
Giorgios said:
I'll be using GeeksHut for example. If you click on their forums link(Clicky), you'll see a global header. How does one set up a global header or footer?

Just put the markup and styles at right palce in styles/<style-name>/template/overall_header.html.... You can put css inside styles/<style-name>/theme/common.css, which is better idea than putting it with markup... I hope it helps.
 
amalfra said:
Giorgios said:
I'll be using GeeksHut for example. If you click on their forums link(Clicky), you'll see a global header. How does one set up a global header or footer?

Just put the markup and styles at right palce in styles/<style-name>/template/overall_header.html.... You can put css inside styles/<style-name>/theme/common.css, which is better idea than putting it with markup... I hope it helps.

Exactly this.

It's actually really simple to do, and for a header it would be quite easy to copy the code from a tutorial and put it in, editing your links, and css (for styling) of course.
 
Back
Top Bottom