MLM Install Issues

trinkaltbier

New Member
I read all the frustration; I prayed it would not happen to me. I have been using a cpanel server for well on 10 years, and I just cannot get MLM to go. It has seriously delayed my implementation!

I have changed permissions, set up databases with full permissions, changed just about everything, every which way back and forth. Still get the 404 error and no set up of the DB. Is there something I am missing here? Something cpanel related?

Auto install fails, unfortunately.
 

stanbusk

Administrator
Staff member
What version of MaxBulk Mailer are you using? Note that in forums you will only see problems, nobody posts a message is everything works :)
 

trinkaltbier

New Member
I moved it to another folder and it worked. I think the folder I was putting into on the server had another use (with phplist). I am using 8.3.3. Now I am figuring everything else out...thanks for the prompt response and I will post more as issues arise.
 

trinkaltbier

New Member
OK, now I am having problems with the "auto" subscribe page, as described in other posts. Both auto subscribe pages list the lists I have added by name, but when you hit submit, it says "You must select a list" and shows nothing.

My perusal of older posts does not show a fix for this. I do not know enough about php to see what is going on, but I did check with ls - l and the chown and permissions are the same as the single and multiple subscribe pages that do work (but show the lists as lst1 and lst2 etc.).

Any suggestions? I have to list the names by what they are actually called.
 

stanbusk

Administrator
Staff member
The 'subscribe_auto_single.php' page has a little error in it, use this version instead:
 

trinkaltbier

New Member
I will check and see. But hey, I guess if I am using the opt1, opt2 fields and such that I need to create my own fixed page? Or do I just add the information gathering fields to this form.

Can I sort and send by options that are given to me in those fields? (Maybe it's an export?)

We use the fields to further narrow interest areas.
 

stanbusk

Administrator
Staff member
Yes, you have to modify the sample subscribe pages. Those page are mainly examples. You have to modify the heading PHP code and add the fields to the form.

I don't understand your second question.
 

julienjp

New Member
I guess the million dollar question is... How do you do that?


I have tried to look at the examples and modify the code based on the other fields. But since I am not a master PHP coder, it all looks like latin to me.

To you Stanbusk, its easy. But thats because you built the software. People like me have no idea what the codes mean and what they are doing.

I would gladly pay you to make the changes since you know exactly what to do. If you don't have the time, I understand. If you could point me where I can find out what exactly what each block of code means, it would really help me understand what to do.

Thanks


Julien
 

stanbusk

Administrator
Staff member
What page do you want to modify, please tell me the name, and what field(s) do you want tot add?
 

trinkaltbier

New Member
I am back and working on this again.

1) Adding lists to subscribe multiple page

First, I guess wherever it says 'list1', I change that to the name of the mailing list. If the mailing list is Beer Beacon, a line such as this

if ( isset( $_REQUEST['list1'] ) && !empty( $_REQUEST['list1'] ) ) { $list1 = $_REQUEST['list1']; }

becomes

if ( isset( $_REQUEST['Beer Beacon'] ) && !empty( $_REQUEST['Beer Beacon'] ) ) { $list1 = $_REQUEST['Beer Beacon']; }

Yes?

2) Adding MORE lists (as there are only three on multiple form) and adding more fields for user information.

It seems to me there is a lot of things to change if you are going up to 7 lists. If might be easier to have 3 subscribe forms. It would be nice if you had an example of such a maxed out form, with lots of extra fields (opt1,2,3) etc.

But just looking at it, I see changed to be made in Parameter Checking, Parameter Checking and Error Handling and in the HTML area. Let me know if there is a tutorial for this somewhere. I wish this could be more automated).
 

stanbusk

Administrator
Staff member
1) Adding lists to subscribe multiple page

First, I guess wherever it says 'list1', I change that to the name of the mailing list. If the mailing list is Beer Beacon, a line such as this

if ( isset( $_REQUEST['list1'] ) && !empty( $_REQUEST['list1'] ) ) { $list1 = $_REQUEST['list1']; }

becomes

if ( isset( $_REQUEST['Beer Beacon'] ) && !empty( $_REQUEST['Beer Beacon'] ) ) { $list1 = $_REQUEST['Beer Beacon']; }

Yes?
Not at all. Let the line as is. You only need to change the form, for example:
Code:
<td height="24">
	<select name="list">
		<option <?php if ( $list == "My list about ostriches" ) { echo "selected=\"selected\""; } ?> value="My list about ostriches">My list about ostriches</option>
		<option <?php if ( $list == "My list about lions" ) { echo "selected=\"selected\""; } ?> value="My list about lions">My list about lions</option>
		<option <?php if ( $list == "My list about apes" ) { echo "selected=\"selected\""; } ?> value="My list about apes">My list about apes</option>
	</select></td>
<td height="24"></td>

About your other question, actually I made the form with Adobe Dreamweaver. For example to add a 'gender' field to the form you should add, below the last name table row:
Code:
<tr height="24">
	<td width="40%" height="24">
		<div align="right">
		<font size="-1" color="#0059a5" face="Verdana"><b>Gender</b></font></div>
	</td>
	<td width="15" height="24"></td>
	<td height="24"><input type="text" name="opt1" size="30" <?php echo " value=\"$opt1\""; ?> /></td>
	<td height="24"></td>
</tr>

In parameter checking you add:
Code:
if ( isset( $_REQUEST['opt1'] ) && !empty( $_REQUEST['opt1'] ) ) { $opt1 = $_REQUEST['opt1']; }

and the URL on line 43 should be:
Code:
$url = $lm_path . "?cmd=$cmd&list=$list&email=$email&firstname=$firstname&lastname=$lastname&opt1=opt1";

