keat Posted April 16, 2009 Share Posted April 16, 2009 In CC3, Is it possible to change the registration page, so the user has to opt out of Store Emails, rather than opting in. Quote Link to comment Share on other sites More sharing options...
keat Posted April 16, 2009 Author Share Posted April 16, 2009 I'm guessing, its controlled somewhere in rec.inc.php ?? and possibly centred around the phrase optin1st=1 ? Maybe someone knows the definitive answer. Quote Link to comment Share on other sites More sharing options...
keat Posted April 17, 2009 Author Share Posted April 17, 2009 Nope.. I can't find it. I've played all morning, and can't figure it out. I also spent the best part of 2 hours scouring the net.. I can't believe, no ones done this before now. Quote Link to comment Share on other sites More sharing options...
Guest fandango Posted April 17, 2009 Share Posted April 17, 2009 Did you try the language file? root/language/en/lang.inc.php And then the root/includes/content/reg.inc.php Quote Link to comment Share on other sites More sharing options...
keat Posted April 17, 2009 Author Share Posted April 17, 2009 Did you try the language file? root/language/en/lang.inc.php And then the root/includes/content/reg.inc.php I had a play around with includes/content/reg.inc.php, but couldn't seem to find the section that deals with the "subscribe to store emails" check box though. I had considered, (if I could locate the code), turning it into a "check this box to opt out" option. Being a newbie to PHP, its all a massive learning curve. Not sure my old brain can keep up. Quote Link to comment Share on other sites More sharing options...
Guest fandango Posted April 17, 2009 Share Posted April 17, 2009 Its right at the bottom of the reg.inc.php Suposedly if you changed the "checked" to "unchecked" or whatever the appropriate code is for unchecked (Im not sure) then that should work. You then just need to alter the text in the lang.inc.php file to read "check to opt out of Store Emails". Im just guessing here but its probably worth a shot as it would be easy to put back right if it blows your site up LOL in the lang.inc.php file right at the bottom. } if(isset($_POST['optIn1st']) && $_POST['optIn1st']==1) { $reg->assign("VAL_OPTIN1ST_CHECKED","checked='checked'"); } if($_POST['htmlEmail']==0){ $reg->assign("VAL_HTMLEMAIL_SELECTED","selected='selected'"); } } $reg->parse("reg"); $page_content = $reg->text("reg"); ?> Quote Link to comment Share on other sites More sharing options...
keat Posted April 17, 2009 Author Share Posted April 17, 2009 I've tried all combinations.. I can't seem to figure it Quote Link to comment Share on other sites More sharing options...
keat Posted April 17, 2009 Author Share Posted April 17, 2009 I found this.. taken me 2 days but it looks promising. in reg.tpl find: <td colspan="2">{LANG_RECIEVE_EMAILS} <input type="checkbox" name="optIn1st" value="1" tabindex="15" {VAL_OPTIN1ST_CHECKED} /></td> and replace with: CODE <td colspan="2">{LANG_RECIEVE_EMAILS} <input type="checkbox" name="optIn1st" value="1" tabindex="15" {VAL_OPTIN1ST_CHECKED} checked/></td> At least now when I sign a new user, the check box is checked by default.. just need to test if it works now Quote Link to comment Share on other sites More sharing options...
keat Posted April 17, 2009 Author Share Posted April 17, 2009 hooray Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.