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)
-   -   Mini - Post Counter in Split Thread (https://vborg.vbsupport.ru/showthread.php?t=34502)

FWC 01-25-2002 10:00 PM

We have a forum that needs to remain on topic. I do a lot of thread splitting to move posts to our off topic forum. It can be a real pain sometimes. I've had Bira's post count in threads hack installed since last July. I realized I needed something similar for splitting threads. I did some tinkering using the concept from Bira's hack and came up with this mini hack. It's been working for a while, so I thought I would release it in case somebody else would find it handy. Intstructions attached.

I added a direct link to the post count so you can open the original thread in it's own window for comparison.

FWC 01-26-2002 03:24 AM

Here's a screenshot:

Lesane 01-26-2002 10:47 AM

this is a very usefull hack, thanks :up:

FWC 01-26-2002 04:49 PM

Quote:

Originally posted by Lesane
this is a very usefull hack, thanks :up:
I'm glad you found it useful. I sure needed it. :)

Michelle69 01-26-2002 05:03 PM

Very nice, FWC :)

TWTCommish 01-26-2002 06:36 PM

I'm confused: is this hack the addition of the post # on the split thread view? IE: "Post #1," "Post #2," et cetera?

FWC 01-26-2002 06:54 PM

Quote:

Originally posted by TWTCommish
I'm confused: is this hack the addition of the post # on the split thread view? IE: "Post #1," "Post #2," et cetera?
Yes, it's tiny, but it's something I needed. :)

squawell 01-26-2002 10:41 PM

i love this one :up: :up:

thankz FWC :D :D

globalwin 07-07-2002 04:41 PM

can anyone get this to work in 2.2.6?

PHP Code:

  $counter=0;
  
$postbits '';
  
$countposts 0;
  while (
$post=$DB_site->fetch_array($posts)) {
    if (++
$counter%2==0) {
      
$post[backcolor]="{firstaltcolor}";
      
$post[bgclass] = "alt1";
      
$countposts $countposts+1;
    } else {
      
$post[backcolor]="{secondaltcolor}";
      
$post[bgclass] = "alt2";
      
$countposts $countposts+1;
    } 


FWC 07-07-2002 10:31 PM

It does work in 2.2.6. Did you edit the threads_splitthreadbit template?


All times are GMT. The time now is 09:00 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.01445 seconds
  • Memory Usage 1,736KB
  • 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)bbcode_php_printable
  • (2)bbcode_quote_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