Overall Counts that work in Wrapper

Discussion in 'General Discussion' started by top50servers, Oct 8, 2016.

  1. top50servers

    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 :

  2. kalle801

    kalle801 Member

    THis is interessting. Will you share your code if it works ?
  3. top50servers

    top50servers Active Member

    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.
  4. Mark
    • Staff

    Mark Administrator Staff Member

    These worked in table_wrapper with overall stats plugin installed.
  5. top50servers

    top50servers Active Member

    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).
  6. Mark
    • Staff

    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.

Share This Page