Jump to the post that solved this thread.
Solved: 6 Years ago Variable for thread starter on forumdisplay_thread and showthread?
#1
Solved: 6 Years ago Question 
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:

<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 Big Grin

Thank you in advance for the help
Reply
#2
Solved: 6 Years ago
<if $thread['uid'] == $mybb->user['uid'] then>
thread author
</if>
Reply
#3
Solved: 6 Years ago
Thank you very much Destroy! Big Grin Big Grin
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)