Check for thread starter

MOZ

Well-known member
How can I check the visitor on a page is the thread starter in my ControllerPublic.

TIA
 

Jake Bunce

XenForo moderator
Staff member
Assuming $thread contains the thread record:

Code:
$visitor = XenForo_Visitor::getInstance();

if ($visitor['user_id'] == $thread['user_id'])
...
 
R

ragtek

Guest
XenForo_Visitor::getUserId() == $thread['user_id']

should work



edit: niunjaad
 
Top