I've found a solution that worked in my application if anyone is interested. I used the "hello world" part 2 that is provided as an example through Joomlapolis.
I really didn't change much at all, just removed the code that displays the tab (I had no need for any type of display for the user). Then I added this:
[code:1]if($my->id != $user->id) {
if (( $user->cb_publishprofile == "No" ) || ( $user->cb_eventpublish == "No" )){
header('Location:
www.bartendmyparty.com/unpublished-redirect.html');
}
}[/code:1]
I had two different parameters to check, and I also didn't want the user to be redirected away from their own profile if they chose to have it unpublished.
I'm following up here because I'm a complete novice with programming and wondered if anyone saw any problems with what I had done.
I have 2 primary concerns. I did not need to use a trigger, which I thought I would have had to do (do I?) And the first line is:
[code:1]defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );[/code:1]
I've seen where this line has more to it. Am I leaving myself vulnerable by having this line of code here and not something more?
Thanks.