0
serenaboschetti
hi.. notification dont work, and widget leadboard and top question dont work..... anymore.. solutions?
2 Subscribers
Submit Answer
1 Answers
Best Answer
0
Welcome to our forum.
Can you please explain what issue you are facing? we also using the QA plugin to this forum, notification is working fine.
Regards
Hi, I solved it through a snippet. With the following code:
global $ wpdb;
$ charset_collate = $ wpdb-> get_charset_collate ();
$ table_notification = $ wpdb-> prefix .'qa_notification ';
$ sql = "CREATE TABLE". $ table_notification. "(
id int (100) NOT NULL AUTO_INCREMENT,
q_id int (100) NOT NULL,
a_id int (100) NOT NULL,
c_id int (100) NOT NULL,
user_id int (100) NOT NULL,
subscriber_id int (100) NOT NULL,
action VARCHAR (50) NOT NULL,
status VARCHAR (50) NOT NULL,
datetime DATETIME NOT NULL,
UNIQUE KEY id (id)
) $ charset_collate; ";
require_once (ABSPATH. 'wp-admin / includes / upgrade.php');
dbDelta ($ sql);
in particular, the line that has solved is:
require_once (ABSPATH. 'wp-admin / includes / upgrade.php');
dbDelta ($ sql);
Without it it did not work. Strangely enough, I had to force the database update for this table, even though it was non-existent.
The problem remains with the email plugin, it works for comments, it works for votes, but it does not work for the answers to the subscribed posts. In this case I can not debug. Any suggestions?
I hope I have been useful in the solution to improve the plugin