News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

"are viewing this board" text and font?

Started by timmytimmy, July 22, 2009, 02:45:18 PM

Previous topic - Next topic

timmytimmy

Hi,

i am using the default theme and version 1.1.10.

i am having a hard time figuring out how to customize the text in the following two places:





in the first instance the text displays in the color i want but it's too small compared to the member names.

in the second image the text is the same color as the background of that section so i had to highlight it just so that you could see what i'm referring to.

any help would be appreciated!

EDIT: looks like you'll have to right click, and "View Image" for full size shots.

timmytimmy


shadow82x

Try this:

In ../Themes/{your_theme}/Display.template.php
Code (find) Select
   if (!empty($settings['display_who_viewing']))
   {
      echo '
      <td align="center" class="smalltext">';

Code (Make it) Select
   if (!empty($settings['display_who_viewing']))
   {
      echo '
      <td align="center" class="windowbg2">';


Than in MessageIndex.template.php
Code (Find) Select
        if (!empty($settings['display_who_viewing']))
        {
            echo '
                    <tr class="windowbg2">
                        <td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"><small>';
            if ($settings['display_who_viewing'] == 1)
                echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
            else
                echo empty($context['view_members_list']) ? '0 ' . $txt[19] : 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'], '
                        </small></td>
                    </tr>';

Code (Make it) Select
        if (!empty($settings['display_who_viewing']))
        {
            echo '
                    <tr class="windowbg2">
                        <td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '">';
            if ($settings['display_who_viewing'] == 1)
                echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
            else
                echo empty($context['view_members_list']) ? '0 ' . $txt[19] : 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>';


Tell us how things turn out. :)

Colin B
Former Spammer, Customize, & Support Team Member

timmytimmy

hey Shadow82x i almost lost hope but you came to the rescue.  thanks so much!!!

shadow82x

Never lose hope. :D Did everything work out OK?
Colin B
Former Spammer, Customize, & Support Team Member

Advertisement: