a small fix...
in the by tab you have the userid pointing to the userid of the thread starter. It should be pointing to the guy who made the post..
change this in viaspy.php
find
Code:
SELECT thread.*, post.pagetext AS preview
make it
Code:
SELECT thread.*, post.pagetext AS preview, post.userid AS lastpuserid
then find
Code:
<userid>{$thread['postuserid']}</userid>
replace with
Code:
<userid>{$thread['lastpuserid']}</userid>
grt addon though
congrats
ps: i have it only for selected usergroups. For those who want permissions can simply do this
add this below
require_once('global.php') line in viaspy.php
//set up usergroup permissions for view
if (!is_member_of($vbulletin->userinfo , #usergroups to check#))
{
print_no_permission();
}
or
Code:
//set up usergroup permissions for view
$groupstocheck = explode(',', $vbulletin->options['spy_usergroups']);
if (!is_member_of($vbulletin->userinfo , $groupstocheck))
{
print_no_permission();
}
where spy_usergroups is admincp setting(make a new setting in admincp with same name) which contains comma separated list of allowed usergroups.(crude fix, best is to make a product and bitfield
)