<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged event-log</title>
<link>https://www.question2answer.org/qa/tag/event-log</link>
<description>Powered by Question2Answer</description>
<item>
<title>Create an artificial &quot;q_post&quot; event with qa_report_event()?</title>
<link>https://www.question2answer.org/qa/62824/create-an-artificial-q_post-event-with-qa_report_event</link>
<description>

&lt;p&gt;I am migrating posts from one installation to another and have heavily rewritten the network plugin of Noahy for this.&lt;/p&gt;

&lt;p&gt;Now I need to call the&amp;nbsp;qa_report_event('q_post', ...) on the target forum so that the question appears in the famous liveticker that all my users use.&lt;/p&gt;

&lt;p&gt;However, it looks quite complicated in the core:&amp;nbsp;&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;qa_report_event('q_post', $oldquestion['userid'], $oldquestion['handle'], $oldquestion['cookieid'], $eventparams + array(&lt;/p&gt;

&lt;p&gt;'notify' =&amp;gt; isset($oldquestion['notify']),&lt;/p&gt;

&lt;p&gt;'email' =&amp;gt; qa_email_validate($oldquestion['notify']) ? $oldquestion['notify'] : null,&lt;/p&gt;

&lt;p&gt;'delayed' =&amp;gt; $oldquestion['created'],&lt;/p&gt;

&lt;p&gt;));&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;How to create a simple q_post event? I dont need the notify / email / delayed options etc.&lt;/p&gt;

&lt;p&gt;I don't understand the $oldquestion part, by the way.&lt;/p&gt;

&lt;p&gt;---&lt;/p&gt;

&lt;p&gt;The function says:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;function qa_report_event($event, $userid, $handle, $cookieid, $params = array())&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Thus I would just use:&lt;/p&gt;

&lt;p&gt;qa_report_event('q_post', $userid, $handle, $cookieid, $params)&lt;/p&gt;

