Administrators simpilot Posted November 2, 2009 Administrators Report Share Posted November 2, 2009 Nabeel, I have four modules catching the same event - 'registration_complete' 1 - forum registration 2 - teamspeak registration 3 - automatic AIRMail welcome message 4 - automatic forum post announcing the new hire They all work individually if I remove the other three from the modules folder, but when I have all four in the folder only one will catch the event. Do i need to create an event at the end of each module to call the next, or should they all be able to catch the same event? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 2, 2009 Administrators Report Share Posted November 2, 2009 Sounds like a bug on my end, you are registering the events, right? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted November 2, 2009 Author Administrators Report Share Posted November 2, 2009 This is basically what I am using at the start of each function to register it and look for the event... public function __construct() { CodonEvent::addListener('ForumRegistration', array('registration_complete)); } public function EventListener($eventinfo) { if($eventinfo[0] == 'registration_complete') { ForumRegistrationData::register_user(); } } Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 2, 2009 Administrators Report Share Posted November 2, 2009 What's happening in ForumRegistrationData::register_user();? You probably don't need a separate data class. The data classes should be used if you're sharing common code. Is there an echo coming out? You probably also need some way to test events without having to registering a user every time. I'll cook that up as well. http://bugs.phpvms.net/ticket/2 Quote Link to comment Share on other sites More sharing options...
Tom Posted November 2, 2009 Report Share Posted November 2, 2009 Sorry this is totally not helpful but.. You have a working teamspeak registration code? Care to share? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted November 5, 2009 Author Administrators Report Share Posted November 5, 2009 Sorry this is totally not helpful but.. You have a working teamspeak registration code? Care to share? Sorry Tom - Just caught this.... More than happy to share. I am on the road for work right now and I have the module running on my loacl development server at home. Should be home by the weekend and I will post it. It still needs to be cleaned up a little but I got it to work. The biggest hurdle was getting the password over to teamspeak. Also it is only working on teamspeak version2, I have not got it to work on the new version 3 beta teamspeak. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 5, 2009 Administrators Report Share Posted November 5, 2009 Hey, I meant to say, I found a bug for this and it was fixed in build 786 http://bugs.phpvms.net/ticket/2 Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted November 5, 2009 Author Administrators Report Share Posted November 5, 2009 Thanks Nabeel - I will move up to 786 on the local server and try it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.