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.

sum of section topic views in the section header

+3
TheCrow
skouliki
poesia-verses
7 posters

Go down

Solved sum of section topic views in the section header

Post by poesia-verses Thu 29 Feb - 10:01

sum of section topic views in the section header Clipbo47
hi all))))))))))))
please help me make a script. I need to summarize the views of the topics in the section and display the amount in the header along the arrow. Excluding views of general announcements (Google translates incorrectly)
. Sincerely


Last edited by poesia-verses on Wed 6 Mar - 15:27; edited 2 times in total
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by skouliki Thu 29 Feb - 13:29

skouliki
skouliki
Manager
Manager

Female Posts : 15408
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by poesia-verses Thu 29 Feb - 13:49

@skouliki Hello. that's not quite right.
.
and be sure to exclude general advertisements from the calculation
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by skouliki Thu 29 Feb - 14:15

We do not have that feature and i do not know if another member can help you write a script about this
skouliki
skouliki
Manager
Manager

Female Posts : 15408
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

poesia-verses likes this post

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by poesia-verses Sun 3 Mar - 11:04

up
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by TheCrow Sun 3 Mar - 14:30

Hello @poesia-verses,

So you want to add all the views in a category and add it to the TOP header or the category header (that is not the one where the announcements are)?


sum of section topic views in the section header Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

poesia-verses likes this post

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by poesia-verses Sun 3 Mar - 14:35

I want to add up all views (excluding general ads) and show the total in the section header.
views that are in the "views" column

it is difficult for a participant to follow the reading of individual topics if there are several of them, this must be remembered, but the total amount is easy to remember and compare


in the subforum title and not the category title

in picture - "просмотры" --- views in inglish language
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by TheCrow Sun 3 Mar - 15:57

This will not work effectively as there may be a lot of pages involved. In that case, it will not read those views and also it may lag your forum.


sum of section topic views in the section header Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by poesia-verses Sun 3 Mar - 16:05

hello

how many pages? subforum pages. we have few of them
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by skouliki Sun 3 Mar - 18:58

TheCrow wrote:This will not work effectively as there may be a lot of pages involved. In that case, it will not read those views and also it may lag your forum.

since this is not easy to accomplish you can open a suggestion to our suggestion section and share your proposal
skouliki
skouliki
Manager
Manager

Female Posts : 15408
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

TheCrow likes this post

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by poesia-verses Mon 4 Mar - 15:01

@Razor12345 please help me
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by Ape Mon 4 Mar - 17:37

Sadly looking over this it would be to much work for our team to recode this and then it may not even work as the system is not made to work that way and will more then likely make your forum crash.


sum of section topic views in the section header Left1212sum of section topic views in the section header Center11sum of section topic views in the section header Right112
sum of section topic views in the section header Ape_b110
sum of section topic views in the section header Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Sir Chivas™ likes this post

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by Razor12345 Mon 4 Mar - 20:49

Marked as solved

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


sum of section topic views in the section header Screen51
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1592
Reputation : 270
Language : Ukr, Rus, Eng
Location : Ukraine

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by Razor12345 Wed 6 Mar - 8:53

poesia-verses wrote:please reopened it

At the author's request, the topic has been reopened


sum of section topic views in the section header Screen51
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1592
Reputation : 270
Language : Ukr, Rus, Eng
Location : Ukraine

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by skouliki Wed 6 Mar - 9:00

Razor12345 wrote:
poesia-verses wrote:please reopened it

At the author's request, the topic has been reopened

please do not send the same pm to multiple staff members
skouliki
skouliki
Manager
Manager

Female Posts : 15408
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by poesia-verses Wed 6 Mar - 10:41

It seems to me that it’s not difficult - add the numbers in the cells into a sum
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by skouliki Wed 6 Mar - 11:10

Ape wrote:Sadly looking over this it would be to much work for our team to recode this and then it may not even work as the system is not made to work that way and will more then likely make your forum crash.

We have already answered
skouliki
skouliki
Manager
Manager

Female Posts : 15408
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by Ape Wed 6 Mar - 14:35

Dear @poesia-verses We are not miracle workers We are a team of people who work for forumotion as volunteers.
We have real lives and some of us even have family's at home. Some of us even work for a living. (A real Job)

If our team say it can't be done without a lot of work then I'm sorry we really can't do it.

#
It seems to me that it’s not difficult - add the numbers in the cells into a sum
If you really think it's not that hard then maybe you should make a code your self.

Please don't think I am being rude i am just pointing out that we have done a lot of work on codes for you and it's not basic help like we are here for.

The team is really not obligated to make codes if it is to hard or it can't be done.

I hope you understand.

Regards.

Ape.


