Quote:
Originally Posted by shofolofo
yes I need this aswell .. anyway to define the user group ids ?
|
This will be in the next update. In the meantime, if you want to block certain usergroups from viewing vaispy...
Edit vaispy.php and find:
PHP Code:
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
and after that, add (only an example)
PHP Code:
if (is_member_of($vbulletin->userinfo, 8))
{
print_no_permission();
}
Where '8' would be the usergroup id. You can also do multiple usergroups. Let's say you had 8, 9, 10 that you wanted to block:
PHP Code:
if (is_member_of($vbulletin->userinfo, 8, 9, 10))
{
print_no_permission();
}
Quote:
Originally Posted by chris1979
Are there some customisation instructions somewhere? I cannot remember from the 3.8 version... how do we select which forums to include, and how can we set how often to check for updates?
|
Since this is based on the original vBISpy, I've not really changed the mod much. It doesn't make use of the product system/templates/phrases/etc, so it has to be done manually. You can not currently choose which forums to include, you can only choose to exclude forums:
Around line 44 in vaispy.php
PHP Code:
/**
* Do not list these forums even if they have
* permissions (test categories, etc)
*/
$blockforums = '';
As far as the time between updates, that's controlled by the javascript, in the clientscript/va_spy.js file. In that file, around line 38 you'll see:
HTML Code:
/* Delay between polls to the XML feed for new updates to page */
var xmldelay = 3000;
This value is
seconds x
1000
So, let's say you wanted it to be 6 seconds, you'd change it to:
HTML Code:
/* Delay between polls to the XML feed for new updates to page */
var xmldelay = 6000;