Topic: Placing a menu(which uses php) on top of the first header block.

I'm trying to place a menu from our website at the top of the punBB layout.
The menu uses php.

1) Where should i place the html & php code for the menu. (I thought about main.tpl , but tpl files don't get parsed by the php engine right?)

2) How do i move the entire forum down a bit so there will be room at the top to place the menu.

Re: Placing a menu(which uses php) on top of the first header block.

http://punbb.org/docs/faq.html#faq3_4

~James
FluxBB - Less is more

Re: Placing a menu(which uses php) on top of the first header block.

Thanks, that worked.
Now i only need to know how to move the entire forum down. Does anyone happen to know if this is possible?

Re: Placing a menu(which uses php) on top of the first header block.

So long as you put the menu above the forum content, the forum should move down by itself.

-Master Hob Bramble of Willowbottom

Pardon me, good sir, but it appears that your diving apparatus has a leak.
Perpetual Thursday | Alternative-Internet.com | hobbramble.deviantart.com

Re: Placing a menu(which uses php) on top of the first header block.

Hob Bramble wrote:

So long as you put the menu above the forum content, the forum should move down by itself.

That didn't work. I tried the following in main.tpl:

<div id="punwrap" style="position:relative; top:20px;">

And it seemed to work.

Re: Placing a menu(which uses php) on top of the first header block.

zentropy why put that in the main.tpl
add that to the style_css.css

add
#punwrap{
margin-top:20px;}

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Placing a menu(which uses php) on top of the first header block.

quaker wrote:

zentropy why put that in the main.tpl
add that to the style_css.css

add
#punwrap{
margin-top:20px;}

Q

Thanks for the tip, will do.

8 (edited by zentropy 2008-01-09 23:54)

Re: Placing a menu(which uses php) on top of the first header block.

I can't seem to find that particular css file(style_css.css). What's the path? (using 1.2.16)

Re: Placing a menu(which uses php) on top of the first header block.

He doesn't mean literally a file with the name style_cs.css. Replace style with the name of the style you're using. So Oxygen would be Oxygen_cs.css

10 (edited by zentropy 2008-01-10 00:15)

Re: Placing a menu(which uses php) on top of the first header block.

Smartys wrote:

He doesn't mean literally a file with the name style_cs.css. Replace style with the name of the style you're using. So Oxygen would be Oxygen_cs.css

Aha, thanks.

PS: Wouldn't that mean though that only Oxygen would be moved 20px down? Suppose a user chooses a different style in his/her, wouldn't the forum be at it's default position again in that style?

11 (edited by quaker 2008-01-10 00:20)

Re: Placing a menu(which uses php) on top of the first header block.

then go find base.css
and add it there.
it will affect all the styles..

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Placing a menu(which uses php) on top of the first header block.

quaker wrote:

then go find base.css
and add it there.
it will affect all the styles..

Q

Thanks.