Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
nooz
New Member
New Member



Joined: May 04, 2005
Posts: 4

PostPosted: Sun Jun 04, 2006 3:10 pm Reply with quote

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
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sun Jun 04, 2006 5:20 pm Reply with quote

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 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sun Jun 04, 2006 5:55 pm Reply with quote

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.
 
View user's profile Send private message Send e-mail
hitwalker







PostPosted: Sun Jun 04, 2006 6:19 pm Reply with quote

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







PostPosted: Mon Jun 05, 2006 11:03 am Reply with quote

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: 6433

PostPosted: Mon Jun 05, 2006 11:15 am Reply with quote

Do you mean which table would you alter to change the default?

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
hitwalker







PostPosted: Mon Jun 05, 2006 11:24 am Reply with quote

he already done that,problem was in a file as i remember..,forgot whitch one..
 
stefvar
New Member
New Member



Joined: Oct 30, 2005
Posts: 18

PostPosted: Mon Jun 05, 2006 1:32 pm Reply with quote

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";

Wink

_________________
Stef and Co. Bénévolat sur mesure Wink
Image
http://www.stefvar.com 
View user's profile Send private message Visit poster's website
hitwalker







PostPosted: Mon Jun 05, 2006 1:44 pm Reply with quote

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







PostPosted: Tue Jun 06, 2006 10:41 am Reply with quote

Hello,
Personally with this modification the newsletter is on one by default.
 
hitwalker







PostPosted: Tue Jun 06, 2006 11:23 am Reply with quote

who's ?
 
stefvar







PostPosted: Tue Jun 06, 2006 11:48 am Reply with quote

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







PostPosted: Tue Jun 06, 2006 12:15 pm Reply with quote

That should work, too.
 
hitwalker







PostPosted: Tue Jun 06, 2006 12:24 pm Reply with quote

and what about nooz?
He didnt replied yet with the flood of help here ....lol
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©