Removing Double Opt-in

lithoart

Member
Saw this on a previous posting....
==============================

You just need to use the MLM script URL with no parameters.

About your second question, do the following:

1.- Open the mlm_settings.php file and add the following line before trailing '?>':

$mlm_optin = false;

2.- Save the file and then open the 'mlm.php' file. On line 220 you should have:

If ( $pwd == $admin_password ) {

replace it with:

If ( $pwd == $admin_password || !$mlm_optin ) {

then save. That will remove double-optin.


==============================

I have done (1).

I am now doing (2), but my question is

Do I replace ALL instances of
If ( $pwd == $admin_password )
with
If ( $pwd == $admin_password || !$mlm_optin ) {
?

OR

only parts relating to:
(a) if ($cmd == "subscribe") {
and (b) if ($cmd == "unsubscribe") {
?

Also, i am using
If ( $pwd == $admin_password || !$lm_optin )
instead of
If ( $pwd == $admin_password || !$mlm_optin )
.

To match what's on the server.

Is this right?
 

stanbusk

Administrator
Staff member
With current MLM version you only need to set $mlm_optin to false in the lm_prefs.php file, that's all. I added this feature to MLM.
 

lithoart

Member
So I should undo the changes I've done based on that previous posting (which could have refered to the older version of MLM)?

And just do that only ONE (1) change you have specified?

to set $mlm_optin to false in the lm_prefs.php file
 
Top