![]() |
Moderator Logs for vBulletin
https://vborg.vbsupport.ru/ http://www.overgrow.com/archive/modlog2.gif Design Spec: Track moderator and admin activites including: closing, opening, moving, and deleting threads. You are able to set the number of logs you view at one time and you can focus down to just one moderator by clicking on their name. Steps for installation: -add one database table 'modlog' -edit one file 'postings.php' -upload one file 'modlog.php' !!! DISCLAIMER !!! Hack at your own risk. I do not run v2, I will never run v2, I apologize if things are not exactly how they seem. May cause staining, test on hidden piece of fabric first. No this does not install itself. Learn to use phpmyadmin. |
FILE UPDATED: May 18, 2001 3:30 pm PST
See the bottom of the page....................>> |
I can't find them in rc3 either.
Amy |
Overgrow,
First of all, cool site! I noticed your forums are version 1.1.3, but you're releasing hacks to be used for 2.0. Are you testing these hacks on the latest RC3 before releasing them? |
Looks good :)
Couple suggestions Make a file that will automatically create the table necessary to run this. Use global.php. And then look at adminfunctions.php (from vB2 RC3) and use the functions like maketableheader and stuff. It'll simplify the creation of the layout. Also maybe include instructions on how to add a link to this in the Admin CP. |
Basically make it easy to install like kiers. Makes the needed tables, and then shows install instructions. Very useful hack.
|
I'm not trying this hack out yet, but damnit man you are coming out with some seriously impressive and USEFUL! hacks Shabang.
My hat is off to you! |
It can't work in rc2 and rc3.
The postings.php isn't like your said in the zipfile. |
Argh ok hold off on installing it until I download the latest RC3. I have an older version of V2, I didn't expect that the variables would change so much from RC to RC.
>>Basically make it easy to install like kiers. Sorry, I write hacks for myself. I think people will find them useful so I release the code. I don't have the time or willingness to write fancy install scripts. If you can't paste in the create table code to phpmyadmin, maybe you shouldn't be hackin.. I'm not trying to win a VB developer spot here, just releasing some code. New version in a little while............. |
p.s. check out the code that it is! I'm very proud of myself.. hacking VB is seriously improving my PHP skill. I now use multi-dimensional arrays in this one instead of my old explode the pipes perl method.
|
Hey I'm proud of you :) and your website :)
|
Quote:
Quote:
|
FILE UPDATED: May 21, 2001 6:50 am PST
FIXES - -addslashes bug detected and resovled by wluke, this was causing some data to be ignored. Included are two versions of install.txt, for V1 and V2. The V2 installation is much simpler. I like the structure, I may convert yet. |
Nice, That's really nice. https://vborg.vbsupport.ru/
|
No complaints, so I assume it's working for V2 now?
ps. thanks for all the nice comments on the hack & site |
Quote:
|
Quote:
|
It worked ,:)
what a good a work you did! |
I seem to be getting some VB errors for this -- can you take a look at what could be wrong? They seem to be only on those threads that are MOVED and those that have an apostrophe in the subject.
Database error in vBulletin: Invalid SQL: INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,tofo rumid,timestamp) VALUES ('3','3864','53151','Lee and Colin's Journal','','','990238526') mysql error: You have an error in your SQL syntax near 's Journal','','','990238526')' at line 2 Database error in vBulletin: Invalid SQL: INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,tofo rumid,timestamp) VALUES ('3','3864','57894','how i'm saving money','','','990241258') mysql error: You have an error in your SQL syntax near 'm saving money','','','990241258')' at line 2 mysql error number: 1064 |
In postings.php
Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Quote:
|
good hack min:)
|
Brilliant.
I've been waiting for something like this. I'd actually like to show these kinds of things on the threads themselves to the users. Such as:
Great Job Overgrow...I'm impressed. Thank you :) |
One question - Does this hack check permissions of the user viewing the logs?
Reason being the file allows the user to "Clear the Logs" and I would like to make sure that it can only be performed by an Admin. I want to give access to my moderators but I don't want them to be able to clear the logs. So I added this...but it didn't work because the script is not defining $bbuserinfo['usergroupid'] Code:
<? but that produced errors. Any ideas? |
I think I found a bug....One of my "Super Moderators" closed a thread and the script did not enter the "Super Moderators" name in the Moderator Name field.
Check the image out or click this link for a demo: http://www.paintballdojo.com/mod_logging.gif |
I only have super mods and it seems to be working for me for both super mods and admins
|
It works fine for me after making the three changes that I listed above.
|
wluke: your right...I did not make those changes you losted above.
I will try and post back. |
/me slaps himself around with slashes.
^^^^^^^^^^ Zip file fixed way above. |
hi, im new to this but i got it all done except i dont kno how or where to create a table, anyone able to help me?
|
Before you start hacking up vBulletin, you should know your way around phpMyAdmin:
http://www.phpwizard.net/projects/phpMyAdmin/ Under the listing of your tables it has a textarea box where you can paste in the CREATE TABLE code. That is the easiest way without having to learn telnet. |
i looked for phpmyadmin.php and didnt find it....or do i not even have that...im just learning this, im a web/graphic designer, not programmer...
|
Who i love it
now i can install it cause the vb2.0 is out thx very much guy :) |
i finished all the rest....if setting up a table is too confusing maybe can someone do that part for me..i already did all the rest
|
Setting up a table is not that confusing. Trying to give you the steps to telnet and run mysql instead might be confusing. Downloading phpmyadmin is easy:
http://www.phpwizard.net/projects/phpMyAdmin/ Go there, download the zip, unzip, upload to a new phpmyadmin directory. Password this directory with .htaccess. There must be posts around here somewhere teaching you how to install phpmyadmin. Once you have done this it will be your window into all of the database, you will wonder how you got along without it. Sorry my hacks do not install themselves, I believe you should be able to run phpmyadmin before hacking up vBulletin. I was a designer first too, now I'm a hack programmer.. I'm sure you can learn it. Good luck. ps. welcome, jojo |
THNX MAN..I APPRECIATE IT ALOT..umm i actually dled it while i was waiting and uploaded it, but the config file is kinda confusing..like the one for the bulletin is easy, iot asks your database name password..like 3 things..but the phpadmin config has like 30 different things i dont kno what to put where.. i keep getting an error everytime
|
Moderator Logs REFRESH - CLEAR ALL LOGS - Max: 10 25 100 all
There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser. An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists. We apologise for any inconvenience. any ideas? |
You must post the actual message, not just vB's stock error message. View the source of that page or the email and copy and paste one of those here.
|
I'm having a problem with the forumid variable.
Like it aint storing it in the table so when i look at the logs there is no forum names. I am not the only one suffering this as there is a picture on another post where the forum names are missing. I am new to all this so i am playing to see what i can learn but everything looks OK. |
Thnx for the hack dude :)
|
All times are GMT. The time now is 04:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|