It looks like you're new here. If you want to get involved, click one of these buttons!
Hello all,
I'm currently looking at creating a little plug-in for my forum that will send me a mail (performing logic checking and formatting the mail, so the built in notification isn't what I'm looking for) when a user posts a comment, starts a new discussion or sends a conversation message. I'm not sure what I can hook into to check this.
Is there an event or something that covers both discussions and conversations?
Thanks, Allan
Answers
did you look into the built-in notification code to see if you can just leverage the same hooks?
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •oh and here a list of every known event.
http://www.homebrewforums.net/vanillawiki/index.php/Event_List
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I've been digging around the conversations source, but it doesn't look like there are any suitable events that I can hook onto. In the Save function for "class.conversationmodel.php" it doesn't fire any events at all. There is the notification that the conversation fires off, but I don't see how I could hook onto that.
Any suggestions on how to write a plug-in that sees messages both in the main forum and conversations are very welcome indeed!
Allan
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Oh damn - I clicked Accept by mistake... The events list is useful, but it doesn't appear to show something I can use in this case.
Allan
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •you can have an email sent to u when a user start a Discussion or posts a comment but i dont think u can get an email when user sends CONVERSATION message - because they are kind of private messages
Theme Charcha for great desktop and mobile experience! - drop me a message :)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •You can get an email when someone send you a message, but I want to create my own notification rather than using the built in e-mail option (as noted above).
I just don't know how to hook on to either the notification system to intercept those notifications and also do my own, or how to hook on to the messages being saved to then do my notification.
Allan
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •