Monday, 21 August 2017
  5 Replies
  1.1K Visits
0
Votes
Undo
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
Wednesday, 23 August 2017 10:57
·
#192327
Accepted Answer
0
Votes
Undo
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.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Tuesday, 22 August 2017 10:03
·
#192286
0
Votes
Undo
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 16:03
·
#192304
0
Votes
Undo
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.
Wednesday, 23 August 2017 10:57
·
#192327
Accepted Answer
0
Votes
Undo
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.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Wednesday, 23 August 2017 15:23
·
#192343
0
Votes
Undo
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 16:19
·
#192346
0
Votes
Undo
p.s. I made the changes to invitehelper.php and it works great! Thanks!
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.