Customizing SMF > Mod Requests
Don't count "hidden"?
Arantor:
Actually for RC1.2 the edits should be pretty much the same from what I remember.
smokester:
--- Quote from: Arantor on November 16, 2009, 04:17:25 AM ---Actually for RC1.2 the edits should be pretty much the same from what I remember.
--- End quote ---
Thanks yet again for your input Arantor.
I did of course check first before asking for help but the code has changed too significantly for me to match what Bulakbol suggested to the new version, infact, I cannot with any certainty find which parts of the BoardIndex.template.php to edit?
I hate to impose again but when you have a moment could you take a look?
Arantor:
So is it just the count of hidden you want to remove from BoardIndex.template.php and is it a default 2.0 RC1.2 install of BoardIndex.template.php ?
smokester:
--- Quote from: Arantor on November 16, 2009, 10:49:28 AM ---So is it just the count of hidden you want to remove from BoardIndex.template.php and is it a default 2.0 RC1.2 install of BoardIndex.template.php ?
--- End quote ---
Yes and yes. As only a few people will have the ability to hide their status on my board, having it shown in a visible hidden count is a bit counter-productive. I simply want the get rid of the hidden count altogether.
Thanks.
smokester:
Ok, from this code:
--- Code: --- // Handle hidden users and buddies.
$bracketList = array();
if ($context['show_buddies'])
$bracketList[] = $context['num_buddies'] . ' ' . ($context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies']);
if (!empty($context['num_spiders']))
$bracketList[] = $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['spider'] : $txt['spiders']);
if (!empty($context['num_users_hidden']))
$bracketList[] = $context['num_users_hidden'] . ' ' . $txt['hidden'];
if (!empty($bracketList))
echo ' (' . implode(', ', $bracketList) . ')';
echo $context['show_who'] ? '</a>' : '', '
<div class="smalltext">';
--- End code ---
I commented out this part:
--- Code: --- if (!empty($context['num_users_hidden']))
$bracketList[] = $context['num_users_hidden'] . ' ' . $txt['hidden'];
--- End code ---
Is that all I need to do as it seems to work ok.
I have realised though that it does make the count odd as you are still counted as a user but don't show in the "who's online" view, so really I also need a way to have hidden members not counted at all - is that possible?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version