Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 11-11-2001, 02:41 AM
SharkY-GA's Avatar
SharkY-GA SharkY-GA is offline
 
Join Date: Oct 2001
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know tubedog made it for 2.0.x but could someone do this for v2.2.x?

tubedogs:
https://vborg.vbsupport.ru/showthrea...threadid=12420

I just cant find it...
Reply With Quote
  #2  
Old 11-15-2001, 02:22 AM
almightyone almightyone is offline
 
Join Date: Oct 2001
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^bump^
Reply With Quote
  #3  
Old 11-15-2001, 02:12 PM
Barret Barret is offline
 
Join Date: Nov 2001
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don`t think anyone knows how to do this yet.
If you ask me, this should have been an option on the board "Vbb" to
delete posts with prune or not to.
Unfortunately, it was not.
Reply With Quote
  #4  
Old 11-15-2001, 02:34 PM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok~~i already do it!!

find admin/functions
PHP Code:
$posts=$DB_site->query("SELECT userid,attachmentid,postid FROM post WHERE threadid='$threadid'");
    while (
$post=$DB_site->fetch_array($posts)) {
      if (
$countposts) {
        if (!isset(
$userpostcount["$post[userid]"])) {
         
$userpostcount["$post[userid]"] = -1;
        } else {
         
$userpostcount["$post[userid]"]--;
       }
     } 
to this
PHP Code:
$posts=$DB_site->query("SELECT userid,attachmentid,postid FROM post WHERE threadid='$threadid'");
    while (
$post=$DB_site->fetch_array($posts)) {
     
// if ($countposts) {
       // if (!isset($userpostcount["$post[userid]"])) {
         // $userpostcount["$post[userid]"] = -1;
        //} else {
         // $userpostcount["$post[userid]"]--;
        //}
      //} 
i already test on vbb220 and it's work!!
Reply With Quote
  #5  
Old 11-17-2001, 12:00 AM
Barret Barret is offline
 
Join Date: Nov 2001
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well thank you so very much man!
That did the trick for sure!
Great work and thanks again!!
Reply With Quote
  #6  
Old 11-17-2001, 01:16 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Barret
Well thank you so very much man!
That did the trick for sure!
Great work and thanks again!!
ur welcome~

i'm happy it work to u
Reply With Quote
  #7  
Old 11-17-2001, 02:37 AM
almightyone almightyone is offline
 
Join Date: Oct 2001
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i juts did this hack and it doesnt reduce on thread deletion but if i delete an individual post in a thread it drops count i posted a thread then a reply i deleted the reply it lowered by 1 i deleted the thread it didnt
Reply With Quote
  #8  
Old 11-17-2001, 04:16 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that should be two parts~~

i only fixed one part make it can work on 203 and 220

another part u find out early post u'll find
Reply With Quote
  #9  
Old 11-17-2001, 10:19 AM
SharkY-GA's Avatar
SharkY-GA SharkY-GA is offline
 
Join Date: Oct 2001
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by almightyone
well i juts did this hack and it doesnt reduce on thread deletion but if i delete an individual post in a thread it drops count i posted a thread then a reply i deleted the reply it lowered by 1 i deleted the thread it didnt
This is because their seperate peices of code... I have this done... I will post it tommorow...
Reply With Quote
  #10  
Old 12-06-2001, 12:18 PM
CoolaShacka CoolaShacka is offline
 
Join Date: Dec 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by SharkY-GA (11-17-01 01:19 PM)
This is because their seperate peices of code... I have this done... I will post it tommorow...

*gg*
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04293 seconds
  • Memory Usage 2,255KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete