Jump to content

Opt Out


keat

Recommended Posts

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.

Link to comment
Share on other sites

Guest fandango

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

?>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...