[USER_ID] in Emails & Messages

  • Matt Hennessy
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 5 months ago #106343 by Matt Hennessy
[USER_ID] in Emails & Messages was created by Matt Hennessy
Hi Tuan,

I was trying to add a link to the user edit page in the Admin email body, so I started by looking up what tags are available. If there is a tag for the user_id, then I can easily create the link that I want. I was referencing the following file, line 2870, Membership Pro 2.10.2.

Code:
/com_osmembership/packages/com_osmembership/site/helper/helper.php

If you refer to the attachment, I was a bit confused to see line 2877, which seems to say that it replaces [USER_ID] with the user's first name? Given that line 2878 replaces [FIRST_NAME] with the user's first name as well, I'm wondering if line 2877 is a typo?

I don't have a dev environment I can test this on currently, so I just wanted to check with you.

Thanks!
Attachments:

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

More
6 years 5 months ago #106358 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic [USER_ID] in Emails & Messages
Hi Matt

I am sorry, it is a typo in the code

It should be $replaces = $row->user_id;

So for now, please edit the code and change it manually. I will update download package with this fix shortly

Regards,

Tuan
The following user(s) said Thank You: Matt Hennessy

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