![]() |
Modification Log
This hack will add a new option under Logs and Statistics in your Admin CP. It allows you to track which modifications you have installed on to your board by filling out the form in the hack to contain a name, Author name, Version Number,
Description and an Installation date. This hack can be made dynamic so you do not have to add the info your self but a hack releaser would just need to add an extra query to the install to do it for you. In the future I intend to extend this to log which files have been modified in the hack and what queries have been run, possibly through making it into an installation system. This hack was made out of a want to track what I have installed simply and without having to go to the trouble of installing the HTL. If the Author of that hack wants me to remove this I will as the original idea was essentially his. 2 hacks in 2 days :) v 1.01 - Includes field for url to modification by HellRazor |
Well, let me be the first to say, thank you!
It may be a simple hack, but it now does in the backend what I've been doing in hidden forums since I started using vBulletin. Definately installing on my site soon. Perhaps 1 request....how about a comments text area and an authors url input, as these would come in handy as well. I usually make several comments about necessary alterations to the hack, or about specific directions that have not been updated to installed version. The authors url I keep handy so if necessary, I have a quick link to the download area of the hack (usually vbulletin.org) |
Quote:
|
Nice job, thanks for the release
|
Great job!
|
nice mod, i remember the vb2 times when this was released.
|
Quote:
Another nice option would be to be able to add a file to the entry so that you can add the hack to the entry. Keeps you from searching if you have to install it again. |
When I run the Database Query I get the following error message:
Quote:
|
What version of mySQl are you using? I believe this may be a version problem and a change of syntax may be needed
|
Quote:
I am currently using version 4.0.22-standard-log |
They worrying thing is the thats the same version I'm using. I just looked at the vB install file and it had the equivelant line broken into
[sql] PRIMARY KEY (modid) ) [/sql] Try that and maby it'll work :) |
Quote:
Code:
CREATE TABLE modslog ( Code:
CREATE TABLE modslog ( |
[sql]
CREATE TABLE modslog ( modid int(10) auto_increment, name varchar(250), description varchar(250), authur varchar(250), version varchar(250), date int(10), PRIMARY KEY(modid) ) [/sql] maby a comma after date int(10) may help =-/ |
Quote:
|
Quote:
|
Quote:
|
I get this error when I try to add in the info of the hacks..
Code:
Database error in vBulletin 3.0.3: |
That error is due to a bad SQL query in the install text. In the SQL query, "author" is misspelled as "authur".
To fix this: In AdminCP, go to Execute SQL Query under Import & Maintenance. First execute this query to delete the incorrect table: DROP TABLE IF EXISTS modslog; Then execute this query to create a corrected table; CREATE TABLE modslog ( modid int(10) auto_increment, name varchar(250), description varchar(250), author varchar(250), version varchar(250), date int(10), PRIMARY KEY(modid)) |
Also, the instructions tell you to place the phrases under Control Panel Global. This is partially incorrect.
Place modslog_actions and modslog_name under Control Panel Global. Place modslog_moddeleted, modslog_modedited, and modslog_modadded under Control Panel Stop Message. |
There is another spelling error in modslog.php, where "author" is again misspelled "author". If you don't correct this, the author's name will not get added when you enter a new modification to the log.
|
Just to make this easier for everyone, here is the complete corrected package:
Corrected modslog.php: Code:
<?php Code:
Corrected Instructions: |
Here's another update. This version now allows you to put in an optional URL for the entry. Clicking on the title of the mod in the list will take you to the URL you specify.
This version requires one additional phrase (modslog_name_url) and one additional field in the database table (modurl). Hope the original author doesn't mind! :nervous: Here are the updated files. Modslog.php: Code:
<?php Code:
This hack will add a new option under Logs and Statistics in your Admin CP. It allows you to track which modifications you have installed on to your board by filling out the form in the hack to contain a name, Author name, Version Number, Description and an Installation date. This hack can be made dynamic so you do not have to add the info your self but a hack releaser would just need to add an extra query to the install to do it for you. In the future I intend to extend this to log which files have been modified in the hack and what queries have been run, possibly through making it into an installation system. |
Thanks for fixing those errors HellRazor, been far to busy with other things to be able to check up. Im going to update the the attached file and add your name to it :)
|
Hi when I edit a mod it gives me this error when I save it?
Code:
Database error in vBulletin 3.0.3: Any ideas |
Delete modslog.php from your server and upload the one in the zip file at I just uploaded in responce to your error, it "should" have fixed that now :)
|
Downloading .......
Uploading ;) ;) Working fine thanks :) |
Quote:
|
Quote:
Its not making use of any table prefixes. I am using table prefixes for my board. Can this be added to the hack? |
Quote:
|
Excellent hack! Me luffs it :)
jluerken, here you go. I modded mine to include prefixes, so everyone should be able to enjoy it :) (Note: The only difference between this modslog.php and the original is that this one has the table prefix code built into it) |
i think i may have found a small miscommunication in the install instructions.
there's actually two instances of Code:
construct_nav_option($vbphrase['scheduled_task_log'], 'cronlog.php?do=choose', '<br />'); Code:
if (can_administer('canadmincron')) Code:
construct_nav_option('Modification Log', 'modslog.php', '<br />'); i only discovered this becasue i added the line after the first instance and couldn't figure out why i wasn't getting my link. it's all good now that i moved it to after the second instance. great mod. thanks! |
yeah sure but according to the site rules i gotta ask permission from the orginal author first he agreed :tired: all this does is add the "TABLE_PREFIX" thingy to database querys
rgds |
All times are GMT. The time now is 12:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|