The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
||||
|
||||
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.. |
#3
|
|||
|
|||
Where can I make such a request for FREE?(I'd be able to offer a free cents, nothing more for one modification).
|
#4
|
||||
|
||||
Where are you talking to restrict this display, on forumdisplay.php or showthread.php
|
#5
|
|||
|
|||
Well it'd be optimal for BOTH if possible. So maybe something like having the option to set certain usergroups for specific forum boards.
|
#6
|
|||
|
|||
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. |
#7
|
|||
|
|||
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?
|
#8
|
||||
|
||||
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. |
#9
|
|||
|
|||
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 .
|
#10
|
||||
|
||||
here is the link to that mod e360 Usergroup Forum Permissions for Users Browsing Forums & Threads
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|