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 Mon 14 Sep - 17:04

Hi,

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

Thanks In Advance!

Regards & Respect!
avatar
smejker
Forumember

Male Posts : 166
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 Mon 14 Sep - 17:28

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}
avatar
Raykim
Forumember

Male Posts : 70
Reputation : 8
Language : Romanian, English, German, French, Italian
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 Tue 15 Sep - 13:53

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!
avatar
smejker
Forumember

Male Posts : 166
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 Thu 17 Sep - 6:34

avatar
mpelmmc
Forumember

Male Posts : 143
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 Thu 17 Sep - 14:49

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!!!
avatar
smejker
Forumember

Male Posts : 166
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 Thu 17 Sep - 22:48

Where are you adding this information?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 39560
Reputation : 2653
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

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

Post by smejker on Fri 18 Sep - 11:08

I want to add in a statistics of home page!
avatar
smejker
Forumember

Male Posts : 166
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 Sun 20 Sep - 13:38

BUMP!!! Sad
avatar
smejker
Forumember

Male Posts : 166
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 Sun 20 Sep - 17:57

@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.

avatar
SLGray
Administrator
Administrator

Male Posts : 39560
Reputation : 2653
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

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

Post by smejker on Wed 23 Sep - 17:02

OK My mistake, sorry!

Pls forumotionmembers, forumotionstaff Help!
avatar
smejker
Forumember

Male Posts : 166
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 Wed 23 Sep - 21:19

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.

avatar
SLGray
Administrator
Administrator

Male Posts : 39560
Reputation : 2653
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

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

Post by smejker on Thu 24 Sep - 11:52

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

Male Posts : 166
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 Thu 24 Sep - 12:24

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
});
avatar
Ange Tuteur
Forumaster

Male Posts : 13174
Reputation : 2872
Language : EN10, FR5
Location : Macungie, PA

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