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.

There are +amount+ users on the forum.

+2
Keir
axiom
6 posters

Go down

Solved There are +amount+ users on the forum.

Post by axiom April 15th 2012, 8:23 pm

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

Posts : 29
Reputation : 1
Language : english

Back to top Go down

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

Post by Keir April 15th 2012, 9:42 pm

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>
Keir
Keir
Forumember

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

http://netuts.forumz.ro/

Back to top Go down

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

Post by axiom April 15th 2012, 9:50 pm

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

Posts : 29
Reputation : 1
Language : english

Back to top Go down

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

Post by Chris Dans April 15th 2012, 9:57 pm

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

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

Back to top Go down

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

Post by Keir April 15th 2012, 9:58 pm

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
Keir
Keir
Forumember

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

http://netuts.forumz.ro/

Back to top Go down

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

Post by axiom April 15th 2012, 10:03 pm

Almost, but its clickable :/

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

Posts : 29
Reputation : 1
Language : english

Back to top Go down

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

Post by Keir April 15th 2012, 10:08 pm

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

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

http://netuts.forumz.ro/

Back to top Go down

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

Post by SLGray April 15th 2012, 11:32 pm

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51576
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by Darren1 April 16th 2012, 12:50 am

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>
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

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

Post by axiom April 16th 2012, 4:01 am

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

Posts : 29
Reputation : 1
Language : english

Back to top Go down

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

Post by LGforum April 16th 2012, 4:05 am

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.
LGforum
LGforum
Hyperactive

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

Back to top Go down

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

Post by axiom April 16th 2012, 4:07 am

Alright thanks
avatar
axiom
Forumember

Posts : 29
Reputation : 1
Language : english

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum