The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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
|
#3
|
|||
|
|||
lynne do you know of a good one to look at? I searched but without knowing one that does this, it is difficult.
|
#4
|
||||
|
||||
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.
|
#5
|
|||
|
|||
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? |
#6
|
|||
|
|||
Any suggestions on this? It would be greatly appreciated.
|
#7
|
||||
|
||||
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:
|
#8
|
|||
|
|||
Lynne,
I am using : PHP Code:
|
#9
|
||||
|
||||
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? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|