Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2015, 10:42 PM
EvanAbagail EvanAbagail is offline
 
Join Date: Apr 2014
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Users currently viewing this thread based on usergroup

Hello,

I want to make it so only certain usergroups can view who is currently browsing a thread. Preferably, it'd also be nice if this was applicable to certain forums only, how-ever this isn't needed.

Are there any modifications that can do this? Thanks!
Reply With Quote
  #2  
Old 02-12-2015, 06:06 PM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure if a modification as per your request exists.. (not at majority/maximum require this)

But 100% doable.. probably find the right coder..
It seems vb.org is not yet dead (as per statements from many other sites)..

VB.ORG is still very active..
Reply With Quote
  #3  
Old 02-12-2015, 07:10 PM
EvanAbagail EvanAbagail is offline
 
Join Date: Apr 2014
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where can I make such a request for FREE?(I'd be able to offer a free cents, nothing more for one modification).
Reply With Quote
  #4  
Old 02-12-2015, 07:47 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where are you talking to restrict this display, on forumdisplay.php or showthread.php
Reply With Quote
  #5  
Old 02-12-2015, 10:39 PM
EvanAbagail EvanAbagail is offline
 
Join Date: Apr 2014
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it'd be optimal for BOTH if possible. So maybe something like having the option to set certain usergroups for specific forum boards.
Reply With Quote
  #6  
Old 02-13-2015, 07:31 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could create a plugin using hook location showthread_start and this code:
Code:
$stu_usergroups = array(5, 6, 7); // usergroupis who will see "users browsing this thread"
$stu_forums = array(5); // forum id to show "users browsing this thread"

if (is_member_of($vbulletin->userinfo, $stu_usergroups) AND in_array($forumid, $stu_forums))
{
   $vbulletin->options['showthreadusers']=1; // 1=alphabetical all visitors, 
                                             // 2=random order all visitors, 
                                             // 3=alphabetical registered members only
                                             // 4=random order registered members only
}

where you'd have to edit the $stu_usergroups and $stu_forums arrays as needed, and you can also change the '1' to whichever type of display you want, as noted in the comments.

You could copy the entire block of code as many times as you needed (select it, copy it, and paste it at the end), if you want to allow different groups to see the display in different forums.
Reply With Quote
  #7  
Old 02-14-2015, 12:11 AM
EvanAbagail EvanAbagail is offline
 
Join Date: Apr 2014
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I put this together to form a product? Can you compile it into a script for me please? Or is it just something going in showthread.php?
Reply With Quote
  #8  
Old 02-14-2015, 12:39 AM
Elite_360_'s Avatar
Elite_360_ Elite_360_ is offline
 
Join Date: Nov 2012
Location: New Hampshire
Posts: 518
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i can make a mod for you

--------------- Added [DATE]1423895374[/DATE] at [TIME]1423895374[/TIME] ---------------

Well the mod is finish i will upload it tomorrow and post the link to the mod here.
Reply With Quote
  #9  
Old 02-14-2015, 11:05 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EvanAbagail View Post
How would I put this together to form a product? Can you compile it into a script for me please? Or is it just something going in showthread.php?
It's a plugin, so you'd go to Plugins & Products and Add New Plugin. I thought about making a full product, but it would be a little difficult to have more than one set of groups/forums so I thought this might be OK. Also, there's usually someone else willing to make it into product .
Reply With Quote
  #10  
Old 02-14-2015, 09:44 PM
Elite_360_'s Avatar
Elite_360_ Elite_360_ is offline
 
Join Date: Nov 2012
Location: New Hampshire
Posts: 518
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the link to that mod e360 Usergroup Forum Permissions for Users Browsing Forums & Threads
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 09:08 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.05162 seconds
  • Memory Usage 2,252KB
  • 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
  • (1)bbcode_code
  • (1)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