XF 1.5 Passing Var to thread_view Template


Well-known member
I've added an event listener, using event 'template_hook' & hint 'XenForo_ViewPublic_Thread_View' using my hook/function identified in my Listener.php file.

However, I'm struggling with passing/using the var defined in my listener file in the thread_view template. What's needed in the listener and/or in my templates to make this work? I've read dozens of threads today and have spent way too long testing...really use the help.