Listing Active Users in Left column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stefaandk
    Senior Member
    • Jul 2005
    • 185
    • 3.0.7

    Listing Active Users in Left column

    I would like to list active users in my left column and remove it from the bottom.

    Any hints as to how I should go about this?

    Thanks,
    http://www.TheOlderGamers.com
    Your Mature Gaming Community!
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    You'd want to move this code:
    HTML Code:
    <if condition="$show['loggedinusers']">
    <!-- logged-in users -->
    <tbody>
        <tr>
            <td class="thead" colspan="2">
                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
                <a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
            </td>
        </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
        <tr>
            <td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
            <td class="alt1" width="100%">
                <div class="smallfont">
                    <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                    <div>$activeusers</div>
                </div>
            </td>
        </tr>
    </tbody>
    <!-- end logged-in users -->
    </if>
    Be aware that this will most likely only work on the forum home page, as the needed data isn't fetched on other pages.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • stefaandk
      Senior Member
      • Jul 2005
      • 185
      • 3.0.7

      #3
      Thanks, trying to get this working.

      Question:

      Where is the string that pulls the phrase data for whoisonline so we can include it in the header?
      http://www.TheOlderGamers.com
      Your Mature Gaming Community!

      Comment

      • Colin F
        Senior Member
        • May 2004
        • 17689

        #4
        I'm not sure what you mean.
        The phrasedata is fetched in the php file, and is only referenced in the templates, with each phrase being referenced seperately.
        Best Regards
        Colin Frei

        Please don't contact me per PM.

        Comment

        • stefaandk
          Senior Member
          • Jul 2005
          • 185
          • 3.0.7

          #5
          we want to include the <!-- logged-in users --> code in the header template, is this possible?
          http://www.TheOlderGamers.com
          Your Mature Gaming Community!

          Comment

          • Colin F
            Senior Member
            • May 2004
            • 17689

            #6
            No, that's not possible, as the data isn't generated on most php pages.
            Best Regards
            Colin Frei

            Please don't contact me per PM.

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...