Skip to main content

Check if user has registered

More
9 years 9 months ago #259091 by kyratn
Hi,

What code i could use in the emails html version to check if user has registered?
We want to add some text or buttons which should be shown only for registered users?

Thanks

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

More
9 years 9 months ago #259113 by Mohamed Thelji
Hello,

Using some code like this through the "preload" file of your email will probably help you :
Code:
$vars['CUSTOM_TEXT'] = ''; $user = JFactory::getUser( $data->customer->user_cms_id ); if (!$user->guest) { $vars['CUSTOM_TEXT'] = 'Your Custom Text for registered users'; }
And then you'll be able to display your custom text through your email HTML file by using that kind of code :
Code:
{VAR:CUSTOM_TEXT}
The following user(s) said Thank You: kyratn

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

More
9 years 9 months ago #259130 by kyratn
Replied by kyratn on topic Check if user has registered
Thank you

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

Time to create page: 0.171 seconds
Powered by Kunena Forum