DevTracker : Search by usergroup
Mod Version: 0.01, by Nxs
This modification is in the archives.
vB Version: 3.6.0 |
Rating: (2 votes - 5.00 average) |
Installs: 15 |
Released: 07 Aug 2006 |
Last Update: Never |
Downloads: 2 |
Not Supported
Code Changes
Is in Beta Stage
|
DevTracker : Search by usergroup
Description:Allows you to search for threads containing posts by multiple user ids a.k.a DevTracker
This hack requires you to EDIT a base vbulletin php source file
This hack is in BETA and I could use some feedback please
A good friend (wish i could plug your site Jon but I'd get a slap) mentioned this requirement in passing, and checking vb.com and vb.org yielded no existing hack but plenty of requirements for people to have this on their forum.
Installation1) Create a new user on your forum, (eg devtracker) 2) Make a note of all the userid's you want to be linked to the tracker, yes I know the title of the hack says usergroups this was just to help search terms (and may come later) (eg 1,5,10,43) 3) Edit the file search.php, find the code below and add the section highlighted, remember to use your own values from the first two steps 4) Publish a new link on your navbar or where required with a ahref of search.php?do=process&searchuser=devtracker&showposts=1
Code:
$users = $db->query_read_slave($q);
if ($db->num_rows($users))
{
$userids = array();
while ($user = $db->fetch_array($users))
{
$postsum += $user['posts'];
$display['users']["$user[userid]"] = $user['username'];
$userids[] = in_array($user['userid'], $coventry) ? -1 : $user['userid'];
}
$userids = implode(', ', $userids);
if ($vbulletin->GPC['searchuser'] == 'devtracker') { $userids = '1,5,10,43'; }
if ($vbulletin->GPC['starteronly'])
{
if ($vbulletin->GPC['showposts'])
{
$post_query_logic[] = "post.userid IN($userids)";
}
$thread_query_logic[] = "thread.postuserid IN($userids)";
}
Change Log:7-Aug-06 : (0.01) BETA version
Download
No files for download.
|