News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

guests not seeing users online

Started by jobsearchforums, August 13, 2009, 05:36:45 PM

Previous topic - Next topic

jobsearchforums

Hey everyone,

Thanks for your help. 

I am having a problem with my guests seeing the users online.   
I have the "users online today mod" enabled, and it shows "active users."   It should be showing something like 5 or 6 users active, but instead, it only shows the number of guests active. 

Log into my forums at hxxp:www.jobsearchforums.com [nonactive] to see (as guest).


Boardindex.php contains :



   // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online']))
   if (!empty($context['users_online_today']))
      echo '', implode(', ', $context['list_users_online_today']);
echo ', and ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'];

   echo '
            <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
            <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
         </div>
      </td>
   </tr>';
         
   // If they are logged in, but SP1 style information is off... show a personal message bar.
   if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
   {
       echo '
            <tr>
               <td class="titlebg" colspan="2">', $txt[159], '</td>
            </tr><tr>
               <td class="windowbg" width="20" valign="middle" align="center">
                  ', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" />', $context['allow_pm'] ? '</a>' : '', '
               </td>
               <td class="windowbg2" valign="top">
                  <b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
                  <div class="smalltext">
                     ', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
                  </div>
               </td>
            </tr>';
   }
   // Show the login bar. (it's only true if they are logged out anyway.)
   if ($context['show_login_bar'])
   {
      echo '
            <tr>
               <td class="titlebg" colspan="2">', $txt[34], ' <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
            </tr>
            <tr>
               <td class="windowbg" width="20" align="center">
                  <a href="', $scripturl, '?action=login"><img src="', $settings['images_url'], '/icons/login.gif" alt="', $txt[34], '" /></a>
               </td>
               <td class="windowbg2" valign="middle">
                  <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
                     <table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
                        <td valign="middle" align="left">
                           <label for="user"><b>', $txt[35], ':</b><br />
                           <input type="text" name="user" id="user" size="15" /></label>
                        </td>
                        <td valign="middle" align="left">
                           <label for="passwrd"><b>', $txt[36], ':</b><br />
                           <input type="password" name="passwrd" id="passwrd" size="15" /></label>
                        </td>
                        <td valign="middle" align="left">
                           <label for="cookielength"><b>', $txt[497], ':</b><br />
                           <input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
                        </td>
                        <td valign="middle" align="left">
                           <label for="cookieneverexp"><b>', $txt[508], ':</b><br />
                           <input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
                        </td>
                        <td valign="middle" align="left">
                           <input type="submit" value="', $txt[34], '" />
                        </td>
                     </tr></table>
                  </form>
               </td>
            </tr>';
   }

   echo '
         </table>
      </div>
   </div>';
}

?>


My permissions are included in the screen shot.   When I am logged in, everything works great.  I am clueless  :'(

Thank you everyone!






redone

I checked it and it works fine. It shows me the users online together with the guests who are online. Seems okay to me.


jobsearchforums

Yeah - I looked from a different computer.  Works fine for me there too.   Wierd....

JimM

If this is solved please mark it solved by clicking the Mark Topic Solved link at the bottom left of the page.
Jim "JimM" Moore
Former Support Specialist

Advertisement: