- Posts: 34
- Thank you received: 1
[USER_ID] in Emails & Messages
- Matt Hennessy
- Topic Author
- Offline
- Junior Member
-
Less
More
7 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.
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!
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!
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 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
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.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.