chrisgill
New Member


Joined: May 21, 2007
Posts: 2
|
Posted:
Tue May 22, 2007 8:52 pm |
|
I just started a new site and was curious if there is a way to set the newsletter option as a default, then if they do not want it, they can disable it. The problem is that most of the people using this site really do not know how to customize the profile etc, so the default setting puts it to newsletter=off. Any help is appreciated. |
|
|
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Wed May 23, 2007 6:13 am |
|
Welcome. You can change modules/Your_Account/index.php, in function activate, from:
Code: $db->sql_query('INSERT INTO '.$user_prefix.'_users (user_id, username, user_email, user_password, user_avatar, user_avatar_type, user_regdate, user_lang) '."VALUES (NULL, '".$row['username']."', '".$row['user_email']."', '$user_password', 'gallery/blank.gif', '3', '".$row['user_regdate']."', '$language')");
| toCode: $db->sql_query('INSERT INTO '.$user_prefix.'_users (user_id, username, user_email, user_password, user_avatar, user_avatar_type, user_regdate, user_lang, newsletter) '."VALUES (NULL, '".$row['username']."', '".$row['user_email']."', '$user_password', 'gallery/blank.gif', '3', '".$row['user_regdate']."', '$language', '1')");
|
You could also modify the database table to default the value of the newsletter field in $prefix_users to 1. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed May 23, 2007 6:36 am |
|
chrisgill, just keep in mind (and it may be perfectly "ok" for your site), that sending newsletter to everyone within them specifically requesting them might be viewed as spam by them. Just be careful is all I am suggesting. Make sure it is really what you want to do. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|