Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 19 Sep 2012, 17:08
dutchbb dutchbb is offline
 
Join Date: Dec 2003
Members can see how many are subscribed to their thread

Does this mod exist? If not, someone interested in creating it?
Reply With Quote
  #2  
Old 29 Sep 2012, 02:40
dutchbb dutchbb is offline
 
Join Date: Dec 2003
bump
Reply With Quote
  #3  
Old 29 Sep 2012, 14:13
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
You can do something like this: create a plugin using hook showthread_complete and this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Then edit the SHOWTHREAD template and use $subscribed_count where you want the count to appear, maybe like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by kh99; 29 Sep 2012 at 14:30. Reason: changed for vb3
Reply With Quote
  #4  
Old 29 Sep 2012, 16:07
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
@ kh99 - How would you do this for vb4?
Reply With Quote
  #5  
Old 29 Sep 2012, 16:12
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
lol, I originally posted it for vb4 then noticed the request was posted in the vb3 section. Anyway, here it is for vb4:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #6  
Old 29 Sep 2012, 16:14
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
lol ! Thank you so much kh99, I "did' notice the (Last edited by kh99 : Today at 06:30. Reason: changed for vb3 ) , let me try this out...brb..

--------------- Added 29 Sep 2012 at 16:21 ---------------

Ok, I got the following:

The following error occurred when attempting to evaluate this template:
Invalid Tag Nesting
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

I am trying to add it right below the (Thread Information Block) and the code for that looks like this:

<div id="thread_info" class="thread_info block">
<vb:if condition="$show['activeusers']">
<h4 class="threadinfohead blockhead">{vb:rawphrase thread_information}</h4>
<div id="thread_onlineusers" class="thread_info_block blockbody formcontrols">
<div class="inner_block">
<h5>{vb:rawphrase users_browsing_this_thread}</h5>
<div>
<p>{vb:rawphrase users_currently_browsing_x_y_z, {vb:raw totalonline}, {vb:raw numberregistered}, {vb:raw numberguest}}</p>
<ol class="commalist">
<vb:each from="activeusers" value="row">
<li><a class="username" href="{vb:link member, {vb:raw row}}">{vb:raw row.musername}</a>{vb:raw row.invisiblemark}{vb:raw row.buddymark}{vb:raw row.comma}</li>
</vb:each>
</ol>
</div>
</div>
</div>
</vb:if>

Something missing here?

--------------- Added 29 Sep 2012 at 16:28 ---------------

Ok, I got the code in but nothing will display. I did make sure someone is subscribed to the thread and nothing.
Reply With Quote
  #7  
Old 29 Sep 2012, 16:30
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
It seems to work for me, like if I add it here (showing only the end of the above code):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


If you're trying to put it somewhere else you'll have to show us exactly what you're doing.
Reply With Quote
  #8  
Old 29 Sep 2012, 16:30
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Originally Posted by CAG CheechDogg View Post
Ok, I got the code in but nothing will display. I did make sure someone is subscribed to the thread and nothing.
Is it your thread? The <vb:if> makes it so it only displays if you started the thread.
Reply With Quote
  #9  
Old 29 Sep 2012, 16:33
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
No, it's not my thread.

So what's the code so it shows on any thread?

--------------- Added 29 Sep 2012 at 16:36 ---------------

Ok, I am trying to add it here......Marked in red....


<!-- / next / previous links -->
</vb:if>
<div id="thread_info" class="thread_info block">
<vb:if condition="$show['activeusers']">
<h4 class="threadinfohead blockhead">{vb:rawphrase thread_information}</h4>
<div id="thread_onlineusers" class="thread_info_block blockbody formcontrols">
<div class="inner_block">
<h5>{vb:rawphrase users_browsing_this_thread}</h5>
<div>
<p>{vb:rawphrase users_currently_browsing_x_y_z, {vb:raw totalonline}, {vb:raw numberregistered}, {vb:raw numberguest}}</p>
<ol class="commalist">
<vb:each from="activeusers" value="row">
<li><a class="username" href="{vb:link member, {vb:raw row}}">{vb:raw row.musername}</a>{vb:raw row.invisiblemark}{vb:raw row.buddymark}{vb:raw row.comma}</li>
</vb:each>
</ol>
</div>
</div>
</div>
{vb:raw subscribed_count} subscribed to this thread
</vb:if>
{vb:raw similarthreads}
{vb:raw template_hook.showthread_after_activeusers}
<vb:if condition="$show['tag_box']">
<h4 class="threadinfohead blockhead">{vb:rawphrase tags_for_this_thread}</h4>
<div id="thread_tags_list" class="thread_info_block blockbody formcontrols">
<div class="inner_block">
<vb:if condition="$show['manage_tag']">
<a id="tag_edit_link" href="threadtag.php?{vb:raw session.sessionurl}t={vb:raw thread.threadid}" class="textcontrol" style="float:{vb:stylevar right}; font-size:11px; margin:10px;">{vb:rawphrase edit_tags}</a>
</vb:if>
<div id='tag_list_cell'>
{vb:raw tag_list}
</div>
<p>
<a href="tags.php{vb:raw session.sessionurl_q}">{vb:rawphrase view_tag_cloud}</a>
</p>
</div>
</div>
</vb:if>

--------------- Added 29 Sep 2012 at 16:39 ---------------

This is what I get:

Reply With Quote
  #10  
Old 29 Sep 2012, 16:39
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
That should work, but I forgot that you'd also need to remove the if from the plugin code, like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #11  
Old 29 Sep 2012, 16:44
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
HA! yes it works now.

I am going to bug you with one more question if you don't mind. How would you do it to show exactly who is subscribed to the thread just like who is currently browsing the thread?
Reply With Quote
  #12  
Old 29 Sep 2012, 17:31
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
You can try this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and in the SHOWTHREAD template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


And I know it doesn't give you colored user names or show you which ones are logged in or are friends. If you really want any of that I'll have to work on it a little later.

Edit: Well, now it does color the username, which turned out to be pretty easy. I think that matches what's in the other lists in the info, so I probably won't add anything else unless someone really wants it.

Last edited by kh99; 29 Sep 2012 at 17:47.
Reply With Quote
  #13  
Old 29 Sep 2012, 17:45
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Nice! Ok let me try it....brb...
Reply With Quote
  #14  
Old 29 Sep 2012, 17:50
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Yeep! that works perfect, thanks a lot kh99!

When ever you get to it if you can add the colored names or show you which ones are logged in or are friends, but this is fine.

Once again thanks a lot!
Reply With Quote
  #15  
Old 29 Sep 2012, 17:53
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I updated the above so it will display the colored usernames. (There's only one small change to the template code, where subscriber.username is changed to subscriber.musername, so you don't have to copy over the entire template code block if you've made other changes to it).

As I mentioned, I don't think I'll add the other things unless someone really has a strong desire for them (I don't think the other lists in that section have Invisible/logged in/friend marks, do they?)
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Banned members automatically stop receiving email notification on subscribed threads Erwin vBulletin 2.x Full Releases 19 01 May 2005 04:14



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 10:40.

Layout Options | Width: Wide Color: