vBcover
09-21-2008, 06:46 PM
This is a tiny update and is not required. No file upload required, no product upload required. Only the small modification in class_postbit.php needs to be adjusted.
What this does, if you disable vBattach for whatever reason, you don't need to undo the change again in class_postbit.php
Simply swap the code in class_postbit.php
include(DIR .'/includes/vbattach_displayfunctions.php');
/*vBattach
eval('$this->post[\'thumbnailattachments\'] .= "' . fetch_template('postbit_attachmentthumbnail') . '";');
$show['thumbnailattachment'] = true;
vBattach*/with
/*vBattach*/
global $vbulletin;
if($vbulletin->products['cover_attach'])
{
include(DIR .'/includes/vbattach_displayfunctions.php');
} else {
eval('$this->post[\'thumbnailattachments\'] .= "' . fetch_template('postbit_attachmentthumbnail') . '";');
$show['thumbnailattachment'] = true;
}
/* vBattach*/
What this does, if you disable vBattach for whatever reason, you don't need to undo the change again in class_postbit.php
Simply swap the code in class_postbit.php
include(DIR .'/includes/vbattach_displayfunctions.php');
/*vBattach
eval('$this->post[\'thumbnailattachments\'] .= "' . fetch_template('postbit_attachmentthumbnail') . '";');
$show['thumbnailattachment'] = true;
vBattach*/with
/*vBattach*/
global $vbulletin;
if($vbulletin->products['cover_attach'])
{
include(DIR .'/includes/vbattach_displayfunctions.php');
} else {
eval('$this->post[\'thumbnailattachments\'] .= "' . fetch_template('postbit_attachmentthumbnail') . '";');
$show['thumbnailattachment'] = true;
}
/* vBattach*/