- Posts: 967
- Thank you received: 220
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
issue with admin notifications - message too long?
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
7 years 7 months ago #141458
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic issue with admin notifications - message too long?
Strange, this does not work. html_entity_decode decodes to:
Confirmation mail text (in HTML) htmlentities( ' < p > Hiereenwatlangeretekst < / p > < p > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- < / p > < p > http : / / www.toolsforresearch.com < / p > < p > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- < / p > ' )
Confirmation mail text (in HTML) htmlentities( ' < p > Hiereenwatlangeretekst < / p > < p > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- < / p > < p > http : / / www.toolsforresearch.com < / p > < p > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- < / p > ' )
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 967
- Thank you received: 220
7 years 7 months ago #141459
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic issue with admin notifications - message too long?
It works when I place this in the equation text:
but it fails when I put this in the equation text:
HTML for token emails is switched on. Using 2.50 GIT
Code:
<p>Hier een wat langere tekst</p> <p>--------------------------------------</p> <p>http://www.toolsforresearch.com</p> <p>--------------------------------------</p>
but it fails when I put this in the equation text:
Code:
{htmlentities('<p>Hier een wat langere tekst</p> <p>--------------------------------------</p> <p>http://www.toolsforresearch.com</p> <p>--------------------------------------</p>')}
HTML for token emails is switched on. Using 2.50 GIT
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
7 years 7 months ago #141460
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic issue with admin notifications - message too long?
Here is a small sample survey with the basic admin notification set to include your variable text - you will need to change the "Send basic admin notification email to" setting.
Click 1 in Q1 to have the variable text included in the notification email.
Click 1 in Q1 to have the variable text included in the notification email.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: tammo
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 967
- Thank you received: 220
7 years 7 months ago - 7 years 7 months ago #141461
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic issue with admin notifications - message too long?
Wow, this is something that has cost some hours. Somehow your example worked perfectly, while what I typed looked the same. I guess it must have been a keyboard issue, encoding of the quotes or something. After typing in again (keyboard US-English) it works!
en.wikipedia.org/wiki/Standing_on_the_shoulders_of_giants
en.wikipedia.org/wiki/Standing_on_the_shoulders_of_giants
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Last edit: 7 years 7 months ago by tammo. Reason: typo
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 7 months ago #141475
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic issue with admin notifications - message too long?
Sounds like quoting hell. It's a nice hobby for some of us Will you open a bug ticket? Or isn't that currently a workaround?tammo wrote: I guess it must have been a keyboard issue, encoding of the quotes or something. After typing in again (keyboard US-English) it works!
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 967
- Thank you received: 220
7 years 7 months ago #141477
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic issue with admin notifications - message too long?
This was already a workaround: putting HTML text (without variables) in an equation and then referring to that equation. If this grows huge, for each respondent the same text is saved in his/her record in the database. I find that a bit clumsy.
For now (and with a short text) this may work. For following implementations I will look for another solution. Perhaps try to call a text file.
For now (and with a short text) this may work. For following implementations I will look for another solution. Perhaps try to call a text file.
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 7 months ago #141479
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic issue with admin notifications - message too long?
Yepp, and that means opening a bug report Like I have done with the EndURL issue with EM. I haven't looked into the LS from tpartner. Would be interesting to know if he sees the current behavior as a bug or as a missing feature.tammo wrote: This was already a workaround: putting HTML text (without variables) in an equation and then referring to that equation. If this grows huge, for each respondent the same text is saved in his/her record in the database. I find that a bit clumsy.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 967
- Thank you received: 220
7 years 7 months ago #141491
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic issue with admin notifications - message too long?
You are right, Jelo. I will write a bug report. I hope I can reproduce the error...
Tammo
Tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
7 years 7 months ago #141535
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic issue with admin notifications - message too long?
I would probably view it as a bug. In my opinion, EM should parse the HTML correctly, no matter where used.I haven't looked into the LS from tpartner. Would be interesting to know if he sees the current behavior as a bug or as a missing feature.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.