![]() |
Trying to figure out if a thread is visible to guests...
I opened showthread.php and found this code which deals with if the user has permission to view the thread:
PHP Code:
So I have this in a plugin: PHP Code:
Any ideas? I don't see any special code to deal with guests only... |
It looks like if you pass a user id for the second param you need to also pass a userinfo array as the third param, otherwise it always returns 0. I didn't trace everything all the way through, but you might be able to get away with just passing array('usergroupid' => 1).
|
Thanks Kevin, that was exactly right. I needed to pass the that array as the 3rd param. Works now. :)
|
All times are GMT. The time now is 09:49 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:
|