MyBB Community Forums

Full Version: Default profile options
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Appologies if I've missed something, but is there a way to set default profile options?

e.g. on registration you are presented with:

Account Preferences:
Receive emails from the Administrators.
Receive emails from other members.
Automatically subscribe to threads you post in.
Receive private messages from other users.
Alert me with a popup box when I receive a Private Message.
Notify me by email when I receive a new Private Message.
Hide me from the Who's Online list.


I would like the 1st, 3rd, 4th, 6th enabled as standard and then let users turn them off if they like.
At the moment, only the 1st and 4th are on by default.

Cheers for any help Smile
Sorry for the bump, but I've seen some quite technical answers on the board so I'm really hoping someone knows how to do this.

In case the question wasn't clear, the attached screenshots should help.
  • 1st = the options as ticked when the user first goes to register
  • 2nd = the options I would like ticked as default
  • 3rd = the other profile options I would like set as default. Current default is all unticked.

I suspect most people will just sign-up with the username/password and not worry about or know what the options do so I'd like to set them as I think best - especially the "Automatically subscribe to threads you post in" one.

Thanks anyone Smile

for 1 & 2, in member.php, find
if(!$fromreg)
		{
			$allownoticescheck = "checked=\"checked\"";
			$hideemailcheck = "";
			$invisiblecheck = "";
			$emailnotifycheck = "";
			$receivepmscheck = "checked=\"checked\"";
		}
and replace with:
if(!$fromreg)
		{
			$allownoticescheck = "checked=\"checked\"";
			$hideemailcheck = "checked=\"checked\"";
			$emailnotifycheck = "checked=\"checked\"";
			$receivepmscheck = "checked=\"checked\"";
			$pmpopupcheck = "";
			$pmnotifycheck = "checked=\"checked\"";
			$invisiblecheck = "";
		}

for number 3, in member.php find
"pmnotify" => $emailpmnotify,
and after add
			"showsigs" => "yes",
			"showavatars" => "yes",
			"showquickreply" => "yes",
Hi K776,

Thanks for this - worked perfectly except for:

$receivepmscheck which should actually be $emailpmnotifycheck

but after you'd pointed me in the right direction I worked it out. I must try and learn this php malarky!

Thanks again. Smile
Isen't that two diffrent ones?!

I see in K776 both off them

$emailnotifycheck = "checked=\"checked\"";
$receivepmscheck = "checked=\"checked\"";
CraKteR Wrote:$emailnotifycheck = "checked=\"checked\"";
That one sets the option to automatically subscribe to any threads you post in.
Quote: $receivepmscheck = "checked=\"checked\"";
This one didn't appear to affect anything but $emailpmnotifycheck certainly ticked the "Notify me by email when I recieve a new Private Message" box.