vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Using log_moderator_action (https://vborg.vbsupport.ru/showthread.php?t=138201)

Freecode 02-01-2007 11:24 PM

Using log_moderator_action
 
When i use:
PHP Code:

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
Code:

Nuke Report: Thread: {1} Nuker: {2} Karma: {3}
Yet when i check the Moderator Log i get this message
Code:

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 try
PHP Code:

log_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?


All times are GMT. The time now is 01:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00971 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete