|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
sqpp Smarty n00b
Joined: 15 Oct 2017 Posts: 3
|
Posted: Sun Oct 15, 2017 2:06 pm Post subject: Very Simple Code with WHMCS |
|
|
Hey!
I have smarty enabled on WHMCS, but for some reason this code is not working.
I would like to encode the field to MD5 (no need to be that secure, since I going to decrypt it, but have to be unique)
Code: | {php} $usid = $service_custom_fields.1; echo md5($usid); {/php}
|
I have no error, but when sending email, got big error with any detailed info |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sun Oct 15, 2017 2:24 pm Post subject: |
|
|
{php} tags are not supported anymore.
You can use any PHP function as a modifier.
Code: | {$service_custom_fields.1|md5} |
|
|
Back to top |
|
sqpp Smarty n00b
Joined: 15 Oct 2017 Posts: 3
|
Posted: Sun Oct 15, 2017 3:06 pm Post subject: |
|
|
The problem is, Email message rendered empty - please check the email message Smarty markup syntax |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
Back to top |
|
sqpp Smarty n00b
Joined: 15 Oct 2017 Posts: 3
|
Posted: Sun Oct 15, 2017 3:29 pm Post subject: |
|
|
Brother, I just copied the code, you just sent me, there is no other code.
Nevermind..
modifier 'md5' not allowed by security setting |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sun Oct 15, 2017 5:23 pm Post subject: |
|
|
sqpp wrote: | modifier 'md5' not allowed by security setting |
Well, that's a completely different issue then |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|