vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Mod Log (Like vB Admin Log) (https://vborg.vbsupport.ru/showthread.php?t=43044)

NTLDR 08-31-2002 10:00 PM

Mod Log (Like vB Admin Log)
 
Requested by ManagerJosh here: https://vborg.vbsupport.ru/showthrea...threadid=43024

Basicly this is the same as the built in admin log, but this works for the Mod CP instead.

This should work fine but I haven't given this hack major testing hence its a beta hack, it won't mess up your board though ;)

Limited support will be given to this hack :)

Link14716 09-01-2002 05:23 PM

Nice.... will install. ;)

ManagerJosh 09-01-2002 05:38 PM

Thanks SOOOOOOOOOOOO MUCH! NTLDR !!!!!!!!!!!!! :) :) :) :) :)

*INSTALLS!*

Dean C 09-01-2002 05:49 PM

this conflicts with my current modlog :( - think u cud intigrate the two???

- Mist

NTLDR 09-01-2002 06:22 PM

Quote:

Originally posted by Mist
this conflicts with my current modlog :( - think u cud intigrate the two???
Its just the table name modlog thats the same isn't it? if so I'll post instructions on how to change it ;)

Tim Wheatley 09-01-2002 08:29 PM

Basically just go through, every time you see modlog, rename it. Thanks for the hack. :D

kmfdm_kid2000 09-01-2002 08:52 PM

Yeah, I have the other Mod Log Hack, I'll try the proper alterations on my test board before installing :)

afterlab 09-01-2002 09:32 PM

Looks promising, i'll install it once out of Beta.

NTLDR 09-01-2002 10:08 PM

If you have the other modlog hack installed the two changes you need to make are:

Use this query instread:

[sql]CREATE TABLE moderatorlog (
modlogid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
userid int(10) unsigned DEFAULT '0' NOT NULL,
dateline int(10) unsigned DEFAULT '0' NOT NULL,
script char(20) NOT NULL,
action char(20) NOT NULL,
extrainfo char(200) NOT NULL,
ipaddress VARCHAR(15) NOT NULL,
PRIMARY KEY (modlogid)
);[/sql]

And use this code in mod/global.php

PHP Code:

// ###################### Start modlog #######################
function modlog ($extrainfo="",$userid=-1,$script="",$scriptaction="") {
  global 
$DB_site,$bbuserinfo,$PHP_SELF,$action,$REMOTE_ADDR;

  if (
$userid==-1) {
    
$userid=$bbuserinfo[userid];
  }
  if (
$script=="") {
    
$script=basename($PHP_SELF);
  }
  if (
$scriptaction=="") {
    
$scriptaction=$action;
  }

  
$DB_site->query("INSERT INTO moderatorlog (modlogid,userid,dateline,script,action,extrainfo,ipaddress) VALUES (NULL,'$userid',".time().",'".addslashes($script)."','".addslashes($scriptaction)."','".addslashes($extrainfo)."','$REMOTE_ADDR')");


This won't conflict with the other hack then ;)

Dean C 09-02-2002 07:06 AM

thanks buddy ^

bonnmac 09-07-2002 01:32 AM

Hi, I've installed this on my test board and when I access the modlog from the admin panel I get this error...

Fatal error: Call to undefined function: modlog() in /home/virtual/site2/fst/var/www/html/forums/admin/modlog.php on line 185

Any ideas?

This is line 185 of my modlog.php

modlog();

Thanks :)

Thanatos 09-09-2002 01:00 PM

I removed line 185 (modlog() )

Seemed to work fine and got me around the error.

Tested by creating a bogus entry directly into the MySql database, viewed it in the Admincp/modlog and then purged it.

Chris M 09-13-2002 02:56 PM

It works great:)

Satan

blackice912 09-14-2002 12:51 PM

I'll be installing this later today :)

ontherun 10-18-2002 08:51 PM

In admin/config.php

I have no $canpruneadminlog = "";

Im in /forums/admin/config.php

vB version 2.2.8

NTLDR 10-18-2002 08:53 PM

Just add the line in ;)

It just specifies which users can prune the admin log.

You can place the code anywhere in config.php as long as its between <?php and ?>

Graphics 10-19-2002 01:23 AM

whats the difference between this hack and this hack?

can someone tell me.

Graphics 10-19-2002 09:36 AM

The other hack is older and this hackis newer and have more featurs

-Ardhamon

Chris M 10-19-2002 06:02 PM

Erm...why did you reply to yourself?:confused:

Satan

NTLDR 10-19-2002 06:17 PM

Quote:

Originally posted by Graphics
whats the difference between this hack and this hack?

can someone tell me.

The other hack tracks opening/closing, moving, delete posts/threads, this hack tracks what mods get up to in the Mod CP, like the Admin Log does for Admins in the ACP.

MarkL 03-17-2003 08:00 PM

Okay, I have a question. I wan't all of my admins to be able to check up on the Mod Log. How could I make that happen?

ManagerJosh 03-17-2003 08:35 PM

I believe you need to add your admins userid into the config.php

Bison 03-17-2003 09:42 PM

Sure like to see what this look likes ... any screen shots?

ManagerJosh 03-17-2003 09:44 PM

I believe it is the same as the view admin log...I might be wrong.

Fahrenheit 01-30-2004 01:30 AM

Quote:

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL:
SELECT DISTINCT modlog.userid,user.username
FROM modlog
LEFT JOIN user USING(userid)
ORDER BY username

mysql error: Table 'gasoline_gas.modlog' doesn't exist

mysql error number: 1146

Date: Thursday 29th of January 2004 10:30:49 PM
Script: http://www.gasolinedreams.net/vb/vb/...tion=choose&s=
Referer: http://www.gasolinedreams.net/vb/adm...n=nav&cpnavjs=
vbulletin version 2.3.0


All times are GMT. The time now is 04:44 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
  • Page Generation 0.01623 seconds
  • Memory Usage 1,764KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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