2015-08-01, 05:18 PM
Hi, how can I find the variable for thread starter in forumdisplay_thread and showthread?
With Xthreads Template Conditionals I would like to show specific threads only to thread starter and to a specific group of users.
Now I use this:
With this if usergroup is guest AND 32 AND threadfield is on hide, user can't see the thread but all others user yes.
I would like only to show specific threads to a usergroup AND thread poster, obviously..if user isn't in usergroup and he posts, he will not see own thread
Thank you in advance for the help
With Xthreads Template Conditionals I would like to show specific threads only to thread starter and to a specific group of users.
Now I use this:
<if in_array($GLOBALS['mybb']->user['usergroup'], array(1,32)) && ($GLOBALS['threadfields']['showorhide']) == 'hide' then>
..You can't see this thread..
<else>
..user can see the thread
</if>
With this if usergroup is guest AND 32 AND threadfield is on hide, user can't see the thread but all others user yes.
I would like only to show specific threads to a usergroup AND thread poster, obviously..if user isn't in usergroup and he posts, he will not see own thread
Thank you in advance for the help