The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#142
|
|||
|
|||
Well, well, it looks like the overall post count is correct,.- but the months post count is incorrect. The user has 1648 for the month. But only has a total of 938 on their profile. I've realized what the problem is, my forum has a contest sub-forum that does not affect your post count when posting in there,.- the months calculations is including these post as well,.- but the overall calculations is skipping them,.- am I making any sense hun? |
#143
|
||||
|
||||
Quote:
Primarily what I was interested in doing is having the memberindex.php default to show ALL members. Thank y ou |
#144
|
|||
|
|||
Quote:
Find: Code:
if ($vbulletin->options[micromembers_month] == '1') { $timelimit = time() - 30 * 7 * 24 * 60 * 60; Code:
if ($vbulletin->options[micromembers_month] == '1') { $timelimit = time() - 30 * 24 * 60 * 60; |
#145
|
|||
|
|||
Quote:
But it shows all members. It just seperate them by usergroup. Do you mean to remove the line above: Admins(xx), Mods(xx), Users(xx) and the listing to show all by default? Mary |
#146
|
|||
|
|||
Quote:
|
#147
|
|||
|
|||
Quote:
Mary |
#148
|
|||
|
|||
Quote:
There is a way to resolve this problem, if you've same options for the forums that you don't count posts. If you're familiar with phpMyAdmin check the values in field "option". If it's the same, then just give me that 5 digit number and I'll modify your code to have correct results. If not, the last that I can do, it to modify your code which counts the overall posts at least to have the hidden posts counting there too. Currently, for overall I'm getting the number from user table and not from post table as I'm doing for week and month. Mary |
#149
|
||||
|
||||
Quote:
Quote:
Thanks |
#150
|
|||
|
|||
Is there anyway to add the usergroup fix to the AdminCP options?
|
#151
|
|||
|
|||
Open memberindex.php
Find: Code:
// Build Admins Block if ($vbulletin->options[micromembers_admins] == '1') { $teammembers_get = $vbulletin->db->query_read(" SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle FROM ".TABLE_PREFIX."user JOIN ".TABLE_PREFIX."usergroup AS ugroup ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid LEFT JOIN ".TABLE_PREFIX."usergroup ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids)) WHERE ugroup.usergroupid=$admingroup OR ".TABLE_PREFIX."usergroup.usergroupid=$admingroup GROUP BY ".TABLE_PREFIX."user.userid ORDER BY RAND() LIMIT $limit "); Code:
// Build Admins Block if ($vbulletin->options[micromembers_admins] == '1') { $teammembers_get = $vbulletin->db->query_read(" SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle FROM ".TABLE_PREFIX."user JOIN ".TABLE_PREFIX."usergroup AS ugroup ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid LEFT JOIN ".TABLE_PREFIX."usergroup ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids)) WHERE ugroup.usergroupid=$admingroup OR ".TABLE_PREFIX."usergroup.usergroupid=$admingroup OR ugroup.usergroupid=xxx OR ".TABLE_PREFIX."usergroup.usergroupid=xxx GROUP BY ".TABLE_PREFIX."user.userid ORDER BY RAND() LIMIT $limit "); If you want to use more than 2 usergroups you can use the code below (of course you can use this code even for 2 only usergroups). On memberindex.php Find: Code:
$admingroup = $vbulletin->options['micromembers_admins_group']; $admingroup2 = $vbulletin->options['micromembers_admins2_group']; // Build Admins Block if ($vbulletin->options[micromembers_admins] == '1') { $teammembers_get = $vbulletin->db->query_read(" SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle FROM ".TABLE_PREFIX."user JOIN ".TABLE_PREFIX."usergroup AS ugroup ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid LEFT JOIN ".TABLE_PREFIX."usergroup ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids)) WHERE ugroup.usergroupid=$admingroup OR ".TABLE_PREFIX."usergroup.usergroupid=$admingroup GROUP BY ".TABLE_PREFIX."user.userid ORDER BY RAND() LIMIT $limit "); Code:
$admingroup = array('xxx', 'xxx'); $thesegroups = implode(",", $admingroup); $admingroup2 = $vbulletin->options['micromembers_admins2_group']; // Build Admins Block if ($vbulletin->options[micromembers_admins] == '1') { $teammembers_get = $vbulletin->db->query_read(" SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle FROM ".TABLE_PREFIX."user JOIN ".TABLE_PREFIX."usergroup AS ugroup ON ugroup.usergroupid=".TABLE_PREFIX."user.usergroupid LEFT JOIN ".TABLE_PREFIX."usergroup ON (FIND_IN_SET(".TABLE_PREFIX."usergroup.usergroupid, ".TABLE_PREFIX."user.membergroupids)) WHERE ugroup.usergroupid IN $thesegroups OR ".TABLE_PREFIX."usergroup.usergroupid IN $thesegroups GROUP BY ".TABLE_PREFIX."user.userid ORDER BY RAND() LIMIT $limit "); Quote:
Mary |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|