Topic: Admin logs (pun_admin_log)

The pun_admin_log extension has been released! It logs a lot of forum's events. You can find more information about pun_admin_log on the extension's Wiki page.
Download links:

You can get it with the help of the pun_repository extension. Feel free to suggest your ideas about the extension's improvement.

This extension depends on the pun_admin_events extension. So this extension should be installed for correct working of the pun_admin_log.

Re: Admin logs (pun_admin_log)

Wanted to try the pun_admin_log extension and installed first the pun_admin_events. After that i go to the admin panel and there under events i got this error:
Parse error: syntax error, unexpected T_RETURN in /www/htdocs/w00a012d/forums/extensions/pun_admin_events/functions.php on line 178

Was a fresh installation, never installed before.

Thanks for help.

Re: Admin logs (pun_admin_log)

Hi,

pun_admin_log won't install while punBB is running with PostgreSQL because the double quotes aren't considered like string but like columns.

The patch :

Index: manifest.xml
===================================================================
--- manifest.xml    (révision 1596)
+++ manifest.xml    (copie de travail)
@@ -41,21 +41,21 @@
         $query_log = array(
             'INSERT'    => 'conf_name, conf_value',
             'INTO'        => 'config',
-            'VALUES'    => '"o_pun_admin_path_log_file", "'.$forum_db->escape(realpath(FORUM_ROOT.'/extensions/'.$id.'/forum.log')).'"',
+            'VALUES'    => '\'o_pun_admin_path_log_file\', \''.$forum_db->escape(realpath(FORUM_ROOT.'/extensions/'.$id.'/forum.log')).'\'',
         );
         $forum_db->query_build($query_log) or error(__FILE__, __LINE__);
 
         $query_log = array(
             'INSERT'    => 'conf_name, conf_value',
             'INTO'        => 'config',
-            'VALUES'    => '"o_pun_admin_log_write_file", "1"'
+            'VALUES'    => '\'o_pun_admin_log_write_file\', \'1\''
         );
         $forum_db->query_build($query_log) or error(__FILE__, __LINE__);
 
         $query_log = array(
             'INSERT'    => 'conf_name, conf_value',
             'INTO'        => 'config',
-            'VALUES'    => '"o_pun_admin_log_write_db", "1"'
+            'VALUES'    => '\'o_pun_admin_log_write_db\', \'1\''
         );
         $forum_db->query_build($query_log) or error(__FILE__, __LINE__);
 
@@ -355,4 +355,4 @@
 }
         ]]></hook>
     </hooks>
-</extension>
\ No newline at end of file
+</extension>

Charly.

4

Re: Admin logs (pun_admin_log)

How about logging changes to censored words list?

Re: Admin logs (pun_admin_log)

Slavok wrote:

The pun_admin_log extension has been released! It logs a lot of forum's events. You can find more information about pun_admin_log on the extension's Wiki page.
Download links:

  • pun_admin_log.7z

  • pun_admin_log.tgz

  • pun_admin_log.zip

  • SVN link.

You can get it with the help of the pun_repository extension. Feel free to suggest your ideas about the extension's improvement.

This extension depends on the pun_admin_events extension. So this extension should be installed for correct working of the pun_admin_log.

is there an updated version of this extension which is compatible to the punbb 1.4.2 version?  i tried to reinstall the version 1.0 but it says it is not compatible with the current version of PunBB (1.4.2)

Re: Admin logs (pun_admin_log)

Well based on the above post - I'm assuming the stop spam function needs tweaking a bit.  smile

7

Re: Admin logs (pun_admin_log)

Please, update into latest version.