View Full Version : Looking for a special addon
IngoPan
07-19-2012, 09:10 AM
Hallo,
I am looking for a special addon for vB4. I´d like to "scan" posts for specific "tags" and then, if one of the keywords is mentioned in the post, i´d like to mail the thread link to a specific email adress. Is that possible ?
Thansk in advance, Ingo
Sarteck
07-19-2012, 09:38 AM
Short answer, yes.
You could make a plugin on newpost_process that would search the content of the post for your specified tags, and if one or more is found, have it e-mail the specified address.
Something like,$flag_for_email = false;
$flags = array('alertword1','alertword2');
foreach ($flags AS $flag) {if (stristr($post['message'],$flag)) {$flag_for_email = true;}}
if ($flag_for_email) {do_my_email_stuff($post['threadid']);}
IngoPan
07-19-2012, 11:16 AM
Short answer, yes.
You could make a plugin on newpost_process that would search the content of the post for your specified tags, and if one or more is found, have it e-mail the specified address.
Something like,$flag_for_email = false;
$flags = array('alertword1','alertword2');
foreach ($flags AS $flag) {if (stristr($post['message'],$flag)) {$flag_for_email = true;}}
if ($flag_for_email) {do_my_email_stuff($post['threadid']);}
Thanks for the fast and serious help!
Any help on how i make an addon in "newpost_process" ?
(Yes, i am a newbie :-) ) Thanks in advance.
borbole
07-19-2012, 12:31 PM
You can do it from the Plugins section in your Acp.
...and here's a link to the instructions from the vb manual, in case that helps: https://www.vbulletin.com/docs/html/main/add_plugin (newpost_process is the Hook Location).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.