Author |
Message |
nooz
New Member


Joined: May 04, 2005
Posts: 4
|
Posted:
Sun Jun 04, 2006 3:10 pm |
|
I'm trying to set the default option for Receive Newsletter my email? to "yes" but without any luck.
I changed the value in the nuke_users table from "0" to "1" but after testing, the option was still set to "No"
Anyone got another way of setting this up? I use 4.4.2 btw.
Thnx |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Sun Jun 04, 2006 5:20 pm |
|
yeah i remember something buggy about that,but was in a file...
but i realy dont remember where that was..... |
Last edited by hitwalker on Sun Jun 04, 2006 6:08 pm; edited 1 time in total |
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Sun Jun 04, 2006 5:55 pm |
|
I think rather than changing the value from '0' to '1' you would have to change the attribute to have a 'default value' of '1' in the relevant table. |
|
|
|
 |
hitwalker

|
Posted:
Sun Jun 04, 2006 6:19 pm |
|
well he's right on that,a simple change from 0 to 1 should do but it was a bug.
so changing it in the database wont help...
however you can try to see if you receive the mail. |
|
|
|
 |
nooz

|
Posted:
Mon Jun 05, 2006 11:03 am |
|
nah, still no joy by changing the value in the database.
which file would i have to edit? |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Mon Jun 05, 2006 11:15 am |
|
Do you mean which table would you alter to change the default? |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
hitwalker

|
Posted:
Mon Jun 05, 2006 11:24 am |
|
he already done that,problem was in a file as i remember..,forgot whitch one.. |
|
|
|
 |
stefvar
New Member


Joined: Oct 30, 2005
Posts: 18
|
Posted:
Mon Jun 05, 2006 1:32 pm |
|
Hello,
Edit the file modules\Your_Account\public\activate.php and replace the line :
Code: echo "<option value=\"1\">"._YES."</option><option value=\"0\" selected>"._NO."</option></select></td></tr>\n";
|
whis this :
Code: echo "<option value=\"1\"selected>"._YES."</option><option value=\"0\">"._NO."</option></select></td></tr>\n";
|  |
_________________ Stef and Co. Bénévolat sur mesure
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! |
|
|
 |
hitwalker

|
Posted:
Mon Jun 05, 2006 1:44 pm |
|
i doubt it steff...
this is my version..
Code:echo "<tr><td bgcolor='$bgcolor2'>"._RECEIVENEWSLETTER.":</td><td bgcolor='$bgcolor1'><select name='newsletter'>";
echo "<option value=\"1\">"._YES."</option><option value=\"0\" selected>"._NO."</option></select></td></tr>\n";
|
|
|
|
|
 |
stefvar

|
Posted:
Tue Jun 06, 2006 10:41 am |
|
Hello,
Personally with this modification the newsletter is on one by default. |
|
|
|
 |
hitwalker

|
Posted:
Tue Jun 06, 2006 11:23 am |
|
|
|
 |
stefvar

|
Posted:
Tue Jun 06, 2006 11:48 am |
|
I have to replace this code:
Code: echo "<tr><td bgcolor='$bgcolor2'>"._RECEIVENEWSLETTER.":</td><td bgcolor='$bgcolor1'><select name='newsletter'>";
echo "<option value=\"1\">"._YES."</option><option value=\"0\" selected>"._NO."</option></select></td></tr>\n";
|
by this code :
Code: echo "<tr><td bgcolor='$bgcolor2'>"._RECEIVENEWSLETTER.":</td><td bgcolor='$bgcolor1'><select name='newsletter'>";
echo "<option value=\"1\"selected>"._YES."</option><option value=\"0\">"._NO."</option></select></td></tr>\n";
|
to have the newsletter activated by default. |
|
|
|
 |
kguske

|
Posted:
Tue Jun 06, 2006 12:15 pm |
|
|
|
 |
hitwalker

|
Posted:
Tue Jun 06, 2006 12:24 pm |
|
and what about nooz?
He didnt replied yet with the flood of help here ....lol |
|
|
|
 |
|