Stormraven
Trusted Member
- Joined
- Oct 24, 2010
- Messages
- 1,836
Hi guys,
I've created a small hook with a setting called 'Enabled'. This is the setup of the option:

Although it doesn't seem to working. According to a friend, it's best to learn by looking through the way other addons work. So this is what I've been doing. I can't figure out if I should include this option, being as addons can be enabled or disabled on the main admin page, and even if it can be used, I can't figure out why it's not working. Do I need to put something in the template?
Can someone help me out please? Sorry if this is a bit confusing, it's been a very long day.
EDIT: I added this to the Listener.php but it's still not working:
I've created a small hook with a setting called 'Enabled'. This is the setup of the option:

Although it doesn't seem to working. According to a friend, it's best to learn by looking through the way other addons work. So this is what I've been doing. I can't figure out if I should include this option, being as addons can be enabled or disabled on the main admin page, and even if it can be used, I can't figure out why it's not working. Do I need to put something in the template?
Can someone help me out please? Sorry if this is a bit confusing, it's been a very long day.
EDIT: I added this to the Listener.php but it's still not working:
Code:
$options = XenForo_Application::get('options');