![]() |
Add Something to the moderator Log
I have some customized pages. I need to track which mods are doing what with these pages. I want to use the
log_moderator_action() function. However, I am having issues getting ti to work correctly. Does anyone have a tutorial on this? I searched and came up empty. |
I don't know of a tutorial. I've seen it done a couple of different ways - just download a modification that does it and see how they do it. There are two hook locations available though - fetch_modlogactions and fetch_modlogtypes
|
lynne do you know of a good one to look at? I searched but without knowing one that does this, it is difficult.
|
A quick look at the products on my test site shows this product name - Change Threads Prefix Inline. Search for that and take a look at what they did.
|
Thanks Lynee
--------------- Added [DATE]1234149678[/DATE] at [TIME]1234149678[/TIME] --------------- okay, another question regarding this. I got the code working to add it ot the moderator log. However, I want to put some information into Info column. I checked out the code and I am not seeing a way to do this without editing the php code on the forums/admincp/modlog.php page and most likely the includes/functions_log_error.php page. Is there a way of doing this without editing the php code. If not, anyone have a good mod to reference to figure out how to do this? |
Any suggestions on this? It would be greatly appreciated.
|
The info column? What is your call to enter something into the log? Are you putting something in for the $action?
From the API: Quote:
|
Lynne,
I am using : PHP Code:
|
I'm not sure exactly what you mean. Perhaps this will help.
For a mod I wrote, I have this line: PHP Code:
Code:
Thread verified. (verified: {1}; reason: {2}; hold: {3}) Code:
Thread verified. (verified: $vbulletin->GPC['verify_status']; reason: $vbulletin->GPC['verify_reason']; hold: $vbulletin->GPC['verify_hold']) Code:
Thread verified. (verified: 2; reason: 3; hold: 0) Is that what you are wanting to do? |
All times are GMT. The time now is 11:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|