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.
1 2007-06-24 03:26
Topic: Warning: Division by zero (1 replies, posted in PunBB 1.2 troubleshooting)
2 2007-06-19 23:35
Re: Registration Date and the Posts per day average (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
3 2007-06-19 21:43
Re: Registration Date and the Posts per day average (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I DID IT!!!!!!!!!!!
THNX
4 2007-06-19 21:22
Re: Registration Date and the Posts per day average (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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)';
5 2007-06-19 17:29
Re: Registration Date and the Posts per day average (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
So, i put the code in a file rename it into something.php and upload it into the forum directory?
This did not work
Help me please.
6 2007-06-19 16:03
Re: Registration Date and the Posts per day average (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
So, i put the code in a file rename it into something.php and upload it into the forum directory?
7 2007-06-19 04:28
Re: Registration Date and the Posts per day average (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.
8 2007-06-19 03:14
Re: Registration Date and the Posts per day average (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Thanks a lot man!
9 2007-06-17 03:42
Re: Registration Date and the Posts per day average (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I don't know how to execute an SQL query...
10 2007-06-17 03:08
Re: Registration Date and the Posts per day average (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Where do i put this code?
I'm a n00b, so please bare with me...
11 2007-06-17 02:06
Re: Registration Date and the Posts per day average (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 .
12 2007-06-17 01:05
Topic: Registration Date and the Posts per day average (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.