Overall Counts that work in Wrapper

top50servers

Active Member
I have some code in my footer and I wish to display the total number of votes and the total number of users sent ( {$tot_in_overall} & {$tot_out_overall} respectively) but these 2 values change depending on the page.

For example, when going to one of my sites details pages, the 2 values change to the overall that only that server has got, not the whole site.

What values would show the whole sites values every time, and how can I make sure it loads every time before the page finishes its render?

Right now it will fail to load in most cases and stop at a random number :

upload_2016-10-8_10-53-59.png
 

top50servers

Active Member
THis is interessting. Will you share your code if it works ?
Sure I guess, it should just come down to a tag which always loads the value of total in and out. Something like {$total_in} and {$total_out} which always loads the whole lists stats rather then using {$tot_in_overall} & {$tot_out_overall} which changes value depending on the page.
 

Mark

Administrator
Staff member
{$in_overall}{$out_overall}
These worked in table_wrapper with overall stats plugin installed.
 

top50servers

Active Member
{$in_overall}{$out_overall}
These worked in table_wrapper with overall stats plugin installed.
How would I get these to work in wrapper.html? I'm guessing its some <data include> thing but not sure what I should be adding/editing. Any help is appreciated!

(This is in the wrong section, my bad).
 

Mark

Administrator
Staff member
After some quick testing, looks like you would need a custom plugin for that, query the database stats table and sum all incoming values. Do the same for outgoing.
 
Top