xpl0iter
Active member
I am trying to create my first ever addon. I need some help.
Here I am going to explain all the stuffs I have done till so far.
Folder Structure:
Library
---WGBB
------dailyCount
-----------Listener.php
Contents of Listener.php
This is my Addon Configuration:
This is my Code Event Listener Configuration:
But this simply is not working, is there anything that I am doing wrong?
Anyhelp will be very much appreciated!
Thanks.
Here I am going to explain all the stuffs I have done till so far.
Folder Structure:
Library
---WGBB
------dailyCount
-----------Listener.php
Contents of Listener.php
Code:
<?php
class WGBB_dailyCount_Listener
{
public static function template_hook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
{
if($hookname == 'ad_above_top_breadcrumb')
{
$contents .= '<li><a href="http://www.webgurubb.com">Our Tab</a></li>';
}
}
}
?>
This is my Addon Configuration:
This is my Code Event Listener Configuration:
But this simply is not working, is there anything that I am doing wrong?
Anyhelp will be very much appreciated!
Thanks.