Current date/time is May 12th 2024, 7:50 am

Search found 1 match for verh44

sum of section topic views in the section header

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
by poesia-verses
on March 8th 2024, 7:06 am
 
Search in: Scripts Problems Archives
Topic: sum of section topic views in the section header
Replies: 26
Views: 479

Back to top

Jump to: