[]flint said:
Twisty, thanks a million for the code, but can you think of a method that´s based on groups?
[/]
You'd still add the option in their prefs (but forget about creating the new field and authenticating it in ubbt.inc.php as that would no longer be necessary).
What you would then have to do is create a new donars group (-7- in this example), and then in changedisplay.php, do a query and move them from group 6 to group 7 if they selected 'Yes' for wanting ads.
Then in the header code you would limit the ads to be displayed for everyone in group 7, and every not in group 6.