Check OP
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #1
Check OP
How can I check for the OP ID and display one button for ONLY the OP and admin using Template Conditionals?

Thank you.

[Image: 468x602b.png]
11-19-2010 09:25 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Check OP
In what template?

Thread starter can be retrieved through $thread['uid'].

My Blog
(This post was last modified: 11-19-2010 09:33 AM by ZiNgA BuRgA.)
11-19-2010 09:33 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #3
RE: Check OP
showthread

So.. Would be like this?

PHP Code:
<if in_array($GLOBALS['mybb']->user['uid'], array($thread['uid'],ANOTHERID)) then> 
SOMETHING
<else>
SOMETHING
</if>


[Image: 468x602b.png]
11-19-2010 09:38 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: Check OP
Why not try it?
Can't hurt.

My Blog
11-19-2010 09:49 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #5
RE: Check OP
hehe Yes.. Don't hurt!
Worked like a charm Smile

[Image: 468x602b.png]
11-19-2010 10:05 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: