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)
-   -   Detailed Logging of Usergroup Changes in AdminCP 1.01 (https://vborg.vbsupport.ru/showthread.php?t=51525)

N9ne 04-11-2003 10:00 PM

Detailed Logging of Usergroup Changes in AdminCP 1.01
 
// Log Usergroup Changes in AdminCP
-- // A hack by N9ne, Created on 12th April 2003
-- // Copyright N9ne 2003+

// Description
-- // This hack will add a page to your adminCP where
a detailed log of usergroup changes made through
the adminCP are shown. Details that are shown:

- Userid of user changed
- Username of user changed
- Previous Usergroup
- New Usergroup
- Time of Change
- Changer's userid
- Changer's username

A link to the usergroup changes page is put in the 'Users' Category in the adminCP navigation.

// What needs to be done to install this hack
-- // Creation of one table in Database
-- // Some modification to admin/user.php
-- // A modification to admin/index.php

// Side Note
-- // I requested this hack a few months ago, and no one made it. A few people replied, but no one made it. I was in desperate need of it ;). Xenon replied, and I can't remember it exactly, but it was some 'other' way to do things, but it wasn't what I wanted, so Xenon, if you are reading this, remember, I made this request, and now I'm making it myself :D. Hehe I think this is the first time I'm answering one of my own requests!

// Change Log
-- // 1.01 - Instructions fixed - 2 occurances of same code in find in user.php

N9ne 04-12-2003 03:42 PM

Screenshot.

Intex 04-12-2003 04:33 PM

Nice1 N9ne. /me has added it to install list :).

Boofo 04-12-2003 04:44 PM

This code appears twice in the file. Which one do we use?

PHP Code:

        echo "<p>You did not give this user an username</p>";
        exit;
    } 


Zelda-King 04-12-2003 05:01 PM

For some reason I'm not seeing anything listed in the headings. See attached;

EDIT:
Quote:

Today at 06:38 PM Boofo said this in Post #4
This code appears twice in the file. Which one do we use?

PHP Code:

        echo "<p>You did not give this user an username</p>";
        exit;
    } 


I used the first. I will try the second...

EDIT: The second occurance gives me a database error.

Boofo 04-12-2003 05:17 PM

You won't see anything until after you change someone now. It goes by the new query.

Zelda-King 04-12-2003 05:19 PM

But I did change someone... several times.

Vb-Hispano 04-12-2003 06:23 PM

is lol

N9ne 04-12-2003 07:10 PM

Zelda-King: Make sure you ran the query, check in your DB to see if the table was actually created.

Vb-Hispano: Please don't spam in this thread (or anywhere on the forum really =/)

Boofo: It's the second occurance. I updated instructions to avoid confusion, I never realised that there were two exact same occurances, sorry about that :).

Zelda-King 04-12-2003 07:43 PM

The table was created. Yes!


All times are GMT. The time now is 12:28 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.00997 seconds
  • Memory Usage 1,739KB
  • 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
  • (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