Forum Moderators: open

Message Too Old, No Replies

Problem while trying to add a nav bar to my site. Code placement.

phpbb, div tags, html, php, css

         

BossChase

6:47 am on Nov 23, 2008 (gmt 0)

10+ Year Member



Hello

I'm trying to add a navigation bar to the top of my phpbb page. I'm having trouble getting it to show up. I don't know if my code is wrong or if I'm working in the wrong Div. I'm just trying to add 3 or 4 test links in my overall_header.tpl. I must be putting the codes in the wrong place. Would you mind taking a look at it and see if you can give me an example of what the links should look like?

This is out of my overall_header.tpl file. Its the default nav bar. I'm trying to add a 2nd line of links under it.

[Current CODE]
<div id="wrapheader">

<div id="menubar"><div class="menubar">
<!-- IF not S_IS_BOT -->
<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>
<!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS -->&nbsp;¦&nbsp;
<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
<!-- ENDIF -->
<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN -->&nbsp;¦&nbsp;
<span style="color: red;">{L_BOARD_DISABLED}</span>
<!-- ENDIF -->
<!-- IF not S_IS_BOT -->
<!-- IF S_USER_LOGGED_IN -->
<!-- IF S_DISPLAY_PM -->&nbsp;¦&nbsp;
<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a>
<!-- ENDIF -->
<!-- ELSEIF S_REGISTER_ENABLED --> &nbsp;¦&nbsp;
<a href="{U_REGISTER}">{L_REGISTER}</a>
<!-- ENDIF -->
<!-- ENDIF -->&nbsp;¦&nbsp;
<a href="{U_FAQ}">{L_FAQ}</a>
<!-- IF S_DISPLAY_SEARCH -->&nbsp;¦&nbsp;
<a href="{U_SEARCH}">{L_SEARCH}</a>
<!-- ENDIF -->
<!-- IF not S_IS_BOT -->
<!-- IF S_DISPLAY_MEMBERLIST -->&nbsp;¦&nbsp;
<a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a>
<!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN -->&nbsp;¦&nbsp;
<a href="{U_PROFILE}">{L_PROFILE}</a>
<!-- ENDIF -->
<!-- ENDIF -->

</div>
</div>
[CODE]

I just don't know what div I need to add code into to get it to work. I have tried adding in this block of code in a few different places but nothing ever changes the code never shows up. I don't know much about php and my css is very limited. If thats where my problem is I welcome any advice!

[Test CODE]
<ul>
<li><a href="/">Home</a></li>
<li><a href="/forum/">Forum</a></li>
<li><a href="/survey/">Survey</a></li>
<li><a href="/about/">About</a></li>
<li><a href="/contact/">Contact</a></li>
</ul>
[CODE]

Refreshing my screen and purging my cache and still nothing shows up.

Could anyone please give me an example of how the code should be set up to create the links or let me know if I should be trying to work in different code besides html?

Thanks so much for the help!

swa66

1:38 am on Nov 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



phpBB 3.x needs an administrator of the board to take action ("refresh") in the administrator control panel (ACP) for changes in the templates to be actually used.

From the ACP: styles/templates/refresh (of the used template of course, if you have more than one installed.

Basically the template is a language of phpBB itself to define how it generates the html. So, it's not html, but you can if you understand the basics of it add raw html. Just be careful with comments an curly braces.

BossChase

1:09 pm on Nov 24, 2008 (gmt 0)

10+ Year Member



Thanks for the reply. I have the basics down and I am refreshing the template. I've tried to go down to the basics and i've been trying to insert <h1>TEST</h1> all around the logo image but even after refreshing the template and purging the cache nothing changes.

I just can't seem to find the correct place to put the code.

BossChase

4:03 pm on Nov 24, 2008 (gmt 0)

10+ Year Member



Problem soulved!
Turns out I have two styles that are working together. I got it in order now thanks