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.

Re: Add navigation button

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.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Add navigation button

example of second method:
http://punbb.org/forums/viewtopic.php?id=3195

Re: Add navigation button

ok, tnx for help. i know some basic PHP so i'm going to try the second method.

5

Re: Add navigation button

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.

Re: Add navigation button

Paul wrote:

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.

Re: Add navigation button

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>.

Find what you want...  Where you want it... www.truelocal.com

8 (edited by Paul 2004-03-19 11:27)

Re: Add navigation button

Cailean wrote:

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".

Re: Add navigation button

yeah, I grabbed the source after posting...  thanks anyway!

Find what you want...  Where you want it... www.truelocal.com