Laric
Active member
I am trying to do an addon that essentially is a template and a bunch of code behind it to feed the template with data.
I just don't quite get how to do such an addon. I have made addons before that hooks into different places in xf. But not one that is 'on it's own'.
I want some code to execute when the template is rendered. But where do I start?
I am trying to add a ventrilo status to the sidebar.
"<xen:include template="laric_ventrilostatus">" should kind of trigger the code so the variables I return is available to the template right?
Anybody have a simple addon that does this? I tried to look at TaigaChat but that addon is alot more complex than what I need.
I just don't quite get how to do such an addon. I have made addons before that hooks into different places in xf. But not one that is 'on it's own'.
I want some code to execute when the template is rendered. But where do I start?
I am trying to add a ventrilo status to the sidebar.
"<xen:include template="laric_ventrilostatus">" should kind of trigger the code so the variables I return is available to the template right?
Anybody have a simple addon that does this? I tried to look at TaigaChat but that addon is alot more complex than what I need.