I am using an advanced theme, and overwrite the function body_content I added: // do not show to loggedin users and show only on question pages if( empty($userid) && ($this->template=='question') ) { $this->output('<p>Hi stranger</p>'); } empty($userid) should return false if a user is logged in. However, even for logged-in users the output message is shown (i.e. empty($userid) returns true). Anyone can confirm this + suggest a workaround? thx
Call qa_is_logged_in(...) which is defined in qa-app-users.php
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.