The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
help me, users average posts
hi
how can i know all users average posts??? thanks |
#2
|
||||
|
||||
Huh?
can you explain what you meant by average posts? Sorry, but i don't understand what you mean. |
#3
|
|||
|
|||
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?? |
#4
|
||||
|
||||
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 |
#5
|
|||
|
|||
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?? |
#6
|
||||
|
||||
PHP Code:
|
#7
|
|||
|
|||
thank you and sorry for this stupid mistake :knockedout:
|
#8
|
||||
|
||||
you're welcome |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|