Quote:
Originally Posted by belinea
GREAT RELEASE !!!!!!
But I?m missing a feature. I want to hide the "Who Downlaoded" buttons for normal users. Only admins schould see the button.
|
Your right!!
That was not intended.
I meant to hide it.
Let's see if any other bugs in the next couple days (instead of rapid consecutive releases).
In the meantime....
I'll give you the fix....
Edit the "Enable Viewing" plugin and replace the whole thing with this:
PHP Code:
$show['blunts_whodl_canusernames'] = ($vbulletin->options['blunts_whodl_popisactive'] AND ($permissions['bluntswhodlpermissions'] & $vbulletin->bf_ugp['bluntswhodlpermissions']['canusernames'])) ? 1 : 0;
$show['blunts_whodl_candatelines'] = ($vbulletin->options['blunts_whodl_popisactive'] AND ($permissions['bluntswhodlpermissions'] & $vbulletin->bf_ugp['bluntswhodlpermissions']['candatelines'])) ? 1 : 0;
$show['blunts_whodl_canuploaders'] = ($vbulletin->options['blunts_whodl_popisactive'] AND ($permissions['bluntswhodlpermissions'] & $vbulletin->bf_ugp['bluntswhodlpermissions']['canuploaders']) AND $vbulletin->userinfo['userid']) ? 1 : 0;
$show['blunts_whodl_canipaddress'] = ($vbulletin->options['blunts_whodl_popisactive'] AND ($permissions['bluntswhodlpermissions'] & $vbulletin->bf_ugp['bluntswhodlpermissions']['canipaddress'])) ? 1 : 0;
$show['blunts_whodl_canaltips'] = ($vbulletin->options['blunts_whodl_popisactive'] AND ($permissions['bluntswhodlpermissions'] & $vbulletin->bf_ugp['bluntswhodlpermissions']['canaltips'])) ? 1 : 0;
$show['blunts_whodl_width'] = ($show['blunts_whodl_canusernames']) ? ((($show['blunts_whodl_canipaddress'] OR $show['blunts_whodl_canaltips']) AND $vbulletin->options['blunts_whodl_poplarge']) ? $vbulletin->options['blunts_whodl_poplarge'] : $vbulletin->options['blunts_whodl_popsmall']) : 0;
The last line is the only different one

If viewing usernames is disabled for a usergroup, they won't see the button.