Topic: How to get logged in user ID out of PunBB without being in it?!

Hi guys,

I am using PunBB with Joomla (CMS) and am trying to integrate it so i can display a "Edit Profile" and "Logout" link for PunBB, but on the Joomla menu system. I need to somehow get the currently logged in user's id out to be able to do this, as i know the URLs to (for example, edit a profile for someone with user id 99) would be:

http://domain/profile.php?id=99

But i have no idea how to extract the "99" for the current user?

can anyone help?

Re: How to get logged in user ID out of PunBB without being in it?!

By the way, i would like to include the least amount of common.php etc files from PunBB as for some reason all the non-forum pages work fine with these, but i have blank pages on the forums when including them (as they are already included?).

Re: How to get logged in user ID out of PunBB without being in it?!

Please, any ideas, i really would like to sort this out smile

Re: How to get logged in user ID out of PunBB without being in it?!

http://punbb.org/docs/dev.html#integration

Re: How to get logged in user ID out of PunBB without being in it?!

That doesnt work for me - whenever i try using that example it outputs nothing but blank...is there any way to read the pun_bb cookie directly to get the logged in users ID?