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.

View previous topic View next topic Go down

Solved There are +amount+ users on the forum.

Post by axiom on April 15th 2012, 6: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 April 15th 2012, 7: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
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 April 15th 2012, 7: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 April 15th 2012, 7:57 pm

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

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 April 15th 2012, 7: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
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 April 15th 2012, 8: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 April 15th 2012, 8:08 pm

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

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 April 15th 2012, 9: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.


SLGray
Administrator
Administrator

Male Posts : 35669
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

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

Post by Darren1 on April 15th 2012, 10: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>

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 April 16th 2012, 2:01 am

^ 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 April 16th 2012, 2: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
Hyperactive

Male Posts : 2254
Reputation : 254
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 April 16th 2012, 2:07 am

Alright thanks

axiom
Forumember

Posts : 29
Reputation : 1
Language : english

Back to top Go down

View previous topic View next topic Back to top


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