Any questions about Documents Sellers, post it here .

code page changed by dms for e-mail notifications

  • vvolf69
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 2 weeks ago - 12 years 2 weeks ago #22112 by vvolf69
I tried to setup the e-mail notifications and I used common html. I have added some of the htmls als an example below. what happens when I add the code to dms is that after I saved the changes the code page is changing so the mail doesn´t display correct.
Code:
<div style="text-align: center; width: 100%; background-color: #ffffff;"> <table style="text-align: justify; margin: auto; background-color: #ebebeb; border: 1px solid #e7e7e7; width: 600px;" align="center" bgcolor="#ebebeb" cellpadding="0" cellspacing="0"> <tbody> <tr style="line-height: 0px;"> <td style="line-height: 0px;" height="38px"><img src="media/com_acymailing/templates/newsletter-4/top.png" alt=" - - - " /></td> </tr> <tr> <td style="text-align: center;" width="600"> <table style="margin: auto; width: 520px;" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="padding: 20px 0px; text-align: left;"><img src="media/com_acymailing/templates/newsletter-4/message_icon.png" alt="" style="float: left; margin: 0px; margin-right: 20px;" /> <h3>Topic of your message</h3> <h4>Subtitle for your message</h4> </td> </tr> <tr> <td style="background-color: #fff; border: 1px solid #dbdbdb; padding: 20px; width: 500px; margin: auto; margin-top: 15px; margin-bottom: 15px; text-align: left;"> <h1>Dear {subtag:name},</h1> Your message here...</td> </tr> </tbody> </table> </td> </tr> <tr style="line-height: 0px;"> <td style="line-height: 0px;" height="40px"><img src="media/com_acymailing/templates/newsletter-4/bottom.png" alt=" - - - " /></td> </tr> </tbody> </table>

here is how it looks after saving in dms
Code:
<div style="text-align: center; width: 100%; background-color: #ffffff;" /> <table style="text-align: justify; margin: auto; background-color: #ebebeb; border: 1px solid #e7e7e7; width: 600px;" align="center" bgcolor="#ebebeb" cellpadding="�" cellspacing="�"> <tbody> <tr style="line-height: 0px;"> <td style="line-height: 0px;" height="38px"><img src="migration.vvolfskinz.eu/media/com_acymailing/templates/newsletter-4/top.png" alt=" - - - " /></td> </tr> <tr> <td style="text-align: center;" width="600"> <table style="margin: auto; width: 520px;" border="�" cellpadding="�" cellspacing="�"> <tbody> <tr> <td style="padding: 20px 0px; text-align: left;"><img src="media/com_acymailing/templates/newsletter-4/message_icon.png" alt="" style="float: left; margin: 0px; margin-right: 20px;" /> <h3>Upload Notification</h3> <h4>A user has uploaded a new mod</h4> </td> </tr> <tr> <td style="background-color: #fff; border: 1px solid #dbdbdb; padding: 20px; width: 500px; margin: auto; margin-top: 15px; margin-bottom: 15px; text-align: left;"> <h1>Dear Admin,</h1> User [USERNAME] has just uploaded DOCUMENT [DOCUMENT_TITLE] from front-end of your site. Please login to your site and access to [EDIT_LINK] to publish the document.</td> </tr> </tbody> </table> </td> </tr> <tr style="line-height: 0px;"> <td style="line-height: 0px;" height="40px"><img src="media/com_acymailing/templates/newsletter-4/bottom.png" alt=" - - - " /></td> </tr> </tbody> </table>

joomla html-stripping is disabled for the particular user...
Last edit: 12 years 2 weeks ago by vvolf69.

Please Log in or Create an account to join the conversation.

More
12 years 2 weeks ago #22312 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: code page changed by dms for e-mail notifications
Could you please submit a support ticket sending me administrator and FTP account of your site so that I can check and fix the issue directly on your site ?

Tuan

Please Log in or Create an account to join the conversation.

  • vvolf69
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 2 weeks ago #22332 by vvolf69
I´m looking into that right now and if I´m not able of fixing it I will send you the account details. Otherwise I will let you know how I fixed it.

Please Log in or Create an account to join the conversation.

More
12 years 1 week ago #22521 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: code page changed by dms for e-mail notifications
Hi

Were you able to solve the issue ? A quick tip would be :

1. Open the file administrator/components/com_dms/controller.php

2. Find the function save_configuration

3. Find the code below inside that function:

$data = JRequest::get('post', JREQUEST_ALLOWHTML) ;

4. Change it to :

$data = JRequest::get('post', JREQUEST_ALLOWRAW) ;

After that, it will work as expected .

Tuan

Please Log in or Create an account to join the conversation.