MyBB Community Forums

Full Version: How do I create a usergroup based on an IP range?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I create a usergroup based on an IP range? And/or, how do I allow viewing a certain forum (whether logged in/out or even registered) based solely on an IP address range? Is there a nice, easy way, or do I have to learn some more PHP?

The reason I ask is that I'm making a website for students and alumni at my college. It's my own site (not officially recognized by the school at all). I want a specific section of the forums only viewable by those currently on campus. I know the IP range, now I just need the code.
You would most likely have to fix yourself up a plugin.
It probably would be possible with a plugin. However it would probably be quite complicated. A better way of doing it would perhaps make the group joinable, so they can request access or just add them yourself to that group.
Well, I found two interesting plugins:
http://mods.mybboard.net/view/restrict-ip
http://mods.mybboard.net/view/restrict-to-ip

I figure I can use these as a starting place, but I'm pretty clueless after that. I have yet to take fundamentals of programming, web programming, etc.... And I need to finish the forums before the school year begins, rather than after it ends. Any suggestions?

The first plugin mentioned looks easy enough to modify to add another usergroup--for someone familiar enough with PHP. The second one (written by Ryan Gordon himself) is a blanket plugin for the entire site. I just want to limit certain categories on my bulletin board to my college campus while making the rest available to the world. I don't mind doing this via specific categories or user groups.