1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Daily Stats in a page

Discussion in 'XenForo Questions and Support' started by Trover, Dec 10, 2012.

  1. Trover

    Trover Member

    I'm trying to embed the Daily statistics graph in the admin panel on a page on my site. It would be a really nice effect, does anyone know how to do this ?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Trover and Shelley like this.
  3. Trover

    Trover Member


    Hey Jake, sorry about taking a while to respond to this.

    Anyway, I see that XenForo_ControllerAdmin_Stats returns some data to the admin_stats template

    PHP:
        return $this->responseView('XenForo_ViewAdmin_Stats_Daily''stats_daily'$viewParams);
    What more specifically should I look at to have the page render this data using a callback ?
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. Trover

    Trover Member

    do you know how I could start doing this myself ?
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Basically what I said before. Create a page node callback. The link I posted has a basic skeleton for a callback function. Then inside of that function you need to write code to build the stats. You can refer to XenForo_ControllerAdmin_Stats for the code used by the stats page in the Admin CP.
     

Share This Page