![]() |
Quote:
|
Installed. Nice little hack. Took me a minute to find the first <tbody> tag (at the end of the line), and I added
HTML Code:
<div style="float:left">Who viewed this thread:</div> HTML Code:
<a style="float:$stylevar[right]" href="#top" etc> Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))"> |
Well not everyone wants to only show this to staff :)
Also, you should use the following instead: <if condition="is_member_of($bbuserinfo, 5, 6, 7)"> |
Got it. Any idea how to add how many guests have viewed the thread? That would be pretty cool too.
Ah, wait, that wouldn't work anyway. I suppose some math could be coded to subtract the number of names in the list from the number of thread views, but that would give a distorted measurement unless you install this hack on a fresh board. Was a passing thought. Thanks again. |
Quote:
|
Well just replace the ID no. with yours.
|
That's what I did. In our case I had to use ($bbuserinfo, 6, 9, 10, 11, 17). In this case the only default usergroup is 6 (me). I could see it but nobody else on staff could (I didn't know this until someone mentioned it, so I logged in as then and confirmed). Once I switched it back to my code they could all see it fine.
|
Then probably has to be an array.
is_member_of($bbuserinfo, array(5, 6, 7)) just try that :) The reason you should use this code instead of yours, because it checks additional groups as well. |
Sorry man. Using that code I can't even see it. Am also unclear what you mean by "...because it checks additional groups..." Checking them for what? All other groups are excluded.
|
Check the membergroupids, not just usergroupid
|
All times are GMT. The time now is 11:57 AM. |
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:
|