This is a series of four adminstration scripts covering two functions. They are: Attachment Management
--Find and view attachments with ease, remove with two clicks
--Remove multiple attachments by forum, extension, and other options Conversion/Encryption Functions
--Converts to and from Unix Timestamp format, which is used by vBulletin in the database
--Encrypt a text string with md5 - useful for comparing a string to an encrypted password in the database
Instructions are in the zip file - look for att.txt
DO NOT PM or email me about this hack - it will be ignored!
I will not support you if you edit these files.
You may not redistribute these scripts, edited or unedited, without my prior permission.
Disclaimer: I disclaim all responsibility for your use of this hack. It has been extensively tested but still may screw something up. It is recommended that if you are going to be deleting a lot of attachments you have a recent database backup on hand.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
When I use: Convert Date/Time or Encrypt String
I get this: Parse error: parse error in /home/symbian/www/forum/admin/convert.php on line 26
I follow the att.txt witch has a fault:
makenavoption("Update Counters","misc.php?action=chooser");
must be:
makenavoption("Update Counters","misc.php?action=chooser");,"<br>");
Are the install instructions in the very first post completely working and functional for version 2.2.1 now, too? I'd very much like this hack, but if there are still issues to be worked out for version 2.2.1 (or lower, but I'm already up-to-date..) I think I'll wait until they're all ironed out
Great hack regardless, an attachment viewer and remove function was what I have been missing in that Admin panel all along...
if ($action == "md5");
$md5string = md5($string);
echo "<b>$string</b> encrypts as <b>$md5string</b>";
$action = "intro";
}
Should be:
PHP Code:
if ($action == "md5") {
$md5string = md5($string);
echo "<b>$string</b> encrypts as <b>$md5string</b>";
$action = "intro";
}
For the rest it works great on vB 2.2.1 Kevin.
I loved the attachments management functions, but I have a request Kevin, isn't it possible to show the attachment size? Can't see it anywhere...it is helpful to see it in order to decide if it should be removed or not.
So is this now working on 2.2.1? And the first post by tubedog is updated with all the fixes, or will I have to go through the whole thread looking for updates? Thanks!
Originally posted by LuBi So is this now working on 2.2.1? And the first post by tubedog is updated with all the fixes, or will I have to go through the whole thread looking for updates? Thanks!
Lubi, Kevin updated the first post. If you get a parse error on convert.php just add a { at the end of line 22.