Topic: Logout Link

Hi,

I use another program that registers users and logs them in and out of PunBB as well as the main site.  Those functions work normally.  I need to edit the logout link in Punbb to  http://www.site.com/index.php?m=account_logout.  I tried to edit in functions.php but is broke the script and site could not be reached.  I removed the code from functions.php  for logout and added link though the Punbb control panel.  I need the link to only be visible when a user is logged in.  Currently the link for logout shows even when not logged in.

My question is how do I add a link that will display only when a user is logged in.  It does not look good to see logout link when not logged in  sad

Help is appreciated.

Thanks,
Brian

2

Re: Logout Link

What you have a URL-scheme? Open, such as the Default and replace in forum_urls.php string:

'logout'                        =>    'login.php?action=out&id=$1&csrf_token=$2',

on this:

'logout'                        =>    'http://www.site.com/index.php?m=account_logout',