Quote:
Originally Posted by kamaldarwish
by the way downloads.php line 190 is somethig else in 3.5.4
|
grrrr .... Ronin going and moving things around on me! Okay, try place the hook after line 148 so that you have this:
For text based folks:
On or about line 145, FIND
PHP Code:
if (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['canmanagepurgatory']) || ($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']))
{
$dlinks .= ' | <a href="./downloads.php?do=manfiles">'.$vbphrase['ecdownloads_manage_files'].'</a>';
}
BELOW that ADD:
PHP Code:
($hook = vBulletinHook::fetch_hook('add_to_dlinks')) ? eval($hook) : false;
So you know have:
PHP Code:
if (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['canmanagepurgatory']) || ($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']))
{
$dlinks .= ' | <a href="./downloads.php?do=manfiles">'.$vbphrase['ecdownloads_manage_files'].'</a>';
}
($hook = vBulletinHook::fetch_hook('add_to_dlinks')) ? eval($hook) : false;
if ($_GET['do'] == 'cat')
{
BTW - 3.5.4 is the vb version. It has nothing to do with ecDownloads.