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 February 29th 2024, 10:01 am

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 March 6th 2024, 3:27 pm; edited 2 times in total
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
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 February 29th 2024, 1:29 pm

skouliki
skouliki
Manager
Manager

Female Posts : 15247
Reputation : 1700
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 February 29th 2024, 1:49 pm

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

Male Posts : 536
Reputation : 21
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 February 29th 2024, 2:15 pm

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 : 15247
Reputation : 1700
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 March 3rd 2024, 11:04 am

up
poesia-verses
poesia-verses
Forumember

Male Posts : 536
Reputation : 21
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 March 3rd 2024, 2:30 pm

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 : 6922
Reputation : 795
Language : Greek, English

https://forumote.forumotion.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 March 3rd 2024, 2:35 pm

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 : 536
Reputation : 21
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 March 3rd 2024, 3:57 pm

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 : 6922
Reputation : 795
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

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

Post by poesia-verses March 3rd 2024, 4:05 pm

hello

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

Male Posts : 536
Reputation : 21
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 March 3rd 2024, 6:58 pm

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 : 15247
Reputation : 1700
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 March 4th 2024, 3:01 pm

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

Male Posts : 536
Reputation : 21
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 March 4th 2024, 5:37 pm

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 : 19196
Reputation : 1997
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 March 4th 2024, 8:49 pm

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 : 1527
Reputation : 264
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 March 6th 2024, 8:53 am

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 : 1527
Reputation : 264
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 March 6th 2024, 9:00 am

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 : 15247
Reputation : 1700
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 March 6th 2024, 10:41 am

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 : 536
Reputation : 21
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 March 6th 2024, 11:10 am

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 : 15247
Reputation : 1700
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 March 6th 2024, 2:35 pm

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 : 19196
Reputation : 1997
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 March 6th 2024, 8:45 pm

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 : 216
Reputation : 100
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 March 6th 2024, 10:21 pm

كونان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 : 19196
Reputation : 1997
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 March 8th 2024, 3:32 am

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 : 216
Reputation : 100
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 March 8th 2024, 4:57 am

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 : 536
Reputation : 21
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 March 8th 2024, 6:32 am

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 : 216
Reputation : 100
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 March 8th 2024, 7:06 am

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 : 536
Reputation : 21
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 March 8th 2024, 4:58 pm

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

Male Posts : 216
Reputation : 100
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 March 8th 2024, 5:53 pm

yes, everything is fine. resolved

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

Male Posts : 536
Reputation : 21
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 March 9th 2024, 12:00 am

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 : 51533
Reputation : 3519
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