When adding a link I assign it to the appropriate member name, but for some reason upon submission of the link it defaults back to me. If I edit an already existing link by adding the owner name it will keep that information.
Also when adding a link only using the Owner ID# (not name) it does keep the owner information, but the log does not show an assign email going out. If I do as above using the link owner's name and then editing after it defaults to me the log does show an email going out with a subject but no message body.
Also, the owner does not seem to be getting any of the assign emails at all. I know I've updated both {LANG_EMAIL_ASSIGNEDBODY} & {LANG_EMAIL_ASSIGNEDSUBJECT} in the languages settings. I've sent out a test email from the admin panel which is received, but not from the actual assigning of the link.
Reassignment of links is a switch which enables a special reassign area on edit. It has nothing to do with the "owner name or id" box, and the owner name/id box certainly isn't supposed to generate an email.
Thank you for pointing out the switch. I realized I had not switched it on since it is for assigning a link to a new account. This is not what I need for this option to do.
If you go back to www.webmastersite.net/forum...ightqglinklspang-7989.html which is where you added this option at our request I had requested for the link to be assigned to the member upon submission. I actually need the option to assign it to existing members not new ones which is how the switch works now. I'm sorry if I did not make that clear in the original post.
So when I submit a link I need to have an assignment box (much like the owner box - a drop down list of members would be helpful since I won't have that many, but unnecessary) where I can enter an existing member's name or ID. Upon submission of this link the member the link has been assigned to should get an email from the administrator.
Ok, the assignment now saves correctly. Thank you.
The next problem with this is with the notification email going out. According to the email log an email supposedly went out with the correct subject, but no message body. When I check the email account there is nothing there. I sent a test email using the body of the assignment email (email_assignedbody) which was received, but with the following message body -
<br /> <b>Parse error</b>: syntax error, unexpected $end in <b>/path/to/portal/includes/commonfuncs.php(765) : eval()'d code</b> on line <b>12</b><br />
Prior to the email being sent I get the following error on my site which disappears after a second refresh -
Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in /home/content/h/i/g/highasp2/html/portal/databases/mysqli.php on line 23
Please let me know if you need any additional information to be able to fix this.
Well, I've figured out my problem - kinda. Something in the email body is causing the problem. I've narrowed it down to the following line.
<IF {LINKEXPIRE}>This item will be deleted on {LINKEXPIREDATE}. <ELSE> </IF>
Basically I want the email to show the expiration date if there is one, but show nothing if it is not set to expire. Are these variables maybe not able to be used in emails?
I've gone back and took the code from my linkbit template which I know worked and changed the email body to -
<IF {LINKEXPIRE} is greater than 1>This item will be deleted on {LINKEXPIREDATE[%d-%m-%y]}.</IF>
I thought for sure that was going to be the answer, but no such luck. I see that you don't use these variables in any of the default emails. Could it be that they just don't work there?
Comments on assign link only works when editing
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
When adding a link I assign it to the appropriate member name, but for some reason upon submission of the link it defaults back to me. If I edit an already existing link by adding the owner name it will keep that information.
Also when adding a link only using the Owner ID# (not name) it does keep the owner information, but the log does not show an assign email going out. If I do as above using the link owner's name and then editing after it defaults to me the log does show an email going out with a subject but no message body.
Also, the owner does not seem to be getting any of the assign emails at all. I know I've updated both {LANG_EMAIL_ASSIGNEDBODY} & {LANG_EMAIL_ASSIGNEDSUBJECT} in the languages settings. I've sent out a test email from the admin panel which is received, but not from the actual assigning of the link.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Reassignment of links is a switch which enables a special reassign area on edit. It has nothing to do with the "owner name or id" box, and the owner name/id box certainly isn't supposed to generate an email.
As for changing the name on submit, fixed.
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
Thank you for pointing out the switch. I realized I had not switched it on since it is for assigning a link to a new account. This is not what I need for this option to do.
If you go back to www.webmastersite.net/forum...ightqglinklspang-7989.html which is where you added this option at our request I had requested for the link to be assigned to the member upon submission. I actually need the option to assign it to existing members not new ones which is how the switch works now. I'm sorry if I did not make that clear in the original post.
So when I submit a link I need to have an assignment box (much like the owner box - a drop down list of members would be helpful since I won't have that many, but unnecessary) where I can enter an existing member's name or ID. Upon submission of this link the member the link has been assigned to should get an email from the administrator.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Changed to be available on submissions and allow reassignment to existing members.
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
Ok, the assignment now saves correctly. Thank you.
The next problem with this is with the notification email going out. According to the email log an email supposedly went out with the correct subject, but no message body. When I check the email account there is nothing there. I sent a test email using the body of the assignment email (email_assignedbody) which was received, but with the following message body -
<br />
<b>Parse error</b>: syntax error, unexpected $end in <b>/path/to/portal/includes/commonfuncs.php(765) : eval()'d code</b> on line <b>12</b><br />
Prior to the email being sent I get the following error on my site which disappears after a second refresh -
Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in /home/content/h/i/g/highasp2/html/portal/databases/mysqli.php on line 23
Please let me know if you need any additional information to be able to fix this.
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
Hey Paul,
You usually answer pretty quickly one way or another and was wondering if maybe you missed my last post with the errors I'm getting with the emails.
Thanks.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I can't duplicate this. Had a fatal error in 5.0 due to the renaming of a function, but the email content is fine once fixed.
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
Well, I've figured out my problem - kinda. Something in the email body is causing the problem. I've narrowed it down to the following line.
<IF {LINKEXPIRE}>This item will be deleted on {LINKEXPIREDATE}.
<ELSE> </IF>
Basically I want the email to show the expiration date if there is one, but show nothing if it is not set to expire. Are these variables maybe not able to be used in emails?
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
I've gone back and took the code from my linkbit template which I know worked and changed the email body to -
<IF {LINKEXPIRE} is greater than 1>This item will be deleted on {LINKEXPIREDATE[%d-%m-%y]}.</IF>
I thought for sure that was going to be the answer, but no such luck. I see that you don't use these variables in any of the default emails. Could it be that they just don't work there?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I think I see the problem, it's not reading the right text. Try again after the next release.
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
Ok, finally got around to upgrading. I'm at 4.1.55 now, but still have the same problem.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
This is the same general problem as pierre's issue: www.webmastersite.net/forum...k-approval-email-8261.html . No email conditionals were working.
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
Thanks the email test goes through without any errors now.
Unfortunately, I cannot test if the emails are going out correctly upon submission because of another error. I've updated mariow's thread here - www.webmastersite.net/forum...on-checkrequired-8266.html with that problem.