vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Personal replies (https://vborg.vbsupport.ru/showthread.php?t=42450)

Barret 08-18-2002 06:02 PM

Personal replies
 
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:

PHP Code:

          ".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:

PHP Code:

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

before it add:

PHP Code:

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:

PHP Code:

Posts$post[posts

after it add:

PHP Code:

Replies$post[replies

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

g-force2k2


All times are GMT. The time now is 07:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01097 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete