There are +amount+ users on the forum. Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
+2
Keir
axiom
6 posters

    There are +amount+ users on the forum.

    avatar
    axiom
    Forumember


    Posts : 29
    Reputation : 1
    Language : english

    Solved There are +amount+ users on the forum.

    Post by axiom Sun 15 Apr 2012 - 20:23

    Im going to add this to my forum page generalities, but what is the code for the number of users online?
    Keir
    Keir
    Forumember


    Male Posts : 30
    Reputation : 3
    Language : Romanian
    Location : România, Buzau , Podgoria

    Solved Re: There are +amount+ users on the forum.

    Post by Keir Sun 15 Apr 2012 - 21:42

    Put this code anywhere in your forum:

    Code:
    <script id="_wau4wo">var _wau = _wau || []; _wau.push(["classic", "sxic3s0ssze2", "4wo"]);
    (function() {var s=document.createElement("script"); s.async=true;
    s.src="http://widgets.amung.us/classic.js";
    document.getElementsByTagName("head")[0].appendChild(s);
    })();</script>
    avatar
    axiom
    Forumember


    Posts : 29
    Reputation : 1
    Language : english

    Solved Re: There are +amount+ users on the forum.

    Post by axiom Sun 15 Apr 2012 - 21:50

    I like that but I just want the text, "There are +amount+ users on the forum."
    Chris Dans
    Chris Dans
    Forumember


    Male Posts : 55
    Reputation : 1
    Language : English/Coding/Design

    Solved Re: There are +amount+ users on the forum.

    Post by Chris Dans Sun 15 Apr 2012 - 21:57

    There is a thing so number users online it's called statics it shows you who is online.
    Keir
    Keir
    Forumember


    Male Posts : 30
    Reputation : 3
    Language : Romanian
    Location : România, Buzau , Podgoria

    Solved Re: There are +amount+ users on the forum.

    Post by Keir Sun 15 Apr 2012 - 21:58

    Try this code:

    Code:
    <!-- Start FreeUsersOnline Code - Do Not Modify! -->
             <script language="Javascript" src="http://www.freeusersonline.com/?action=track&siteurl=forum link"></script>

    Change "forum link" with your forum adress. Wink
    avatar
    axiom
    Forumember


    Posts : 29
    Reputation : 1
    Language : english

    Solved Re: There are +amount+ users on the forum.

    Post by axiom Sun 15 Apr 2012 - 22:03

    Almost, but its clickable :/

    Edit: Just want the code to give me the number of people online, please no other website ad on things
    Keir
    Keir
    Forumember


    Male Posts : 30
    Reputation : 3
    Language : Romanian
    Location : România, Buzau , Podgoria

    Solved Re: There are +amount+ users on the forum.

    Post by Keir Sun 15 Apr 2012 - 22:08

    Enter here: http://www.freeusersonline.com/ and get the code for your forum! Wink
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51500
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: There are +amount+ users on the forum.

    Post by SLGray Sun 15 Apr 2012 - 23:32

    Just use these:

    Number of Users:
    {*FORUMCOUNTUSER}

    Number of Users Online:
    {*FORUMONLINEUSER}

    Remove the *'s.



    There are +amount+ users on the forum. Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Darren1
    Darren1
    Helper
    Helper


    Male Posts : 11853
    Reputation : 566
    Language : English

    Solved Re: There are +amount+ users on the forum.

    Post by Darren1 Mon 16 Apr 2012 - 0:50

    Hi,

    Where exactly do you want to put it?
    If it's within the templates, here's a BB2 code Very Happy

    I believe these codes are pretty self explanatory,

    Notice the *nolink*, this is scripted into the templates, good luck Wink

    <!-- BEGIN switch_viewonline_nolink -->
    <span class="cattitle">{L_WHO_IS_ONLINE}</span>
    <!-- END switch_viewonline_nolink -->

    {TOTAL_USERS}<br />
    <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
    {RECORD_USERS}<br />
    <br />
    {LOGGED_IN_USER_LIST}</span></td>
    </tr>
    {L_CONNECTED_MEMBERS}
    {L_WHOSBIRTHDAY_TODAY}
    {L_WHOSBIRTHDAY_WEEK}
    <tr>
    <td class="row1"><span class="gensmall">{LEGEND} : {GROUP_LEGEND}</span></td>
    </tr>
    avatar
    axiom
    Forumember


    Posts : 29
    Reputation : 1
    Language : english

    Solved Re: There are +amount+ users on the forum.

    Post by axiom Mon 16 Apr 2012 - 4:01

    ^ all that does is show the { } code, literally, like it doesn't show who's online but the code itself
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: There are +amount+ users on the forum.

    Post by LGforum Mon 16 Apr 2012 - 4:05

    The code provided by Darren will likely only work on the index template due to the fact the online users are only calculated and parsed server side for the index.

    The best way to do this is to include the 'who is online' widget in the sidebar and use JavaScript to obtain the information or move it.
    avatar
    axiom
    Forumember


    Posts : 29
    Reputation : 1
    Language : english

    Solved Re: There are +amount+ users on the forum.

    Post by axiom Mon 16 Apr 2012 - 4:07

    Alright thanks