PDA

View Full Version : add another link bar?


innerdude
25 Dec 07, 23:56
Hi is it possible to add another link bar on top (or bottom) of the bar with the login/out, UCP, messages, etc? I want to add some links to the rest of my site.

Thanks

momentum
26 Dec 07, 01:40
Pretty much anything is possible. Have a look at the current table data in your overall_header.tpl file and you'll see how it's all made up.

Craig.

Mortality
26 Dec 07, 01:40
you can add new links to the nav bar by.

1) open your overall_header.html file

2) find

<td class="navrow">
<!-- IF not S_IS_BOT -->

3) below it put your new links in like so

<a href="http://www.mortalityguild.co.uk/">Guild Homepage</a> •
<a href="http://www.mortalityguild.co.uk/phpRaid/">Raid Planner</a> •


if you want to add a new link bar you would need to

1) find <td class="navrow">

2) find the first </td> after it

3) copy the whole thing

4) You now have somthing like

<td class="navrow">
<!-- IF not S_IS_BOT -->
<a href="http://www.mortalityguild.co.uk/">Guild Homepage</a> •
<a href="http://www.mortalityguild.co.uk/phpRaid/">Raid Planner</a> •
<!-- IF S_USER_LOGGED_IN --><a href="{U_PROFILE}">{L_PROFILE}</a> • <!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN -->
<!-- IF S_DISPLAY_PM --><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a> • <!-- ENDIF -->
<!-- ELSE --><a href="{U_REGISTER}">{L_REGISTER}</a> • <!-- ENDIF -->
<!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS --><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a> • <!-- ENDIF -->
<a href="{U_FAQ}">{L_FAQ}</a>
<!-- IF S_DISPLAY_SEARCH --> • <a href="{U_SEARCH}">{L_SEARCH}</a><!-- ENDIF -->
<!-- IF not S_IS_BOT -->
<!-- IF S_DISPLAY_MEMBERLIST --> • <a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a><!-- ENDIF -->
<!-- ENDIF -->
<!-- IF not S_IS_BOT --> • <a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- ENDIF -->
</td>

5) Delete the stuff you need from it.

<td class="navrow">
<a href="http://www.mortalityguild.co.uk/">Guild Homepage</a> •
<a href="http://www.mortalityguild.co.uk/phpRaid/">Raid Planner</a> •
</td>

6) paste that under the </td> you will now have 2 nav bars.


NOTE: Make a backup of this file before you edit it.

every time you make a change to the template file you will need to delete the cache.

To delete the cache go to your ACP and click the purge cache button.

innerdude
26 Dec 07, 07:39
Thanks alot guys! I'm finally getting the hang of phpbb and really like this theme! :D

innerdude
26 Dec 07, 07:46
Now...can I edit it to include the link bar from my main site (styles, colors,etc)? I am using Joomla for the main site. Then I would like to integrate our photo gallery too...

Thanks in advance

Chris

momentum
26 Dec 07, 09:47
Why not just add a link to your photo gallery in the new bar you've just created?

Craig.

innerdude
26 Dec 07, 11:54
I would really like to have the same nav bar in all three sections...for continuity.

Heres what Im talking about:

top nav bar from http://blackbear.joomlabear.com/

and put that nav bar on top of current in my forums
http://forums.avdubs.org

and again in my gallery right below header
http://avdubs.org/gallery

do you guys think its possible?

Mortality
26 Dec 07, 13:16
yep but you will need to add stuff to the .css