Conditionals based on Custom User Field

I’m setting up a site for a members club. So the membership software is being used for both the website, and the club itself.

The trick is, the club has different chapters across the country, so I set up a custom user field for “home club” which is a drop down selection on registration.

That part works great!!

But what I need to be able to do now is add some custom capability conditionals based on which club they are a part of.

So I need to be able to do one of two things;

base conditional restrictions/actions on the contents of this custom field.

or

automatically add a custom capp to a user based on what’s selected in that field on registration or profile modification.

I’m good with doing the coding based on either solution, but I don’t know how to do either solution…

Anyone got any ideas?

Your first option needs some code, please read more at http://krumch.com/2012/09/03/s2member-hack-custom-ccaps/.