![]() |
help me, users average posts
hi :)
how can i know all users average posts??? thanks |
Huh?
can you explain what you meant by average posts? Sorry, but i don't understand what you mean. |
lets say that i have 3 users
the first user posts 2 messages on the forum only the second user posts 1 messages on the forum only the 3d user posts 5 messages on the forum the average = (2 + 1 + 5) / 3 = 8 / 3 = 3 post per user can me to do that?? |
ahhh, i see
that wouldn't be a problem where do you want to put it? if you want to put it on the forumhomepage open index.php find this: PHP Code:
$avposts= round($totalposts/$numbermebers); then you can use $avposts in your forumhome template |
thank you
but i dont want to show it in the main page.. i want to show it admin/index.php (admin cp home page) thats what ive done: PHP Code:
PHP Code:
Warning: Division by zero why it become zero?? |
PHP Code:
|
thank you :) and sorry for this stupid mistake :knockedout:
|
;)
you're welcome |
All times are GMT. The time now is 07:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|