Author Topic: Extended statistics  (Read 738 times)

Hornyflings

  • Prime Member
  • ****
  • Posts: 194
  • Karma: +3/-0
    • AsiasHeart
Extended statistics
« on: July 26, 2015, 10:35:07 AM »
Now as standard there is statistics about total members, total pics, total blogs and total blog posts available. Thanks to BM flyer5 who shared his code contribution it's extended to paid members.

It would be nice if there would be extended statistics to show the type of members as well, mean to show the amount of males and the amount of females, because especially for successfull dating site it's single most important almost keep an eye on it to have at least 60 % female members.

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1004
  • Karma: +56/-7
Re: Extended statistics
« Reply #1 on: July 28, 2015, 09:14:18 AM »
It's relatively easy. Just follow this link for the basic code.

http://forum.datemill.com/index.php?topic=3324.msg14574#msg14574

and then make any changes to your css file to suit your design needs.
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

Hornyflings

  • Prime Member
  • ****
  • Posts: 194
  • Karma: +3/-0
    • AsiasHeart
Re: Extended statistics
« Reply #2 on: July 28, 2015, 09:58:18 AM »
It's relatively easy. Just follow this link for the basic code.

http://forum.datemill.com/index.php?topic=3324.msg14574#msg14574

and then make any changes to your css file to suit your design needs.


Thanks a lot!
Seems I've overlooked when searching the forum.

Just added the code! Thanks for sharing!
Works great!

In stats.html I've changed the code as following:

Quote
<div id="small_box">
   <h2>Males</h2>
   <p>{output.num_males}</p>
</div>

<div id="small_box">
   <h2>Females</h2>
<p>{output.num_females}</p>
</div>

and reduced the related values in content.css to show stats within 1 row.