Quote:
Originally Posted by Joshua5692
This was by far the easiest plug and play add on I have put in yet!
Thanks ShiningArcanine for all your efforts. I installed on 3.5.0 and it is flawless and exactly as described. I do have a question though.
We have a few select members with dual identities, and the fact that they are an administrator is hidden from the public. Their primary group is just a public group. Is there anyway at all that we can allow the administrators who are not in the Admin group as their primary? I am not asking you to modify your release, it is great. But if you could just point me into the right line of code?
|
I actually did contemplate this when I wrote 1.2.x but I decided against doing it at the time because I didn't want to have so much complexity that the plugin would become bloated. You'll want to find the following line:
PHP Code:
if (($vbulletin->config['Microstats']['adminonly'] and $vbulletin->userinfo['usergroupid'] == 6) or !$vbulletin->config['Microstats']['adminonly']){
And change it to
PHP Code:
if (($vbulletin->config['Microstats']['adminonly'] and ($vbulletin->userinfo['usergroupid'] == 6 or $vbulletin->userinfo['usergroupid'] == *)) or !$vbulletin->config['Microstats']['adminonly']){
Changing * to the usergroup id.