![]() |
My work is being featured in IPB SDK There is software called IPB SDK that allows webmasters to integrate their websites into their forums (to share information and to make it interact with the forums and all that jazz).. well, when I was coding something for Universium yesterday, I needed a function that did not yet exist in the IPB SDK. This function would return positive feedback if the user belongs to one of of the specified SECONDARY groups on the forums. Because IPB uses primary groups and secondary group (primary the one being showed in profiles, the secondary is "hidden") the SDK had a function to do what I needed, but it would only look in the user's primary group, instead of both. So I wrote a function that would scan secondary groups as well... and the author of the SDK said that my code will be incorporated into the next version release. Link: Official IPB SDK Forum Final code: PHP Code: standalone function is_ingroup ( groupID [array OR int], memberid [int] ) Well return true if user memberid is in any of the groups specified in groupID. Will also return true if groupID matches any of the user memberid secondary groups -- standalone function is_in2group ( groupID [array OR int], memberid [int] ) Will return true if user memberid has secondary usergroup that matches an entry in groupID I just thought I'd share that. I thought it was pretty cool that a lot of the IPB community may be using my code in a few weeks |
Re: My work is being featured in IPB SDK I don't think I understood much of that....but well done Knipps :nodding: |
Re: My work is being featured in IPB SDK Hmm...Just for information, would it be possible to do this: Code: function is_ingroup($groups,$member='') {Code: function is_ingroup($groups,$member='') { |
Re: My work is being featured in IPB SDK Basically something I did for myself to add functionality to software is being "officially" added as functionality. |
Re: My work is being featured in IPB SDK Quote:
|
Re: My work is being featured in IPB SDK Quote:
Also nice work Knippschild. |
Re: My work is being featured in IPB SDK I don't know what all that code means, but congrats on your work being used! |
Re: My work is being featured in IPB SDK Thanks! I'm just gonna get my name above the code in PHP comments, but.. good enough for me. |
Re: My work is being featured in IPB SDK Well Done Mr Knipp! Thats some very nippy work there. I'll go get my coat. |
Re: My work is being featured in IPB SDK No idea what it means, but congrats all the same... |
| All times are GMT -7. |
Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.