This is the first modification for punbb I have released and I didn't feel like making a punres account so sorry if the format is a little off for releasing a mod. If people like the mod I will change it to the correct format and release it to punres.
I was trying to add a drop down menu that changed states when the user was logged out, in, and when it was guest just like the normal punbb menu does and I got it to work. I figured I would share what I learned with everyone else.
Ok, step 1 make a new css file in your include/template directory, call it drop.css. Here is what you should put in it.
Now you have to open up your functions.php file in your include directory. It really doesn't matter where you put the function but I put mine after my generate_navlinks() function just to keep a little bit organized. Now, put the following function in your functions.php file.
Now open up header.php and we need to do two things. Search the file for
and after you find the stylesheet section paste the following line of code in on the next line.
Now, search header.php for
and put the following line of code on the next line.
Ok, we are almost done now. Open up your include/template/main.tpl file and search for
Now replace those lines of code with
Now you are all done! It wont blend into your forum very well but stylizing it is your job, I just got it to work :).
The end result will look something like this when you are logged in and you mouse over.

I didnt write the code to get the drop-down menu to work. I used the menu available here. I only did the php to make it work with punbb.
I will update it so that it puts the extra links that you add through the admin console in there later today. :)
Happy coding.