As many of you know the stats in the phpbb forums only show those related to phpbb and not for the entire phpnuke site(fig 1). In this tutorial I will show you how to get the correct stats displayed inside your forums.
fig1. 
Files to edit:
includes/page_header.php
Steps :
Open includes/page_header.php and find the following line of codes.
Above that line we are going to place the codes to get the phpnuke stats.
I have taken the total online, members online, guests online and users online from phpnuke tables. This should give a more accurate account of who exactly is online.
Next we will change what is outputted to the template file. Scroll down a few lines and find the following
Replace the two lines with the following :
That's it! Enjoy and please Back Up as usual before making any major changes.