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.
The forum of the forums
3 posters

    How to get numbers of total topics?

    smejker
    smejker
    Forumember


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

    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!
    avatar
    Guest
    Guest


    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}
    smejker
    smejker
    Forumember


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

    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!
    avatar
    Guest
    Guest


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

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

    smejker
    smejker
    Forumember


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

    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!!!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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.
    smejker
    smejker
    Forumember


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

    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

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

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

    BUMP!!! Sad
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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.
    smejker
    smejker
    Forumember


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

    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!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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.
    smejker
    smejker
    Forumember


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

    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.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    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
    });

      Current date/time is September 22nd 2024, 8:17 pm