&lt;p&gt;where &lt;strong&gt;$params&lt;/strong&gt; must include the postid of the question, `postid=1159 parentid= parent= title=The question title is `&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/62824/create-an-artificial-q_post-event-with-qa_report_event</guid>
<pubDate>Sun, 11 Mar 2018 15:43:37 +0000</pubDate>
</item>
<item>
<title>Best practice for several eventlog tables and on-site-notifications?</title>
<link>https://www.question2answer.org/qa/62562/best-practice-several-eventlog-tables-site-notifications</link>
<description>Having a setup now, where multiple q2a installations (let's call it &amp;quot;network&amp;quot;) run on the same database, with different prefixes (but shared user database), I want to achieve a &amp;quot;network&amp;quot; wide notification for events.&lt;br /&gt;
&lt;br /&gt;
The events are stored per site (according to the prefix), for instance: &lt;br /&gt;
qa1_eventlog&lt;br /&gt;
qa2_eventlog&lt;br /&gt;
qa3_eventlog&lt;br /&gt;
&lt;br /&gt;
Having the on-site-notifications plugin installed, it only checks for the events on the according site, but not network wide.&lt;br /&gt;
&lt;br /&gt;
My question: Should I simply modify the on-site-notifications plugin to read all eventlog tables?&lt;br /&gt;
&lt;br /&gt;
Or should I create another way of handling those events, e.g. storing all new events in a unified qa_notify_eventlog table?&lt;br /&gt;
&lt;br /&gt;
What would be best practice, especially with eyes on speed.</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/62562/best-practice-several-eventlog-tables-site-notifications</guid>
<pubDate>Sun, 25 Feb 2018 07:31:56 +0000</pubDate>
</item>
<item>
<title>Event Logger don't write 'in_q_vote_up' and 'in_a_vote_up' to database?</title>
<link>https://www.question2answer.org/qa/51891/event-logger-dont-write-in_q_vote_up-in_a_vote_up-database</link>
<description>Hi&lt;br /&gt;
&lt;br /&gt;
I have coded out the following events so they don't write to database and this works for me:&lt;br /&gt;
&lt;br /&gt;
q_vote_up&lt;br /&gt;
q_vote_nil&lt;br /&gt;
a_vote_up&lt;br /&gt;
a_vote_nil&lt;br /&gt;
&lt;br /&gt;
I would like to do the same with the following:&lt;br /&gt;
&lt;br /&gt;
in_q_vote_up&lt;br /&gt;
in_a_vote_up&lt;br /&gt;
&lt;br /&gt;
Unfortunately it doesn't seem to work and they still write to the database.&lt;br /&gt;
&lt;br /&gt;
Any ideas? Code below... Thank you for your time.&lt;br /&gt;
&lt;br /&gt;
This is the original code in page 'qa-event-logger.php'&lt;br /&gt;
&lt;br /&gt;
line 150&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function process_event($event, $userid, $handle, $cookieid, $params)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (qa_opt('event_logger_to_database')) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$paramstring='';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach ($params as $key =&amp;gt; $value)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$paramstring.=(strlen($paramstring) ? &amp;quot;\t&amp;quot; : '').$key.'='.$this-&amp;gt;value_to_text($value);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;qa_db_query_sub(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'INSERT INTO ^eventlog (datetime, ipaddress, userid, handle, cookieid, event, params) '.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'VALUES (NOW(), $, $, $, #, $, $)',&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;qa_remote_ip_address(), $userid, $handle, $cookieid, $event, $paramstring&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
This is the code I have amended in page 'qa-event-logger.php'&lt;br /&gt;
&lt;br /&gt;
line 150&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function process_event($event, $userid, $handle, $cookieid, $params)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (qa_opt('event_logger_to_database') &amp;amp;&amp;amp; $event!='q_vote_up') {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$paramstring='';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (qa_opt('event_logger_to_database') &amp;amp;&amp;amp; $event!='q_vote_nil') {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$paramstring='';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (qa_opt('event_logger_to_database') &amp;amp;&amp;amp; $event!='a_vote_up') {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$paramstring='';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (qa_opt('event_logger_to_database') &amp;amp;&amp;amp; $event!='a_vote_nil') {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$paramstring='';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (qa_opt('event_logger_to_database') &amp;amp;&amp;amp; $event!='in_q_vote_up') {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$paramstring='';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (qa_opt('event_logger_to_database') &amp;amp;&amp;amp; $event!='in_a_vote_up') {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$paramstring='';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach ($params as $key =&amp;gt; $value)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$paramstring.=(strlen($paramstring) ? &amp;quot;\t&amp;quot; : '').$key.'='.$this-&amp;gt;value_to_text($value);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;qa_db_query_sub(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'INSERT INTO ^eventlog (datetime, ipaddress, userid, handle, cookieid, event, params) '.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'VALUES (NOW(), $, $, $, #, $, $)',&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;qa_remote_ip_address(), $userid, $handle, $cookieid, $event, $paramstring&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51891/event-logger-dont-write-in_q_vote_up-in_a_vote_up-database</guid>
<pubDate>Tue, 24 May 2016 15:09:09 +0000</pubDate>
</item>
<item>
<title>Needed: Option to disable the question and user event &quot;updates&quot; in q2a core</title>
<link>https://www.question2answer.org/qa/50039/needed-option-disable-the-question-user-event-updates-core</link>
<description>

&lt;p&gt;Stumbled again over this: Until today i haven't used the core shared events, nor my users in their &quot;updates&quot; pages. The updates pages are completely removed. From the beginning I was using Noah's history plugin, then the q2apro onsite notifications plugin to write events into the eventlogger table. From this table I am reading all data and displaying it frontend, each user has a 7-day-history page.
&lt;br&gt;
&lt;br&gt;I strongly suggest (since my db qa_sharedevents already reached 80 MB and others are growing even more ... for nothing), to provide a switch to turn off the &quot;event trackings&quot; individually.
&lt;br&gt;
&lt;br&gt;Or only rely on the event logger which is doing an awesome job in my opinion.&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#0000FF&quot;&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; I am thinking if I can write a plugin that overrides &lt;/span&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/q2a/question2answer/blob/dev/qa-include/db/events.php#L29&quot;&gt;&lt;span style=&quot;color:#0000FF&quot;&gt;function qa_db_event_create_for_entity()&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color:#0000FF&quot;&gt; with a simple return;&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;PS: From &lt;a href=&quot;http://www.question2answer.org/secure.php&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/secure.php&lt;/a&gt; &quot;To save space and time, you need not back up the following tables: qa_cache, qa_contentwords, qa_iplimits, qa_posttags, qa_sharedevents, qa_tagwords, qa_titlewords, qa_userevents, qa_userlimits, qa_words. These contain information which is temporary or which can be recalculated from other tables in the database.&quot; --- So I guess &lt;strong&gt;qa_sharedevents&lt;/strong&gt; and &lt;strong&gt;qa_userevents&lt;/strong&gt; can be neglected.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/50039/needed-option-disable-the-question-user-event-updates-core</guid>
<pubDate>Fri, 29 Jan 2016 14:47:08 +0000</pubDate>
</item>
<item>
<title>Event logger cused to slow down the website</title>
<link>https://www.question2answer.org/qa/49943/event-logger-cused-to-slow-down-the-website</link>
<description>Hello&lt;br /&gt;
&lt;br /&gt;
plugin is slowing down the site due to creating slow queries&lt;br /&gt;
&lt;br /&gt;
the Each of these queries is not indexed and is taking even as high as 89 seconds to execute. How to remove the plugin or how to index these tables so that the query time on these is lowered to 1-2 seconds. When the number of visitors is low,&lt;br /&gt;
&lt;br /&gt;
I am trying to disable the plugin from the Admin panel but it can not be disabled&lt;br /&gt;
&lt;br /&gt;
Because after disabling it &amp;nbsp;did refresh the page and see it enable&lt;br /&gt;
&lt;br /&gt;
Thank you.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/49943/event-logger-cused-to-slow-down-the-website</guid>
<pubDate>Wed, 20 Jan 2016 17:23:18 +0000</pubDate>
</item>
<item>
<title>Why so strange string created for event log params column?</title>
<link>https://www.question2answer.org/qa/47977/why-so-strange-string-created-for-event-log-params-column</link>
<description>

&lt;p&gt;I just wonder why eventlog params column storing string in strange key=val format and why not serialized or json?&lt;/p&gt;

&lt;p&gt;Currently it is storing in this format&lt;/p&gt;

&lt;p&gt;postid=22 parentid= parent= title=function return ...&lt;/p&gt;

&lt;p&gt;Why don't you store in simply json or serialized like this&lt;/p&gt;

&lt;pre&gt;{&quot;postid&quot;:22,&quot;parentid&quot;:&quot;&quot;,&quot;title&quot;:&quot;function return ...&quot;}&lt;/pre&gt;

&lt;pre&gt;or&lt;/pre&gt;

&lt;pre&gt;a:3:{s:6:&quot;postid&quot;;i:22;s:8:&quot;parentid&quot;;s:0:&quot;&quot;;s:5:&quot;title&quot;;s:19:&quot;function return ...&quot;;}&lt;/pre&gt;

&lt;p&gt;Is there any specific reason or never though on it?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/47977/why-so-strange-string-created-for-event-log-params-column</guid>
<pubDate>Thu, 17 Sep 2015 10:40:02 +0000</pubDate>
</item>
<item>
<title>What Is The Event Logger Plugin For?</title>
<link>https://www.question2answer.org/qa/36034/what-is-the-event-logger-plugin-for</link>
<description>

&lt;p&gt;
	&lt;span lang=&quot;EN-GB&quot;&gt;I was getting lot of error messages with event logger plugin so I deleted it and now everything works fine. I am just wondering what the plugin was for as everything seems to work ok now.&lt;/span&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/36034/what-is-the-event-logger-plugin-for</guid>
<pubDate>Thu, 17 Jul 2014 23:19:33 +0000</pubDate>
</item>
<item>
<title>[New Plugin] User's event logger</title>
<link>https://www.question2answer.org/qa/31613/new-plugin-users-event-logger</link>
<description>

&lt;p&gt;
	*** &lt;strong&gt;This plugin is in Alpha Version&lt;/strong&gt;.&lt;/p&gt;


&lt;p&gt;
	*** &lt;strong&gt;If you are not a Developer, this plugin wont be usefull for you by itself.&lt;/strong&gt; unless you use a theme or plugin that requires it.&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;Description:&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	This Plugin logs events that can be important to an individual users. it log's effected user's ID, Post ID, User's ID who raised the event, and event parameters plus Question ID and Question Title if event is about a post(question,answer or comment).&lt;/p&gt;


&lt;p&gt;
	also it neglect events that can not be important to users, for example when user comment's on his own answer or favorites his own question event wont be logged.&lt;/p&gt;


&lt;p&gt;
	this plugin can be used for creating an Event Notification or Message Notification by themes and plugins.&lt;/p&gt;


&lt;p&gt;
	&lt;a href=&quot;https://github.com/Towhidn/Q2A-User-Event-Logger&quot; rel=&quot;nofollow&quot;&gt;Plugin's Github Page&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;a href=&quot;https://github.com/Towhidn/Q2A-User-Event-Logger/archive/master.zip&quot; rel=&quot;nofollow&quot;&gt;Zip File&lt;/a&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/31613/new-plugin-users-event-logger</guid>
<pubDate>Sat, 08 Feb 2014 13:05:52 +0000</pubDate>
</item>
<item>
<title>Event logger plugin : any user can initialize the database. Bug ?</title>
<link>https://www.question2answer.org/qa/27286/event-logger-plugin-any-user-can-initialize-the-database-bug</link>
<description>

&lt;div&gt;
	Event Logger plugin, v1.1&lt;/div&gt;


&lt;div&gt;
	Q2A 1.6.2&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	The plugin is already included in the q2a installation.&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	I decided to NOT enable it initially, but to start first populating the q2a db (I've created a new q2a website) with some test questions and some test users (default privileges on registration).&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	As an admin, I decided, after a couple of days, to enable it to see how it works, and checked the &quot;Log events to qa_eventlog database table&quot; option.&lt;/div&gt;


&lt;div&gt;
	After I saved the option, no qa_eventlog table was created in the mysql db. Why ?&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	After that, I decided to logout as an admin, and to login (same pc, but with another browser) as a normal user&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	What happened ?&lt;/div&gt;


&lt;div&gt;
	I received, logged in as a normal user, a web page saying : &quot;The Event Logger event module requires some database initialization.&quot;, with a button saying : &quot;Initialize database&quot;.&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	The user is responsible to initialize the db (!)&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	I could click on the button and I was able to initialize the database (&quot;Running query: CREATE TABLE qa_eventlog ......&quot;, &quot;The Event Logger event module has completed database initialization.&quot;)&lt;/div&gt;


&lt;div&gt;
	At the bottom of the page there was also a link &quot;Go to admin center&quot;&lt;/div&gt;


&lt;div&gt;
	(http://question2answer/index.php?qa=admin)&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	When I clicked, I could not go to the admin center &amp;nbsp;of course (&quot;Only administrators may access this page&quot;) because I was logged in as a normal user (ok)&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	My question : is this a &quot;design&quot; bug ?&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	The admin enables the checkbox, and the first user who creates an event is responsible of initializing the database.&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	It sounds to me a wrong behavior this &quot;lazy&quot; initialization.&lt;/div&gt;


&lt;div&gt;
	The initialization should happen immediately, when the admin save the options AND the option is flagged, in the same &quot;logical&quot; transaction of the insert/update in the options table.&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	Is this a bug ?&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/27286/event-logger-plugin-any-user-can-initialize-the-database-bug</guid>
<pubDate>Tue, 03 Sep 2013 16:07:49 +0000</pubDate>
</item>
<item>
<title>Google Bot causing thousands of search events (event logger)</title>
<link>https://www.question2answer.org/qa/22522/google-bot-causing-thousands-of-search-events-event-logger</link>
<description>

&lt;p&gt;
	Just checked &lt;strong&gt;table qa_eventlog&lt;/strong&gt; and found dozens of SEARCH events, triggered by IP 66.249.78.148 which seems to be Google Search bot. &lt;span class=&quot;qa-form-wide-static&quot;&gt;crawl-66-249-78-148.googlebot.com&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	As this is not human, I do not want to have those events listed in my database (and who knows how enormous the data grows if bots visited my forum each day).&lt;/p&gt;


&lt;p&gt;
	Any counter measure (but blocking the IP which is undesired in this case...)&lt;/p&gt;


&lt;p&gt;
	Thanks,
&lt;br&gt;
	Kai&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22522/google-bot-causing-thousands-of-search-events-event-logger</guid>
<pubDate>Fri, 22 Mar 2013 03:22:44 +0000</pubDate>
</item>
<item>
<title>Any way to exclude search events from event logger?</title>
<link>https://www.question2answer.org/qa/22480/any-way-to-exclude-search-events-from-event-logger</link>
<description>I checked qa-plugin/qa-event-logger.php but could not find the &amp;quot;search&amp;quot; string to get the code where the search event is set.&lt;br /&gt;
&lt;br /&gt;
Could somebody help me please?</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22480/any-way-to-exclude-search-events-from-event-logger</guid>
<pubDate>Wed, 20 Mar 2013 13:35:00 +0000</pubDate>
</item>
<item>
<title>Google Bot causing thousands of search events (event logger)</title>
<link>https://www.question2answer.org/qa/22477/google-bot-causing-thousands-of-search-events-event-logger</link>
<description>

&lt;p&gt;
	Just checked &lt;strong&gt;table qa_eventlog&lt;/strong&gt; and found dozens of SEARCH events, triggered by IP 66.249.78.148 which seems to be Google Search bot. &lt;span class=&quot;qa-form-wide-static&quot;&gt;crawl-66-249-78-148.googlebot.com&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	As this is not human, I do not want to have those events listed in my database (and who knows how enormous the data grows if bots visited my forum each day).&lt;/p&gt;


&lt;p&gt;
	Any counter measure (but blocking the IP which is undesired in this case...)&lt;/p&gt;


&lt;p&gt;
	Thanks,
&lt;br&gt;
	Kai&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22477/google-bot-causing-thousands-of-search-events-event-logger</guid>
<pubDate>Wed, 20 Mar 2013 13:26:35 +0000</pubDate>
</item>
<item>
<title>What url i put in Event Logger plugin ?</title>
<link>https://www.question2answer.org/qa/22369/what-url-i-put-in-event-logger-plugin</link>
<description>

&lt;p&gt;
	i want to activate&amp;nbsp;event logger&amp;nbsp;plugin but i am confused what url i put in this section&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font: 14px/21px verdana; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;&quot;&gt;Directory for log files - enter full path:&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	my q2a is on main domain url&lt;/p&gt;


&lt;p&gt;
	&lt;a href=&quot;http://www.example.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/&lt;/a&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22369/what-url-i-put-in-event-logger-plugin</guid>
<pubDate>Mon, 18 Mar 2013 14:53:40 +0000</pubDate>
</item>
<item>
<title>Bug in default plugin &quot;event-logger&quot;?  &quot;oldvote=0&quot; then &quot;oldvote=1&quot; - what is this?</title>
<link>https://www.question2answer.org/qa/18714/default-plugin-event-logger-oldvote-then-oldvote-what-this</link>
<description>

&lt;p&gt;
	I see in my logs that the q_vote_up and in_q_vote_up event is registered twice (but only for me as admin!). Example here:&lt;/p&gt;


&lt;table class=&quot;data&quot; id=&quot;table_results&quot;&gt;
	

&lt;tbody&gt;
		

&lt;tr class=&quot;even&quot;&gt;
			

&lt;td class=&quot;nowrap&quot;&gt;
				2012-10-28 16:25:31&lt;/td&gt;
			

&lt;td&gt;
				95.90.218.244&lt;/td&gt;
			

&lt;td align=&quot;right&quot; class=&quot;nowrap&quot;&gt;
				1&lt;/td&gt;
			

&lt;td&gt;
				echteinfachtv&lt;/td&gt;
			

&lt;td align=&quot;right&quot; class=&quot;nowrap&quot;&gt;
				595250729713884472&lt;/td&gt;
			

&lt;td&gt;
				in_q_vote_up&lt;/td&gt;
			

&lt;td&gt;
				postid=3902 &amp;nbsp;&amp;nbsp;&amp;nbsp;vote=1 &amp;nbsp;&amp;nbsp;&amp;nbsp;oldvote=1&lt;/td&gt;
		&lt;/tr&gt;
		

&lt;tr class=&quot;odd&quot;&gt;
			

&lt;td class=&quot;nowrap&quot;&gt;
				2012-10-28 16:25:31&lt;/td&gt;
			

&lt;td&gt;
				95.90.218.244&lt;/td&gt;
			

&lt;td align=&quot;right&quot; class=&quot;nowrap&quot;&gt;
				291&lt;/td&gt;
			

&lt;td&gt;
				Klausii&lt;/td&gt;
			

&lt;td align=&quot;right&quot; class=&quot;nowrap&quot;&gt;
				595250729713884472&lt;/td&gt;
			

&lt;td&gt;
				q_vote_up&lt;/td&gt;
			

&lt;td&gt;
				postid=3902 &amp;nbsp;&amp;nbsp;&amp;nbsp;vote=1 &amp;nbsp;&amp;nbsp;&amp;nbsp;oldvote=1&lt;/td&gt;
		&lt;/tr&gt;
		

&lt;tr class=&quot;even&quot;&gt;
			

&lt;td class=&quot;nowrap&quot;&gt;
				2012-10-28 16:25:31&lt;/td&gt;
			

&lt;td&gt;
				95.90.218.244&lt;/td&gt;
			

&lt;td align=&quot;right&quot; class=&quot;nowrap&quot;&gt;
				1&lt;/td&gt;
			

&lt;td&gt;
				echteinfachtv&lt;/td&gt;
			

&lt;td align=&quot;right&quot; class=&quot;nowrap&quot;&gt;
				595250729713884472&lt;/td&gt;
			

&lt;td&gt;
				in_q_vote_up&lt;/td&gt;
			

&lt;td&gt;
				postid=3902 &amp;nbsp;&amp;nbsp;&amp;nbsp;vote=1 &amp;nbsp;&amp;nbsp;&amp;nbsp;oldvote=0&lt;/td&gt;
		&lt;/tr&gt;
		

&lt;tr class=&quot;odd&quot;&gt;
			

&lt;td class=&quot;nowrap&quot;&gt;
				2012-10-28 16:25:31&lt;/td&gt;
			

&lt;td&gt;
				95.90.218.244&lt;/td&gt;
			

&lt;td align=&quot;right&quot; class=&quot;nowrap&quot;&gt;
				291&lt;/td&gt;
			

&lt;td&gt;
				Klausii&lt;/td&gt;
			

&lt;td align=&quot;right&quot; class=&quot;nowrap&quot;&gt;
				595250729713884472&lt;/td&gt;
			

&lt;td&gt;
				q_vote_up&lt;/td&gt;
			

&lt;td&gt;
				postid=3902 &amp;nbsp;&amp;nbsp;&amp;nbsp;vote=1 &amp;nbsp;&amp;nbsp;&amp;nbsp;oldvote=0&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;


&lt;p&gt;
	Is this a bug in event-logger or could it be that the user somehow triggered the event twice in the same second?&lt;/p&gt;


&lt;p&gt;
	Thanks, Kai&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;PS: The only difference I can see is &quot;oldvote=0&quot; then &quot;oldvote=1&quot; - what is that?&lt;/strong&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18714/default-plugin-event-logger-oldvote-then-oldvote-what-this</guid>
<pubDate>Mon, 29 Oct 2012 03:59:29 +0000</pubDate>
</item>
<item>
<title>Bug in Admin panel setting event logger</title>
<link>https://www.question2answer.org/qa/7957/bug-in-admin-panel-setting-event-logger</link>
<description>

&lt;p&gt;
	in version 1.4.1 there is a new feature to log events.&lt;/p&gt;


&lt;p&gt;
	Unfortunately the option
&lt;br&gt;
	&quot; Log events to daily log files&quot;&lt;/p&gt;


&lt;p&gt;
	can not be disabled by the GUI as planned.&lt;/p&gt;


&lt;p&gt;
	this may be a bug - or? The switch off by direct access to the database is of course possible :)&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/7957/bug-in-admin-panel-setting-event-logger</guid>
<pubDate>Mon, 01 Aug 2011 12:37:08 +0000</pubDate>
</item>
</channel>
</rss>