I get this massage between posts:
Warning: Division by zero in /home/www/redrepublik.awardspace.com/Forum/viewtopic.php on line 235
Help me please.

Oh wait, there something wrong, every member have the same average.:|
What I want is for example asd9991 has 12 Posts and registered 4 days ago so his average will be 12/4= 3, Smartys has  5047 Posts and registered 1164 days ago so his average will be 5047 /1164 = 4.33

I DID IT!!!!!!!!!!!
THNX

I've tried to run this query but it didn't work
FIND if ($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST)
                $user_info[] = '<dd>'.$lang_common['Posts'].': '.$cur_post['num_posts'];
REPLACE WITH if ($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST)
                $user_info[] = '<dd>'.$lang_common['Posts'].': '.$cur_post['num_posts'].' ('.round($pun_user['num_posts'] / floor((time() - $pun_user['registered']) / 86400), 2).' posts/day)';

asd9991 wrote:

So, i put the code in a file rename it into something.php and upload it into the forum directory?

This did not work sad
Help me please.

So, i put the code in a file rename it into something.php and upload it into the forum directory?

I have fixed the registration date.
As for my second question, I want to displays the user's post per day average underneath the posts. something like this. http://aycu05.webshots.com/image/16724/ … 553_rs.jpg
I have tried to run this code

$posts_per_day = $pun_user['num_posts'] / floor((time() - $pun_user['registered']) / 86400);

As an SQL Query, it didn't work.
Please help me.

Thanks a lot man!

I don't know how to execute an SQL query...

Where do i put this code?
I'm a n00b, so please bare with me...

I forgot to mention that I'm new to this so please can you be more specific and give me a step by step guide .

how can I  change the poster registration date?
and I want to add the average Posts per day for poster but don't know how to do it, help me please.

Thanks in advance. smile