HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Get the post/topic creator name
public function discussionController_BeforeCommentDisplay_handler($sender, $args) { decho($args['Comment']->InsertUserID, 'comment user id'); decho($args['Discussion']->InsertUserID, 'discussion user id'); } When I put this in a plugin, I get the correct information. Maybe the problem is the way you write your code. Do you… -
Re: Get the post/topic creator name
Örks. Are you really convinced that this is needed? Most of the times using css and a themehooks file is all you need. But anyway: $Sender->EventArguments['Discussion']->InsertUserID will give you the discussion authors user id in this case. In your code above you've used an ampersand before the variable name. I do not…
2 results