Quote:
Originally Posted by theOZer
Running vB3.7.0 RC1.
Installed My Albums V2.0.
When I click on 'All Albums' off the navbar, I do indeed see all user albums but under the Pictures columns all have 0 (zero) pictures.
|
This is due to the file "all_albums.php" checking for the version of vBulletin. This code in particular:
Code:
if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 6', '<'))
{
$album['picturecount'] = vb_number_format($album['picturecount']);
}
else
{
$album['picturecount'] = vb_number_format($album['visible']);
}
I commented the following lines out of that section so that it only uses "vb_number_format($album['visible'])":
Code:
// if (version_compare($vbulletin->options['templateversion'], '3.7.0 Alpha 6', '<'))
// {
// $album['picturecount'] = vb_number_format($album['picturecount']);
// }
// else
// {
$album['picturecount'] = vb_number_format($album['visible']);
// }
I assume the version check was there because the field names were changing from version to version. My fix may not be pretty, but it does work