We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22377 ☆ A M B ☆
    • 33 Posts
    I need to have a basic registration with some optional personal profile fields. But I want to be able to block certain pages from the people that didn’t fill in the necessary optional profile information to access them. If they are logged in and try to access it with out the profile filled out - I want to bring up the profile page for them to fill out.

    The esteemed Dr. Scotty Delicious responded to a similar request from another user with this:

    It can be done, but you would probably need a custom plugin fired on "onWebSaveUser". The plugin could check to make sure that there is a value in one or more of the profile fields and then add the user to a specific web group.

    -sD-
    Dr. Scotty Delicious, DFPA.

    Can anybody help me with the creation of such a plugin? Or, if somebody already figured it out, can you please post your solution here? PHP is my weakest skill and i can’t do this from scratch. All i need is something to get me started.
    Basically what’s needed is a script to verify if certain fields are filled out, triggered onWebSaveUser ; if they are filled out, then the user goes into web user group 1, if they are not, then the user is added to web user group 2...

    Thanks in advance.