vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Thread... Post... and Reply Count... (https://vborg.vbsupport.ru/showthread.php?t=42510)

g-force2k2 08-19-2002 10:00 PM

Thread... Post... and Reply Count...
 
It's really a quick hack but i thought i'd release it because maybe some members would find interest in it... requested by Barret... it requires only a file edit and template edit... yes a smaller hack ;) i usually try to stay away from them because i like challenges...

open admin/functions.php

find:

PHP Code:

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

above 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['threads'];
    
$post[replies] = $post[posts] - $post[threads]; 

the open the postbit template and place $post[threads] and/or $post[replies] wherever you like... hopefully it'll be useful to some member...

Enjoy ;)

g-force2k2

ZiRu$ 08-20-2002 02:14 AM

good idea......i will not use it though.........incourages spamming.......hidin post count is cool

LOD-squa 08-20-2002 02:58 AM

It's a good idea but I really like for people to see postcount.

altmac 08-20-2002 03:43 AM

Could we set this in the header as well?

g-force2k2 08-20-2002 03:50 AM

you mean on the index.php?

g-force2k2

altmac 08-20-2002 03:55 AM

Yeah, nevermind, I figured it out.

ULTIMATESSJ 08-20-2002 10:45 AM

pretty good stuffs, nice work

N9ne 08-20-2002 01:25 PM

So this shows how many replies and how many topics each user has done?

g-force2k2 08-20-2002 01:34 PM

yep thats right Tha Rock you can put what ever you want in the postbit template... if you want all three to show then use them all...

$post[posts]
$post[threads]
$post[replies]

else just put whichever ones that you want to show...

g-force2k2

Attrox 08-20-2002 03:31 PM

Hmm...nice hack and all, but I don't think I'll be using this.


All times are GMT. The time now is 04:59 PM.

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.01259 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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