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.

How to get numbers of total topics?

4 posters

Go down

In progress How to get numbers of total topics?

Post by smejker 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
smejker
Forumember

Male Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian

View user profile

Back to top Go down

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

Post by Guest 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}
avatar
Guest
Guest


Back to top Go down

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

Post by smejker 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
smejker
Forumember

Male Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian

View user profile

Back to top Go down

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

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

mpelmmc
mpelmmc
Helper
Helper

Male Posts : 1088
Reputation : 170
Language : English and Spanish

View user profile https://help.forumotion.com/

Back to top Go down

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

Post by smejker 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
smejker
Forumember

Male Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian

View user profile

Back to top Go down

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

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

Where are you adding this information?


How to get numbers of total topics? 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 : 50335
Reputation : 3473
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

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

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

Male Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian

View user profile

Back to top Go down

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

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

BUMP!!! Sad
smejker
smejker
Forumember

Male Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian

View user profile

Back to top Go down

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

Post by SLGray 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.


How to get numbers of total topics? 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 : 50335
Reputation : 3473
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

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

OK My mistake, sorry!

Pls forumotionmembers, forumotionstaff Help!
smejker
smejker
Forumember

Male Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian

View user profile

Back to top Go down

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

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

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


How to get numbers of total topics? 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 : 50335
Reputation : 3473
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by smejker 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
smejker
Forumember

Male Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian

View user profile

Back to top Go down

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

Post by Ange Tuteur 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
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2990
Language : English & 日本語
Location : Pennsylvania

View user profile https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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