access denied (error message) using show region behaviour
I have created a Double Opt In Registration System for a Property Management Web-site as follows: ( I have had numerous discussions with Jason on this ):
- The user completes registration form (which contains a menu list where they select their block/estate.
- Once they have verified their details they will have access to the secure area home page. which displays the list of properties. But they will not have access to the pages available from this block/estate list until the site admin manually enters an access code into the database table that's relevant to the block/estate they selected when they registered. ( the 'Register Confirm' page tells the user they have to wait for 24 hours before they can access their block/estates secure area )
I would like an error messages to appear when the user tries to enter a block/estates secure area depending on their status. as follows:
If they try to select a block/estate that is not theirs..
Or if they try to enter their block/estates secure area before we enter their access code into the database..
Either of the above they receive this message.
"!Access denied. You do not have permission to enter this secure area"
I realise I need to use the show region behaviour for this but thats all I do know. I am unsure on what else needs to be done for this to be added.
Please help!