PDA

View Full Version : Personal replies


Barret
08-18-2002, 06:02 PM
How could a person do this?
I dont want total replies to a thread but rather each personal reply.
Any ideas?

g-force2k2
08-18-2002, 06:22 PM
can't you just click on the postcount for the thread and get the breakdown?

g-force2k2

Barret
08-18-2002, 06:56 PM
Ummmmmmm, nope.
I just wanna see how many replies people have verses total posts. :)

g-force2k2
08-18-2002, 06:57 PM
you mean compaed to their total posts?

g-force2k2

Barret
08-18-2002, 07:25 PM
yepper
I want to only see how many times they have replied total.
Then compare to how many times they have posted.

Seifer
08-18-2002, 07:48 PM
So you don't want posts obtained from making threads to count? Just replying to them?

Barret
08-18-2002, 09:58 PM
Yep Yep

g-force2k2
08-18-2002, 10:40 PM
Barret open newthread.php

find:

".iif ($foruminfo[countposts],"posts=posts+1,","")."

and just simply delete it all... then when creating new threads it won't add to the post count... hope that is what you're looking for... regards...

g-force2k2

Barret
08-19-2002, 12:33 AM
g-force2k2 thanks for the help, :)
Ummmm, what I am really looking for is a hack that keeps a persons total post but also tells how many replies he/she has made.
I think it would be interesting for all members to see how many people started posts verses just replied to them.
With the reply option, you could tell really fast when you see like
Username: Barret
Posts: 50
Replies: 48
You can tell real fast that I only started 2 threads and the rest are just replies.
Maybe this can`t be done. :(
Thanks for all the help anyway. :)

g-force2k2
08-19-2002, 12:42 AM
open admin/functions.php

find:

$post[joindate]=vbdate($registereddateformat,$post[joindate]);

before it add:

global $DB_site;
$threads = $DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE postuserid = '$post[userid]'");
$post[threads] = $threads[0];
$post[replies] = $post[posts] - $post[threads];

then in postbit template find:

Posts: $post[posts]

after it add:

Replies: $post[replies]

I haven't tested it so i can't gaurentee but give it a shot :)

g-force2k2

Barret
08-19-2002, 01:09 AM
Well, I did that but it never showed any numbers of replies. :(
Any other ideas and btw, thanks for all the help. :)

g-force2k2
08-19-2002, 01:13 AM
umm does the $post[threads] show anything if you put it in the postbit?

g-force2k2

g-force2k2
08-19-2002, 01:22 AM
Actually Barret use this coding... it works :)

global $DB_site;
$threads = $DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE postuserid='$post[userid]'");
$post[threads] = $threads['threads'];
$post[replies] = $post[posts] - $post[threads];

Enjoy man ;)

g-force2k2

Barret
08-19-2002, 02:01 AM
Thanks alot man..worked great!
Great job!

g-force2k2
08-19-2002, 02:21 AM
lol... np Barret ever need assistance again ya know where to find me :) regards...

g-force2k2