Quote:
Originally Posted by Dave
The condition $post['userid'] == $bbuserinfo['userid'] checks if the userid of the post is the same as the userid of the current logged in user. Guests have a userid of 0 which is why it never (should) evaluates to true.
Have you tried changing == to ===? That will also match the data type.
|
Yes. I tested it with true === false as well. The condition was ignored regardless of contents.
--------------- Added [DATE]1500316988[/DATE] at [TIME]1500316988[/TIME] ---------------
Quote:
Originally Posted by MarkFL
Try changing it to:
HTML Code:
<vb:if condition='$post["userid"] == $bbuserinfo["userid"]'> shown</vb:if>
|
This had no effect.
Once again, the code works when logged in. It fails when logged out.