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.

How to get numbers of total topics?

View previous topic View next topic Go down

In progress How to get numbers of total topics?

Post by smejker on September 14th 2015, 4:04 pm

Hi,

How to get numbers of total topisc in statistics... Like : Total Post / Messages, Total Users...

Thanks In Advance!

Regards & Respect!

smejker
Forumember

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by Raykim on September 14th 2015, 4:28 pm

Hi,

To understand that you want the HTML variables to the total number of members/posts/topics ? If so, I will list below the desired variables:

For the number of users:
Code:
{FORUMCOUNTUSER}
For the number of posts:
Code:
{FORUMCOUNTPOST}
For the number of subjects
Code:
{FORUMCOUNTOPIC}

Raykim
Forumember

Male Posts : 57
Reputation : 7
Language : Romanian, English, German, French, Italian, Hungarian
Location : Romania

http://help.forumgratuit.ro/

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by smejker on September 15th 2015, 12:53 pm

Not is that... When I put
Code:
{FORUMCOUNTOPIC}
nothing show...

I Have This:


Code:
                <li class="board_statistics"><b>Total Posts:</b> {TOTAL_POSTS}</li>
                <br> <li class="board_statistics"><b>Total Users:</b> {TOTAL_USERS}</li>
                <br> <li class="board_statistics"><b>Total Topics:</b> {FORUMCOUNTOPIC}</li>
                <br> <li class="board_statistics"><b>New User:</b> {NEWEST_USER}</li>
I see number of Total Post, Total Users and New User, but number of Total Topics is missing Sad

But, Thanks anyway!

smejker
Forumember

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by mpelmmc on September 17th 2015, 5:34 am


mpelmmc
Forumember

Male Posts : 139
Reputation : 12
Language : Spanish (100%), English (90%) and Google Translate.
Location : I go back and forth.

http://asistencia.foroactivo.com/forum

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by smejker on September 17th 2015, 1:49 pm

Yes, I see... but I can't find solution of my question...

I can't get number of total topics with:
Code:
{FORUMCOUNTOPIC}
and with:
Code:
{TOTAL_TOPIC} & {TOTAL_TOPICS}

Pls HELP!!!

smejker
Forumember

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by SLGray on September 17th 2015, 9:48 pm

Where are you adding this information?


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


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by smejker on September 18th 2015, 10:08 am

I want to add in a statistics of home page!

smejker
Forumember

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by smejker on September 20th 2015, 12:38 pm

BUMP!!! Sad

smejker
Forumember

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by SLGray on September 20th 2015, 4:57 pm

@smejker wrote:BUMP!!! Sad
Second Reminder:

Please don't use bold or color and keep to the default text. This is reserved for the staff for moderation.


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


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by smejker on September 23rd 2015, 4:02 pm

OK My mistake, sorry!

Pls forumotionmembers, forumotionstaff Help!

smejker
Forumember

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by SLGray on September 23rd 2015, 8:19 pm

It should already show the number of messages/posts in the legend of your homepage.


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


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by smejker on September 24th 2015, 10:52 am

Yes, I see and I know that... but I want to get number of total topics of Forum... of course, if it's possible.

smejker
Forumember

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

In progress Re: How to get numbers of total topics?

Post by Ange Tuteur on September 24th 2015, 11:24 am

Hi smejker,

Do you use forum widgets ? If so, you can create a widget with the following content :
Code:
<div style="display:none" id="getTopicCount">{FORUMCOUNTOPIC}</div>
( Make sure to tick "No" for table type ) then save and drag the widget onto your forum.

After this, you can get the topic count via JS :
Code:
$(function() {
  var sujets = document.getElementById('getTopicCount');
  if (sujets) sujets.innerHTML; // topic count
});

To apply it, you just need to add an element in your template with an id, such as this :
Code:
<span id="statsTopics">0</span>

Then we just modify the script to add the value to this element :
Code:
$(function() {
  var sujets = document.getElementById('getTopicCount'), target = document.getElementById('statsTopics');
  if (sujets && target) target.innerHTML = sujets.innerHTML; // apply topic count
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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