News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Who is viewing..

Started by mattchewone, February 09, 2009, 04:18:14 PM

Previous topic - Next topic

mattchewone

When i turn on "display who is viewing" in the main board it shows at the bottom of all the topics who is viewing. When you select a sub forum it displays this at the top.

How can you get it to be displayed at the bottom of all the topics in the sub forums?

Thank in advance

Matt

mattchewone

Anyone know how to do this? Or even if it is possible?

mattchewone

Anyone know if or how this could be done?

Thanks

nsdcblue

#3
go to your admin panel, configuration, features and options, layout, check enable whose online.
with the smf 2.0 beta4  the online for the general forum is shown at the bottom left not top left.
hope this helps


eeeks, sorry in rereading i missunderstood your question. hmmm so in the child boards the display of who is on line is different? one would think it would be in the coding, of that im not the best, sorry

mattchewone

Quote from: nsdcblue on February 12, 2009, 05:07:06 AM
go to your admin panel, configuration, features and options, layout, check enable whose online.
with the smf 2.0 beta4  the online for the general forum is shown at the bottom left not top left.
hope this helps


eeeks, sorry in rereading i missunderstood your question. hmmm so in the child boards the display of who is on line is different? one would think it would be in the coding, of that im not the best, sorry

Thank you for trying!

greyknight17

Matt, is this issue resolved now? It should be showing who is viewing on the top in all topics (parent board or child board doesn't matter).

You want it to be shown at the bottom of the topics for all your topics?

mattchewone

Quote from: greyknight17 on February 28, 2009, 05:33:35 PM
Matt, is this issue resolved now? It should be showing who is viewing on the top in all topics (parent board or child board doesn't matter).

You want it to be shown at the bottom of the topics for all your topics?

Yes i would like it to be shown at the bottom on all boards. Is this at all possible? (a bit like Vbuletin)

greyknight17

Open up /Themes/default/MessageIndex.template.php:

Code (Search for and delete) Select
if (!empty($settings['display_who_viewing']))
{
echo '
<tr class="windowbg2">
<td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '" class="headerpadding smalltext">';
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt['members'];
else
echo empty($context['view_members_list']) ? '0 ' . $txt['members'] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '
</td>
</tr>';
}


Code (Search for) Select
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))

Code (Replace with) Select
if (!empty($settings['display_who_viewing']))
{
echo '
<tr class="windowbg2">
<td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '" class="headerpadding smalltext">';
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt['members'];
else
echo empty($context['view_members_list']) ? '0 ' . $txt['members'] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '
</td>
</tr>';
}

if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))

Advertisement: