Log in

View Full Version : ForumIDs array in plugin


ForumDog
11-03-2006, 10:59 AM
Hello,

Can anyone tell me how to make up an array of ForumIDs in a plugin? I already know how to explode the IDs from a free datatype, I just need the equivalent of is_member_of($this->registry->userinfo, which remarkably I can't find. Or the proper way to do it if there is no equivalent.

Ta.

Paul M
11-03-2006, 12:50 PM
in_array($forumid, $arrayofforumids)

Will be true if $forumid is in your array of forumids.

ForumDog
11-04-2006, 10:52 AM
Thank you very much Paul, that did the trick.