If you need more fields do the same with opt2, opt3 and so on.
 

trinkaltbier

New Member
I presume the lists should be in the order that they show in the mlm admin? So if I added a new form, I should make sure I put it in the right place?

<td height="24">
<select name="list">
<option <?php if ( $list == "My list about ostriches" ) { echo "selected=\"selected\""; } ?> value="My list about ostriches">My list about ostriches</option>
<option <?php if ( $list == "My list about lions" ) { echo "selected=\"selected\""; } ?> value="My list about lions">My list about lions</option>
<option <?php if ( $list == "My list about apes" ) { echo "selected=\"selected\""; } ?> value="My list about apes">My list about apes</option>
</select></td>
<td height="24"></td>
 

trinkaltbier

New Member
My list looks like this, not like the one above (from subscribe_multiple.php)

<td width="15" height="24"></td>
<td height="24"><input type="checkbox" name="list1" value="list1" <?php if ( $cmd == "" || $list1 == "list1" ) { echo "checked=\"checked\""; } ?> /><font size="2" face="Arial"> List1<br />
</font><input type="checkbox" name="list2" value="list2" <?php if ( $cmd == "" || $list2 == "list2" ) { echo "checked=\"checked\""; } ?> /><font size="2" face="Arial"> List2<br />
</font><input type="checkbox" name="list3" value="list3" <?php if ( $cmd == "" || $list3 == "list3" ) { echo "checked=\"checked\""; } ?> /><font size="2" face="Arial"> List3</font></td>
<td height="24"><font size="-2" color="#ff9c9c" face="Geneva,Arial,Helvetica,sans-serif">Required</font></td>
 

stanbusk

Administrator
Staff member
This is the example code. What I sent you is the same lines but modified to show other list names. I did that to show you what you have to modify.
 

julienjp

New Member
stanbusk said:
The 'subscribe_auto_single.php' page has a little error in it, use this version instead:

Do you have an updated version of the subscribe_auto_multiple.php?

It looks like there might be an error in this file too. After many attemps to modify the page. I decided to start fresh with a completely new install. I tested the original page unmodified and it still give the same error..

Sorry but we can't process your request
Please fix the following issues
You have to select a list

Can you please check and make sure the original file has no bugs in it before I continue trying to get this to work the way I want it to.


Thanks so much for your help.


Julien
 

julienjp

New Member
Sorry for so many posts, but I think there bug in the subscribe_auto_multiple.php

Here in the information that is sent from both pages.
Code:
http://toandfrom.ca/mailscript/lm/lm.php?cmd=subscribe&list=Ottawa.php&[email protected]&firstname=Julien&lastname=JeanPierre
The above url was sent using the subscribe single page.



Code:
http://toandfrom.ca/mailscript/lm/html/subscribe_auto_multiple.php?email=reachjulien %40gmail.com&firstname=Julien&lastname=JeanPierre&list1=Ottawa&list2=Toronto&listcount=2&cmd=subscribe&submit=Submit

This is what the subscribe_auto_multiple page sent. Notice the difference. First thing I noticed was that the '@' in the email has been replaced with a '%40' and the next thing is that the http://toandfrom.ca/mailscript/lm/html/ ... ltiple.php? is in the url when it should be http://toandfrom.ca/mailscript/lm/lm.php

Another bug I found is when the subscribe_auto_multiple.php sends it info. It sends the lists as 'list1' and 'list2'. If remove the number and send it like this...
http://toandfrom.ca/mailscript/lm/lm.ph ... mit=Submit

then it works, but it only will let me add one of the lists I selected.

If anyone can help me find where to fix these errors, I would really appreciated.



Julien
 

stanbusk

Administrator
Staff member
%40 is a coded '@' actually. I don't see any error actually. Indeed the two URLs are different. The first is a direct command to lm.php, the other a command thru a subscribe page.
 

julienjp

New Member
stanbusk said:
%40 is a coded '@' actually. I don't see any error actually. Indeed the two URLs are different. The first is a direct command to lm.php, the other a command thru a subscribe page.

Well I am now very confused.

Please explain why the url works only when I remove the '/html/subscribe_auto_multiple.php' and replace it with '/lm.php'

and if I don't remove the numbers from 'list1' and 'list2' I get this error

Error - You forgot to provide the list name parameter: &list=listname

Have you tested this from your end and does it work?


Thank you so much for all your help.


Julien
 

stanbusk

Administrator
Staff member
The two URLs have nothing to do, one is a direct command using MLM and the other is a PHP page with a form. Why do you expect to be the same? If you look at the PHP page, the LM URL is formed inside it and we use a PHP forward. And yes, I created the page about 12 months ago, I tested it, I use it and most MaxBulk Mailer use it. You can try it from our server here: http://www.maxprog.com/site/scripts/list_manager/demo//html/subscribe_auto_multiple.php. It works perfect!
 

julienjp

New Member
I wish you wouldn't argue and be so defensive with me. I am a paying customer and I am having a problem. You have this forum for a reason, so please try to help me solve my problem.

You could have just sent me a copy of what you have since it works, but you choose to just act like I am not having a problem.

I am sorry if my lack of computer knowledge frustrates you, I am just trying figure this out. I don't know why you don't seem want to really help. I know that there is something with the coding in the subscribe_auto_multiple.php that I have. I checked the page you sent me and the url thats sent is different than the one thats sent on my site.

If there is no error in the code than please explain to me why the page doesn't work and I keep getting an error to select a list?

Can I send you a copy of what I have and can you please confirm its a current working copy. I think if you take the time to check it you will see that there is something wrong.


Thanks


Julien
 
Top