By Guest on Monday, 21 August 2017
Replies 5
Likes 1
Views 1.1K
Votes 0
Is there anyway to make the Invitations & Reminders of RSVP accept inline and body styles in the Email messages? <style type="text/css">.custom-style {etc..etc...}</style>

No matter what editor I use, the <style></style> tags are stripped out...logged in as super user which has no filtering in Joomla's configuration, and used plain text editor (No JCE, etc.) and it keeps getting removed.

Also, the {EMAIL} tag doesn't work for invitations. Is there another tag we can use to display the Email address that the invitation/reminder is being sent to?

Thanks
I just tested saving the global RSVP Pro params and a specific template and a style tag such as

<style type="text/css">.custom-style {color:red;}</style>

is not stripped out.

Perhaps it is your WYSIWYG editor that is doing this???

In JCE there is a setting to allow inline style elements in the editor profile settings

re {EMAIL} if you edit the file administrator/components/com_rsvppro/libraries/inviteehelper.php and insert this code

if (isset($currentinvitee->email_address) && $currentinvitee->email_address != "")
{
$message = str_replace("{EMAIL}", $currentinvitee->email_address, $message);
}
else if (isset($currentinvitee->user_id))
{
$iuser = JEVHelper::getUser($currentinvitee->user_id);
$message = str_replace("{EMAIL}", $iuser->email, $message);
}

after

$message = str_replace("{USERNAME}", isset($currentinvitee->username) ? $currentinvitee->username : $name, $message);
at line c. 1231 it should replace {EMAIL} in your invitation messages.
·
Wednesday, 23 August 2017 10:57
·
1 Likes
·
0 Votes
·
0 Comments
·
We do some cleanup for the emails before sending. Regarding the {EMAIL} Tag, you may use the {USERNAME} tag to show the username of the invitee, will that do?

For the email styling we can suggest a modification to our libraries that will allow you to include some styling, but you will need to reapply the changes on each update of the component.
·
Tuesday, 22 August 2017 10:03
·
1 Likes
·
0 Votes
·
0 Comments
·
No, USERNAME doesn't give us the email address that the invitation is going out to. We already use {NAME} that gives us to whom the invitation is being sent to, we just wanted the message to be like our other template messages to indicate the Email address that was allowed to register.

Email messages that we build with other systems have custom styles so we can format messages to look alike with the same visual branding. It would be nice if the <style> statements weren't stripped out. The invitation, registration notices look amateur so we are just trying to use consistency in the visual appearance of our communications across all systems.

What would be nice is if RSVP allowed a style sheet to be defined globally and attached to the header of the message when composing and sending.

Or at the very least, if it would simply respect the Joomla! system filtering we choose to implement and restrict if this is a security issue.
·
Tuesday, 22 August 2017 16:03
·
1 Likes
·
0 Votes
·
0 Comments
·
Thank you for the {EMAIL} tag. Just an FYI, the style tags are now being left behind after the .40 update to JEvents.

I had disabled the editor completely before asking. I am able to place script, style tags in every other component with my current jce settings anyway, but disabled it to make sure (I realize that there is filtering everywhere to consider—at the joomla system level, the editor, then lastly the component—so I try to eliminate those)

Anyway, the Jevents .40 update fixes this. As soon as it was updated I was able to go back and enable jce for jevents and the tags work! Of course I just spent an hour converting everything to inline tags :/ but no matter! I thought you did that just for ME!!!
·
Wednesday, 23 August 2017 15:23
·
1 Likes
·
0 Votes
·
0 Comments
·
p.s. I made the changes to invitehelper.php and it works great! Thanks!
·
Wednesday, 23 August 2017 16:19
·
1 Likes
·
0 Votes
·
0 Comments
·
View Full Post