SMF Support > SMF 1.1.x Support

Can't find where Global Notification setting is saved in SMF DB

<< < (2/2)

Talentville:
Okay, I edited the global theme from the admin module and found the check box to change the default, so perhaps things are looking up.

The last question is whether all of the current members will be affected by the change or whether just new member will be affected.  I have 2000 members, so it might be that all 2000 of them won't have notifications turned on by default, just new members that join from now on.  If each new member has an entry somewhere with their own theme settings, it feels likely that old members will still have the settings that were set when they joined.  I'd love to enable the automatic notification option for all the old members as well, since having auto-notifications turned on makes far more sense to me and members can later opt out if they don't want that theme setting.

ilovefutbol:
Hi, i have the same problem but i find the solution to activate this feature in all new members:

- Edit a file Subs-members.php
- Find line:

--- Code: ---// Register them into the database.
$smcFunc['db_insert']('',
'{db_prefix}members',
$column_names,
$values,
array('id_member')
);
$memberID = $smcFunc['db_insert_id']('{db_prefix}members', 'id_member');
--- End code ---
- Insert AFTER this line:

--- Code: --- $insertamos[] = array($memberID, 'auto_notify', '1');
$smcFunc['db_insert']('insert',
'{db_prefix}themes',
array('id_member' => 'int', 'variable' => 'string-255', 'value' => 'string-65534'),
$insertamos,
array('id_member', 'variable')
);
--- End code ---

- Save and upload
 Thats all, now when user sign up the auto notify is on.

Navigation

[0] Message Index

[*] Previous page

Go to full version