sum of section topic views in the section header
+3
TheCrow
skouliki
poesia-verses
7 posters
Page 1 of 1
sum of section topic views in the section header
Last edited by poesia-verses on March 6th 2024, 3:27 pm; edited 2 times in total
Re: sum of section topic views in the section header
Hello
Are you talking about something like this?
https://help.forumotion.com/t163128-put-another-counter-module-in-the-forum-index
Are you talking about something like this?
https://help.forumotion.com/t163128-put-another-counter-module-in-the-forum-index
Re: sum of section topic views in the section header
@skouliki Hello. that's not quite right.
.
and be sure to exclude general advertisements from the calculation
.
and be sure to exclude general advertisements from the calculation
Re: sum of section topic views in the section header
We do not have that feature and i do not know if another member can help you write a script about this
poesia-verses likes this post
Re: sum of section topic views in the section header
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)?
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)?
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!
poesia-verses likes this post
Re: sum of section topic views in the section header
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
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
Re: sum of section topic views in the section header
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.
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!
Re: sum of section topic views in the section header
hello
how many pages? subforum pages. we have few of them
how many pages? subforum pages. we have few of them
Re: sum of section topic views in the section header
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
TheCrow likes this post
Re: sum of section topic views in the section header
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.
Sir Chivas™ likes this post
Razor12345- Support Moderator
- Posts : 1586
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine
Re: sum of section topic views in the section header
poesia-verses wrote:please reopened it
At the author's request, the topic has been reopened
Razor12345- Support Moderator
- Posts : 1586
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine
Re: sum of section topic views in the section header
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
Re: sum of section topic views in the section header
It seems to me that it’s not difficult - add the numbers in the cells into a sum
Re: sum of section topic views in the section header
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
Re: sum of section topic views in the section header
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.
#
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.
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.
#
If you really think it's not that hard then maybe you should make a code your self.It seems to me that it’s not difficult - add the numbers in the cells into a sum
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.
skouliki, Niko, TonnyKamper and Razor12345 like this post
Re: sum of section topic views in the section header
hi @ApeApe 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
Is the following tutorial similar to what user @poesia-verses requested
https://help.forumotion.com/t163216-add-the-total-number-of-views
poesia-verses likes this post
Re: sum of section topic views in the section header
everything is as it should be!))))
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
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
كونان2000 likes this post
Re: sum of section topic views in the section header
hi @poesia-verses
If the subject of a general announcement is the first
It can be excluded
Invision version
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>
poesia-verses likes this post
Re: 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
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
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
Re: sum of section topic views in the section header
hi @poesia-verses
Does this mean that the issue has been resolved?
Does this mean that the issue has been resolved?
Re: sum of section topic views in the section header
yes, everything is fine. resolved
--******-*-*-*-***--*-*-*-
--******-*-*-*-***--*-*-*-
Re: sum of section topic views in the section header
Problem solved & topic archived.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Number of views for some topic in last 24 hours
» What is the limit of the views count of a topic?
» Why after 10000 views, no. of viewing of a topic doesn't increase?
» Can't see new topic section and some other parts of my forum
» can we make disable the post new topic in particular section
» What is the limit of the views count of a topic?
» Why after 10000 views, no. of viewing of a topic doesn't increase?
» Can't see new topic section and some other parts of my forum
» can we make disable the post new topic in particular section
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum