Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Plugins by
A user of my website has asked this question. As users could be interested in following new (future) tags, how can they be notified of any new tags being added to the database?

Even if there is no notification, how can they determine which new tags have been added since they last checked?

Even if such a feature is not available to users, is something available to admins?
Q2A version: 1.8.0-beta2

1 Answer

+1 vote

There's nothing like this built into Q2A, but it's possible using a plugin. You could create an event plugin that listens to the 'q_post' event, and when a new question is posted check to see if each of the tags has been used before.

The simplest way to check the tags would be code like this:

$sql = 'SELECT * FROM ^words WHERE word IN ("tag1", "tag2")';
$words = qa_db_read_all_assoc(qa_db_query_sub($sql));

Where you put in the tags from the current question. Then look at the 'tagcount' key in each of the array items. If that's equal to 1, send an email using qa_send_notification()