One more tweak. This works fine for rows that are set to Off and On for the value of USER_ACCEPT_ADMIN_EMAILS. However, I have oodles of rows in my database where that value is simply blank. So those people don't get an option either way. The unsubscribe page just comes up with no options at all.

The blank people DO get mailed to, so that is a default setting of "On".

So I therefore tweaked the code in the template on lines 12 and 36. It now says:

{if ($current eq 'On' or $current eq '') and $process eq 'no'}

In essence that says that a blank value is the same as an on value, in terms of showing a message and giving a "turn off" button.

With that change I think it's set!


Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums - UBB since Apr 2002 - 58,000 members / 850,000 posts