sum of section topic views in the section header Left1212sum of section topic views in the section header Center11sum of section topic views in the section header Right112
sum of section topic views in the section header Ape_b110
sum of section topic views in the section header Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

skouliki, Niko, TonnyKamper and Razor12345 like this post

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by كونان2000 Wed 6 Mar - 20:45

hi

I didn't understand ?
Does the user want the total views to be at the top of the topics?

sum of section topic views in the section header Ocia_a14
كونان2000
كونان2000
Forumember

Male Posts : 284
Reputation : 120
Language : Arabic

https://anime.forumperso.com/

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by Ape Wed 6 Mar - 22:21

كونان2000 wrote:hi

I didn't understand ?
Does the user want the total views to be at the top of the topics?

sum of section topic views in the section header Ocia_a14

Yes i think that is what they want but sadly the templates are not the same and the codes they have used is a mess so what will work in  your forum and on there forum will not be the same


sum of section topic views in the section header Left1212sum of section topic views in the section header Center11sum of section topic views in the section header Right112
sum of section topic views in the section header Ape_b110
sum of section topic views in the section header Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

كونان2000 likes this post

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by كونان2000 Fri 8 Mar - 3:32

Ape wrote:Yes i think that is what they want but sadly the templates are not the same and the codes they have used is a mess so what will work in  your forum and on there forum will not be the same
hi @Ape
Is the following tutorial similar to what user  @poesia-verses requested

https://help.forumotion.com/t163216-add-the-total-number-of-views
كونان2000
كونان2000
Forumember

Male Posts : 284
Reputation : 120
Language : Arabic

https://anime.forumperso.com/

poesia-verses likes this post

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by poesia-verses Fri 8 Mar - 4:57

everything is as it should be!))))
sum of section topic views in the section header Clipbo24

I rearranged the header numbers, but it's easy in the template. The problem is only in general anouncements, let’s say a user gets a personal section, comes in and it already shows 800 views (from general advertisements) although there are no topics in the section. Could you please exclude these general anouncements?

Regards


poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

كونان2000 likes this post

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by كونان2000 Fri 8 Mar - 6:32

hi @poesia-verses
If the subject of a general announcement is the first
It can be excluded

Invision version
Code:
 <script>
    $(document).ready(function(){
        var total = 0;
        $('#main-content td:nth-child(6):not(#main-content > div:nth-child(9) > table:nth-child(5) > tbody > tr:nth-child(1) > td:nth-child(6))').each(function(){
          var value = parseInt($(this).text());
          if (!isNaN(value)) {
            total += value;
          }
        $('#total').text(total);
      });
    });
  </script>
<style>
.Total-views {
    display: block;
    font-size: 17px;
    border: solid #5c52529e 1px;
    padding: 5px;
    font-weight: 800;
    background: #fdfdfd;
    margin: 5px;
    text-align: center;
}
</style>
<div class="Total-views">The total number of views of the topics below: <span id="total"></span></div>
كونان2000
كونان2000
Forumember

Male Posts : 284
Reputation : 120
Language : Arabic

https://anime.forumperso.com/

poesia-verses likes this post

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by poesia-verses Fri 8 Mar - 7:06

sorry

https://stihi-podval.forumotion.com/f75-forum


I can’t exclude, the template has been changed - the column of recent messages has been rearranged


ADD 11:58:04


the tables have the same “header” in the template, so it was not clear (tables have IMPORTANT themes and ORDINARY ones)
I gave an ID to the top table with important topics. and the path was simplified, without table numbers


Code:
$(document).ready(function(){
        var total = 0;
      $('#main-content td:nth-child(7):not(#verh44 > tbody > tr:nth-child(1) > td:nth-child(7))').each(function(){
          var value = parseInt($(this).text());
          if (!isNaN(value)) {
            total += value;
          }
        $('#total').text(total);
      });
    });

td7 because the last messages column has been rearranged

#verh44 - id table




ADD 13:44:16

I looked at the effect, it seems... this number will show approximately))) the user’s activity, how many views there are in his section. turned out to be a good idea. Based on this result, you can reward the user, for example, there will be a competition to see who has the most, haha.

thank you very much
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by كونان2000 Fri 8 Mar - 16:58

hi @poesia-verses
Does this mean that the issue has been resolved?
كونان2000
كونان2000
Forumember

Male Posts : 284
Reputation : 120
Language : Arabic

https://anime.forumperso.com/

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by poesia-verses Fri 8 Mar - 17:53

yes, everything is fine. resolved

--******-*-*-*-***--*-*-*-
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: sum of section topic views in the section header

Post by SLGray Sat 9 Mar - 0:00

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


sum of section topic views in the section header 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 : 51597
Reputation : 3527
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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