Include custom template (which has its own controller) in forum_list

Nudaii

Well-known member
howdy i create a custom ( a varation of a chatbox) which works fantastic on its own page, but ofcourse when pulling the template as an include template to forum list it gives an error
  1. Invalid argument supplied for foreach() in **/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 82:

    82: foreach ($XFCHAT AS $XFCHATVar)
is there a way to have it pull the varible from the controller used for the addon itself?
 

[F.A] Walky

Active member
howdy i create a custom ( a varation of a chatbox) which works fantastic on its own page, but ofcourse when pulling the template as an include template to forum list it gives an error
  1. Invalid argument supplied for foreach() in **/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 82:

    82: foreach ($XFCHAT AS $XFCHATVar)
is there a way to have it pull the varible from the controller used for the addon itself?
One way, would be to use a template_hook, to pass variables through it :)
 
Top