06-05-2012, 07:34 PM
Pages: 1 2
06-05-2012, 09:29 PM
no probs Bro (you are a bro?????)
06-05-2012, 11:19 PM
PHP Code:
|
(the IN operator is SQL, not PHP; it's fun to have different syntaxes for different languages)
06-06-2012, 04:51 AM
gah yes. Sorry Zinga.
06-06-2012, 03:13 PM
(06-05-2012 09:29 PM)leefish Wrote: [ -> ]Yes. I am
no probs Bro (you are a bro?????)
glad to know you sis
(06-05-2012 11:19 PM)ZiNgA BuRgA Wrote: [ -> ]wohoooo..PHP Code:
if($mybb->user['gid'] == '5' && in_array($thread['fid'], array(1,2,5))
(the IN operator is SQL, not PHP; it's fun to have different syntaxes for different languages)
it works! thanks a lot zinga burga
OOT:
how can I give reputation?
I cannot find reputation button or I missed that
01-26-2017, 10:01 PM
is below code is right for 1.8>=?
Code:
|
It give me Parse error: syntax error, unexpected '{' in C:xxx/xxx/xxx\inc\plugins\gcvt.php on line 33
01-28-2017, 02:35 AM
(01-26-2017 10:01 PM)WINBOY Wrote: [ -> ]Code:
if($mybb->user['gid'] == '1,2,5' && in_array($thread['fid'], array(168))
You should use in_array for the gid as well.
IIRC, 1.8 already have a function to check the user's usergroup(s).
Pages: 1 2