MOZ Well-known member Jul 31, 2012 #1 How can I check the visitor on a page is the thread starter in my ControllerPublic. TIA
Jake Bunce Well-known member Jul 31, 2012 #2 Assuming $thread contains the thread record: Code: $visitor = XenForo_Visitor::getInstance(); if ($visitor['user_id'] == $thread['user_id']) ...
Assuming $thread contains the thread record: Code: $visitor = XenForo_Visitor::getInstance(); if ($visitor['user_id'] == $thread['user_id']) ...
R ragtek Guest Jul 31, 2012 #3 XenForo_Visitor::getUserId() == $thread['user_id'] should work edit: niunjaad