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?

3 posters

Go down

In progress How to get numbers of total topics?

Post by smejker Mon Sep 14, 2015 3: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

Back to top Go down

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

Post by Guest Mon Sep 14, 2015 3: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 Tue Sep 15, 2015 11:53 am

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

Back to top Go down

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

Post by Guest Thu Sep 17, 2015 4:34 am

avatar
Guest
Guest


Back to top Go down

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

Post by smejker Thu Sep 17, 2015 12: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

Back to top Go down

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

Post by SLGray Thu Sep 17, 2015 8: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 : 51555
Reputation : 3524
Language : English
Location : United States

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 Fri Sep 18, 2015 9: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

Back to top Go down

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

Post by smejker Sun Sep 20, 2015 11:38 am

BUMP!!! Sad
smejker
smejker
Forumember

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

Back to top Go down

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

Post by SLGray Sun Sep 20, 2015 3: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 : 51555
Reputation : 3524
Language : English
Location : United States

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 Wed Sep 23, 2015 3:02 pm

OK My mistake, sorry!

Pls forumotionmembers, forumotionstaff Help!
smejker
smejker
Forumember

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

Back to top Go down

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

Post by SLGray Wed Sep 23, 2015 7: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 : 51555
Reputation : 3524
Language : English
Location : United States

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 Thu Sep 24, 2015 9: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

Back to top Go down

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

Post by Ange Tuteur Thu Sep 24, 2015 10: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 : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

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