
06-21-2006, 03:59 PM
|
|
|
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by dcpaq2
When I did my last upgrade of Vbulletin it appears to have wiped out all my code changes and I am now going around trying to figure out what got wiped out, as the hack no longer works because of this.
I noticed a change that VB made in the admincp/attachment.php file, line one is not there anymore. And if I put that line one back in as indicated in the "replace by" will this effect anything? Im not sure what changes have been made between the two versions regarding this line.
Oh how I like plugins, so much easier.
Doug
------------------------------------------------------------------------
Code:
Find:
1.) $types = $vbulletin->db->query("
2.) SELECT extension, size, height, width, enabled, thumbnail, newwindow
3.) FROM " . TABLE_PREFIX . "attachmenttype
4.) ORDER BY extension");
.......................................................................................................
REPLACE BY:
// Hack: Minimum Picture Size (MarcoH64)
// $types = $vbulletin->db->query("
// SELECT extension, size, height, width, enabled, thumbnail, newwindow
// FROM " . TABLE_PREFIX . "attachmenttype
// ORDER BY extension
// ");
$types = $vbulletin->db->query("
SELECT extension, size, height, width, enabled, thumbnail, newwindow, mh_mps_minwidth, mh_mps_minheight
FROM " . TABLE_PREFIX . "attachmenttype
ORDER BY extension
");
// / Hack: Minimum Picture Size (MarcoH64)
|
It would be very helpfull if you stated the vB version you are trying to install it on.
PS Since this is a code edit hack, chances are always there that it will not work on a new version, or only modified.
|