Advertisement:

Author Topic: [Theme] BlackDay [SMF 1.0.5 & 1.1]  (Read 113795 times)

Offline Malek

  • Newbie
  • *
  • Posts: 7
Re: [Theme] BlackDay [SMF 1.0.5 & 1.1]
« Reply #120 on: August 27, 2007, 04:05:42 PM »
I wanted to add Users online Today mod but I when It came to modyfing BlackDay's BoardIndex.template.php I couldn't find lines to which the code refered to. Anyone know where to add it (assuming it is possible). Problematic code part below:

Code: [Select]
<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="before"><![CDATA[ ', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';
]]></search>
<add><![CDATA[
// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';]]>
</add>
</operation>
</file>

Offline Deaks

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,161
  • Gender: Male
Re: [Theme] BlackDay [SMF 1.0.5 & 1.1]
« Reply #121 on: January 10, 2008, 09:51:52 AM »