The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

There are +amount+ users on the forum.

Go down

Solved There are +amount+ users on the forum.

Post by axiom on Sun Apr 15, 2012 12:23 pm

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

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 on Sun Apr 15, 2012 1: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>
avatar
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 on Sun Apr 15, 2012 1:50 pm

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

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 on Sun Apr 15, 2012 1:57 pm

There is a thing so number users online it's called statics it shows you who is online.
avatar
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 on Sun Apr 15, 2012 1: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
avatar
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 on Sun Apr 15, 2012 2: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

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 on Sun Apr 15, 2012 2:08 pm

Enter here: http://www.freeusersonline.com/ and get the code for your forum! Wink
avatar
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 on Sun Apr 15, 2012 3:32 pm

Just use these:

Number of Users:
{*FORUMCOUNTUSER}

Number of Users Online:
{*FORUMONLINEUSER}

Remove the *'s.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 42709
Reputation : 3007
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

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

Post by Darren1 on Sun Apr 15, 2012 4:50 pm

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

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

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

Post by axiom on Sun Apr 15, 2012 8:01 pm

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

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 on Sun Apr 15, 2012 8:05 pm

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

Male Posts : 2263
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

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

Post by axiom on Sun Apr 15, 2012 8:07 pm

Alright thanks

axiom
Forumember

Posts : 29
Reputation : 1
Language : english

Back to top Go down

Back to top


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