Webmastersite.net
Register Log In

assign link only works when editing

Comments on assign link only works when editing

hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Jun 28, 2008 - 2:44 PM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 01, 2008 - 12:57 AM:

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.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Jul 01, 2008 - 7:08 AM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 04, 2008 - 11:15 AM:

Changed to be available on submissions and allow reassignment to existing members.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Jul 05, 2008 - 9:20 AM:

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.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Jul 11, 2008 - 9:42 PM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 12, 2008 - 4:13 PM:

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.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Jul 12, 2008 - 9:10 PM:

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?
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted Jul 14, 2008 - 2:21 PM:

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?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Jul 15, 2008 - 1:18 PM:

I think I see the problem, it's not reading the right text. Try again after the next release.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
#11 - Quote - Permalink
Posted Jul 23, 2008 - 4:37 PM:

Ok, finally got around to upgrading. I'm at 4.1.55 now, but still have the same problem.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#12 - Quote - Permalink
Posted Jul 24, 2008 - 3:21 AM:

This is the same general problem as pierre's issue: www.webmastersite.net/forum...k-approval-email-8261.html . No email conditionals were working.
hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
#13 - Quote - Permalink
Posted Jul 24, 2008 - 7:13 AM:

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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.