vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Moderator Activity Logging (https://vborg.vbsupport.ru/showthread.php?t=17206)

Deacon Frost 08-20-2001 06:46 PM

Well, I made a ModLog Version which works great on vB 2.0.3. I will post soon, but, at the moment every text is in german:) So let mit Transalte it, and write a readme :)

Deacon Frost 08-22-2001 03:23 PM

Okay, I finished right in this minutes :) Hope, I translated everything right (*g*, you have a 50:50 chance :D)

Just post suggestions and bug reports in this thread, do not email me.

Using on your own risk :)

In attach, you'll find the install introductories, next post the file (in english), and in the post after the next post, you'll find the file in german.

Deacon Frost 08-22-2001 03:24 PM

The english file. Rename to "modlog.php"

Deacon Frost 08-22-2001 03:25 PM

the file in german. Rename to "modlog.php"

dxb 08-22-2001 03:51 PM

hey I was just going to write I will be waiting for your version ....and you already posted hahaha

Thanks alot Deacon

Thomas P 08-22-2001 08:54 PM

Thanks Deacon Frost,

I tried a fresh start and edited postings.php and index.php as described. Before that I dropped the modlog table and created it from scratch by copying the sql code into phpmyadmin (worked).
Copied modlog into /forum/admin directory and tried to have a look - works fine for the Administrator, but not for Moderators. :o
Everything seems fine, except that the "Moderator" row is blank.
When viewing the db I see that the userid = 0 there :( :(

I don't understand anymore: I tried it now a bunch of times, same error everytime.

Any hints on what can keep me getting always the same effect.
Code seems fine...
thx,
-Tom

Deacon Frost 08-23-2001 05:23 AM

Hi Thomas, denke mit dir kann man deutsch sprechen:)

Probier mal in den
PHP Code:

  $DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp) 
        VALUES ('
$threadinfo[open]','$bbuserid','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."')"); 

strings $bbuserid durch $bbuserinfo[userid] zu ersetzen. Bei mir funktioniert es mit beiden variabeln.

For everybody else who's this problem, try replacing $bbuserid with $bbuserinfo[userid] in the seven
PHP Code:

$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp) 
        VALUES ('
$threadinfo[open]','$bbuserid','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."')"); 

string's (string above is just an example, there are 7 different strings, but they look similar)

Thomas P 08-23-2001 06:12 AM

Hallo,

Quote:

For everybody else who's this problem, try replacing $bbuserid with $bbuserinfo[userid] in the seven
That works!!

Very impressive and absolutely correct!

What a dumb little glitch :rolleyes:

Thanks for your help, finally after 11 pages the hack works for me, too... :D

Wondering why it works for everybody else, but for me the original way, whatever,
Thanks for helping,
-Tom


---

Yep, deutsch is gut! ;)
Danke, jetzt funzt's!
Meine G?te, so ein einfacher Fehler. Ist ja schon fast peinlich...
Haben die cracks hier auch ?bersehen - so ca. 11 Seiten lang.
Also: Respekt und tausend Dank! :)
-Tom

dost 08-23-2001 12:45 PM

Everything seems to be OK but I delete, open/close or move a thread but it doesn't show in the modlog. Is it because I'm the admin of the forum? What shall I do? I tried both of the versions (the original and Deacon Frost's)

Deacon Frost 08-23-2001 02:46 PM

@ DoST: Watch my last post :)

I updated the install instructions, 'cause it seems like some boards are having problems with $bbuserid :D It doesn't matter that you are admin, all moderatoricaly activities will be logged.

@ Thomas P: *gg* Kein Problem. Musste mich fast zwangsl?ufig mit dem Script vertraut machen, da ich auf zwei grossen Boards das Teil unbedingt brauche :)


All times are GMT. The time now is 05:27 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.01236 seconds
  • Memory Usage 1,745KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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