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
  #12  
Old 05-07-2002, 02:22 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician
In my next hack, I will name a few variables after you, promise!
@Commish: As I promised: https://vborg.vbsupport.ru/showthrea...threadid=38373 :glasses:
Reply With Quote
  #13  
Old 05-07-2002, 02:30 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by mashby
I found the culprit. It was my browser - Opera.
I installed a different hack and ran into the same problem, so I launched IE and re-copied the code - it worked just fine. So, it's a browser issue.
@mashby: Thx for the feedback.

As I wrote to you, the problem was with the strange space character which look like a space but actually was not. Now we understand that it is because of Opera's encoding.

Glad we solved the issue, because it was really baffling me!

Regards,
Reply With Quote
  #14  
Old 07-18-2002, 11:19 PM
Heineken77 Heineken77 is offline
 
Join Date: Jul 2002
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Logician Great hack once again. Thanks!
Reply With Quote
  #15  
Old 07-19-2002, 03:09 AM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, very cool, and very handy too!
Reply With Quote
  #16  
Old 07-19-2002, 09:42 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yep, very cool, and very handy too!
Thx. I use this hack in my site and really like this hack a lot but considering the fact that I released this hack exactly 4 months ago and in 4 months it got only 5 installers (1 is me, so it's 4 actually), I thought it was only me who found it useful. Then Heineken77 bumped the thread yesterday and it got 3 new installers in only 1 day. So it seems there are really too many hacks released in this board and only active threads gets the attention while others are forgotten in the dark..

Ps. if anybody want to grant the viewing of subscribers to only Admins/mods etc holler and I can give you the code..
Reply With Quote
  #17  
Old 07-19-2002, 10:00 PM
Me2Be's Avatar
Me2Be Me2Be is offline
 
Join Date: Oct 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician,

Is there a way to have this hack and only have it as a link where someone can click on it to see a list of members? We have thousands of threads and some with more than one hundred subscribers and I'd prefer to not have it on the showthread

(I should have known this was your hack -- you come up with perfect ones for my group!)
Reply With Quote
  #18  
Old 07-22-2002, 08:06 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Me2Be
Logician,

Is there a way to have this hack and only have it as a link where someone can click on it to see a list of members? We have thousands of threads and some with more than one hundred subscribers and I'd prefer to not have it on the showthread

(I should have known this was your hack -- you come up with perfect ones for my group!)
Although your request requires some modifications in the hack structure, I can code it for you but please give me a few days.. (and holler to remind me if I forget it! thx)

BTW how do you like it be done: Every member can see the link and click it to get subscribers info, or just special usergroups like Admins/Mods etc.?
Reply With Quote
  #19  
Old 07-22-2002, 03:07 PM
Me2Be's Avatar
Me2Be Me2Be is offline
 
Join Date: Oct 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take your time, I've enjoyed your ideas in the past and I'm sure time will just fly by!

Actually, I'd prefer it to be just moderators and administrators only (and that way I can just add it to the admin options).

Thanks!
Reply With Quote
  #20  
Old 07-22-2002, 08:49 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds good!

Will check back...

Satan
Reply With Quote
  #21  
Old 07-23-2002, 11:58 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I promised:

This version of hack does not display the thread subscribers while you read the thread. Instead it displays a link "Display Thread Subscribers" next to "Subscribe to This Thread" and when you click it, a new window opens and display your thread's subscribers.

By default this link will be visible to Admins, S.Mods and Mods only but if you want to see it other members too, holler and I'll give you the code you need to change. (Please notice original hack displays the thread subscribers in the screen where you read the thread AND to all thread viewers)

Ps. I appreciate if someone who applied this version post a screenshot, thx..
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 07:21 PM.


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.07283 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
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
  • (4)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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