Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Show Thread Subscribers in All Threads Details »»
Show Thread Subscribers in All Threads
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-24-2002 Last Update: Never Installs: 16
 
No support by the author.

Hiya,

This hack shows who subscribed to a particular thread at the end of all threads while you're reading it. Very easy to implement:

1- Edit showthread.php, Find:
PHP Code:
  } else {
    
$postdone[$post[postid]]=1;
  }
  
$postbits .= getpostbit($post);

AFTER THAT ADD:

PHP Code:
// LOGICIAN THREAD SUBSCRIBERS HACK:
$log_subscribers=$DB_site->query("SELECT s.userid, u.username FROM subscribethread s, user u WHERE u.userid=s.userid AND s.threadid='$threadid' ORDER BY u.username");
$log_sayac=0;$log_subscribers_birik='';
while (
$log_subscriber=$DB_site->fetch_array($log_subscribers)) {$log_subscribers_birik.="<a href=$bburl/member.php?s=&action=getinfo&userid=".$log_subscriber['userid'].">".$log_subscriber['username']."</a>, ";$log_sayac++;}
if (
$log_sayac!=0) {$log_subscribers_birik=substr($log_subscribers_birik0strlen($log_subscribers_birik)-2);}
if (
$log_sayac==0) {$log_subscribers_table="<b>Thread Subscribers</b> : N/A";}
elseif (
$log_sayac==1) {$log_subscribers_table="<b>Thread Subscriber</b> : $log_subscribers_birik";}
else {
$log_subscribers_table="<b>Thread Subscribers</b> ($log_sayac) : ".$log_subscribers_birik;}
// LOGICIAN THREAD SUBSCRIBERS HACK: 
2- LOGIN CP/ MODIFY TEMPLATE/EDIT showthread templates/showthread

FIND:

PHP Code:
<!-- time zone and post buttons --> 
AFTER THAT ADD:

PHP Code:
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<
tr>
<
td bgcolor="{_firstaltcolor}"><smallfont>$log_subscribers_table</smallfont></td>
</
tr>
</
table
(Remove _ at {_firstaltcolor} above!)

if you liked this hack, you may want to take a look at these hacks too:
* Change "Subscribe to This Thread" link to "Unsubscribe" if already subscribed too. (IMO They make a good couple..)
* Confirm Unsubscribe From All Threads Requests

This hack has another version released in this thread too. In that version thread subscribers are not displayed in the thread view, instead there appears a link next to "Subscribe This Thread" to display them in a new window.. Choose your pick..

Hack works with any vb versions I know, dont hesitate to apply..

If you install the hack please click INSTALL, thank you..

Enjoy!
Regards,
Logician \\=^))

Ps. Not likely, but if you get a Parse Error while applying the hack, try to copy paste not from this message but from the TEXT instructions I attached a few messages below instead.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 07-23-2002, 03:45 PM
Me2Be's Avatar
Me2Be Me2Be is offline
 
Join Date: Oct 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician,

Thank you my friend!
Reply With Quote
  #23  
Old 12-20-2002, 11:59 AM
todd.o.callen's Avatar
todd.o.callen todd.o.callen is offline
 
Join Date: Oct 2002
Location: Indiana, USA
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you code this for forums?

This is extraordinarily useful for our corporation, and we will probably install it on all of our vB installs.
Reply With Quote
  #24  
Old 03-07-2003, 08:32 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, installed!
Thanks Logician
Reply With Quote
  #25  
Old 03-10-2003, 12:01 PM
todd.o.callen's Avatar
todd.o.callen todd.o.callen is offline
 
Join Date: Oct 2002
Location: Indiana, USA
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by todd.o.callen
Can you code this for forums?

This is extraordinarily useful for our corporation, and we will probably install it on all of our vB installs.
I haven't heard back on this. Is it still a possibility? Is it in vB3?
Reply With Quote
  #26  
Old 03-11-2003, 01:47 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is just a great hack. I just re-installed it on my 2.3.0 board and it's working like a charm.

Any chance of adding this feature to Forums as well and not just to threads? :cross-eyed:
Reply With Quote
Reply


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 01:19 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.06372 seconds
  • Memory Usage 2,275KB
  • Queries Executed 22 (?)
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
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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