PDA

View Full Version : Using log_moderator_action


Freecode
02-01-2007, 11:24 PM
When i use:
log_moderator_action($threadinfo, 'thread_x_nuked_by_x', array($threadinfo['title'], $vbulletin->userinfo['username'], $akarma));

'thread_x_nuked_by_x' phrase is of group: Thread Management
Nuke Report: Thread: {1} Nuker: {2} Karma: {3}

Yet when i check the Moderator Log i get this message
a:3:{i:0;s:18:"Flash Expert Help!";i:1;s:8:"Freecode";i:2;i:0;}

Any idea why its not using the phrase??

Freecode
02-05-2007, 11:48 PM
anybody?

Dismounted
02-06-2007, 08:35 AM
That is the serialized information. Use unserialize() (http://au2.php.net/manual/en/function.unserialize.php) to make it readable again.

Freecode
02-06-2007, 06:39 PM
when i trylog_moderator_action($threadinfo, 'thread_x_nuked_by_x', unserialize(array($threadinfo['title'], $vbulletin->userinfo['username'], $akarma)));
Nothing gets logged o.O

Dismounted
02-07-2007, 06:01 AM
That's because it HASN'T been serialized at that point. You will need to make a script to unserialize it.

Freecode
02-07-2007, 07:14 PM
Would you show me exactly how i can log something to moderation log?

Freecode
02-10-2007, 09:31 PM
anyone?