Topic: Add navigation button
How can I add a navigation button in the header? Above here you have 'Go back to PunBB.org'. I want a button just like that linking to the frontpage of my site.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Add navigation button
How can I add a navigation button in the header? Above here you have 'Go back to PunBB.org'. I want a button just like that linking to the frontpage of my site.
You can either add it before/after <pun_navlinks> in the template file main.tpl in include/template/ or you can add it manually to the function generate_navlinks() in include/functions.php. If you don't know any PHP, I recommend the first method.
example of second method:
http://punbb.org/forums/viewtopic.php?id=3195
ok, tnx for help. i know some basic PHP so i'm going to try the second method.
Won't those methods add the link to the navbar. I thought basalphenaar wanted to add a home link to the far right of the header like on this board.
Won't those methods add the link to the navbar. I thought basalphenaar wanted to add a home link to the far right of the header like on this board.
it already works. so this is the right method.
I get the editing the .tpl file but how do you get it aligned to the right on the same line as the nav-bar?
As it is now I have a link right-aligned on the line between the nav and the status line using <p>.
I get the editing the .tpl file but how do you get it aligned to the right on the same line as the nav-bar?
As it is now I have a link right-aligned on the line between the nav and the status line using <p>.
Here is the way it is done on this site
<table class="punmain" cellspacing="1" cellpadding="4">
<tr class="punhead">
<td class="punhead">
<span class="puntitle"><pun_title></span><br>
<pun_desc>
</td>
</tr>
<tr>
<td class="puncon1">
<table class="punplain" cellspacing="0" cellpadding="0">
<tr>
<td>
<pun_navlinks><br><br>
<pun_status>
</td>
<td class="puntopright">
<a href="http://punbb.org/">Go back to PunBB.org</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
If in doubt use "view source".
yeah, I grabbed the source after posting... thanks anyway!
PunBB Forums → PunBB 1.2 troubleshooting → Add navigation button
Powered by PunBB, supported by Informer Technologies, Inc.