vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Very simple! (https://vborg.vbsupport.ru/showthread.php?t=43064)

N9ne 09-02-2002 01:22 AM

Very simple!
 
I want to make it so whenever a forum is pruned, or a topic is deleted, the counters on forumhome, ie. Members: 14141, Threads: 5252, Posts: 2525252 <<< the threads and posts counters here should NOT change.

I've done the hack so when a thread is deleted or a forum is pruned or etc. etc. post counts do NOT go down, however i want the same for the counters at the top of forumhome ;)

I know it's probably to do with either index.php or admin/functions.php or both ;)

g-force2k2 09-02-2002 02:37 AM

just replace the variables in the index.php with the ones that you want counted (the ones you create the queries that select the max(postid) etc...) hope that helps man :)

g-force2k2

N9ne 09-02-2002 03:15 AM

I'm sorry but that went in one ear and straight out of the other, I think i'll need a step by step find this replace this instructions lol :ermm:

Unknown553 09-02-2002 04:02 AM

Not sure, but try looking through postings.php and finding something like $DB_site->query("DELETE FROM user WHERE post[posts].... or something, maybe comment that out so the post count isnt reduced/delete from the database.

Logician 09-02-2002 07:38 AM

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=38411" target="_blank">https://vborg.vbsupport.ru/showt...threadid=38411</a>

N9ne 09-02-2002 09:42 AM

Logician to the recsueeeeeeeeeee thanks man :)


All times are GMT. The time now is 11:19 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.01287 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete