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 ^


All times are GMT. The time now is 01:46 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.01087 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete