load module in Emails & Messages

  • Publy Goo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #105865 by Publy Goo
load module in Emails & Messages was created by Publy Goo
Is it possible to load a module in email body?
for example:
{loadmodule mod_membershipplans,Membership Plans}

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

More
7 years 6 months ago #105866 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic load module in Emails & Messages
Hello

Unfortunately, it is not possible. The email message can only contain text message, you cannot load a module there

Regards,

Tuan

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

More
6 years 11 months ago #113724 by Tamas Fuzessy
Replied by Tamas Fuzessy on topic load module in Emails & Messages
And in screen messages?
We want to build a complete Acymailing subscription modul into the registration form.

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

More
6 years 11 months ago #113729 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic load module in Emails & Messages
Hi

As mentioned, we don't support it. If you want to add the module in the message, try to edit code in this file components/com_osmembership/view/register/tmpl/default.php, change the code from:
Code:
<div class="osm-message clearfix"><?php echo $this->message; ?></div>

to:
Code:
<div class="osm-message clearfix"><?php echo JHtml::_('content.prepare', $this->message); ?></div>

With that change, you can load the module in messages in same way with how you load it in article (I haven't used that feature but I know Joomla allows loading module in article)

Regards,

Tuan

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

More
6 years 11 months ago #113736 by Tamas Fuzessy
Replied by Tamas Fuzessy on topic load module in Emails & Messages
Thank you, it sounds great.

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

More
6 years 11 months ago #113757 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic load module in Emails & Messages
OK Tamas

Please update us with the result once you tested it

Regards,

Tuan

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