![]() |
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! |
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.. |
Where can I make such a request for FREE?(I'd be able to offer a free cents, nothing more for one modification).
|
Where are you talking to restrict this display, on forumdisplay.php or showthread.php
|
Well it'd be optimal for BOTH if possible. So maybe something like having the option to set certain usergroups for specific forum boards.
|
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" 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. |
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?
|
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. |
Quote:
|
here is the link to that mod e360 Usergroup Forum Permissions for Users Browsing Forums & Threads
|
Wow thanks brother! I really apprechiate you made it for me.
|
Hm, can someone explain an old man why this "option" would be needed?
<- Knows only the standard "on" or "off" setting (no matter the forum script used), and got along with it over the years, so dont see any sense why to restrict it per group. Its nothing serious or security issue to see whos reading a thread. No offense. Thanks. |
Well, only EvanAbagail can say why it was requested, but I could speculate that some people just feel it's a privacy thing (maybe you don't want someone knowing which threads you read on a forum), or it could be an issue with performance since it probably takes some resources to calculate that.
|
Its not going to get any better performance since it will run the query if they can see it or not. I'm doing an If Else Statements if they have the permissions $show['value'] will equal true else false.
--------------- Added [DATE]1424139051[/DATE] at [TIME]1424139051[/TIME] --------------- I might rewrite it so it will not run the query unless their in the usergroup that can view. --------------- Added [DATE]1424140687[/DATE] at [TIME]1424140687[/TIME] --------------- 1.0.2 has better performance it will not run a query for user viewing forum or thread if they don't have the usergroup permissions |
As aferomentioned, I want to be able to restrict the information to administrative / moderator usergroups. I do not wish regular / standard members to be able to see such information.
|
All times are GMT. The time now is 05:50 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|