PDA

View Full Version : List of CanView ForumIds in AdminCP


Ben P
07-12-2007, 10:47 AM
I'm looking to run a process on public forums, but not private and to run this in AdminCP. I'm having trouble pulling together the list of forumids, since the userinfo forumpermissions is as the admin I'm currently logged into. I'd rather not pull the info directly from the query, since I'd have to determine the "Guest" usergroup, which may/may not have explicit permissions in the database, and the usergroup name could change from board to board.
Please let me know if there is an easy way to do this that I'm missing or if I'm not understanding something regarding forum permissions.

Thanks,
Ben

Update: Figured out to do it by setting a usergroupid in the product's setting, and then using ($forum['permissions']["$productusergroupid"] & $vbulletin->bf_ugp_forumpermissions['canview']) to filter them after loading the forums from $vbulletin->forumcache.