xedro99 Posted November 4, 2019 Share Posted November 4, 2019 Hi there, I am wondering if it is possible to display a text on the client area if the user has no active service. I want to display an <p> in the client area if the user has no active service in his/her account, how shall I proceed ahead with this? what {if} code should I use in the template file of the client area? Thanks! xedro 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 4, 2019 Share Posted November 4, 2019 if you were going to do this in a template, it would probably be... {if $loggedin && $clientsstats.productsnumactive eq 0}do something{/if} 1 Quote Link to comment Share on other sites More sharing options...
xedro99 Posted November 17, 2019 Author Share Posted November 17, 2019 On 11/4/2019 at 6:56 PM, brian! said: if you were going to do this in a template, it would probably be... {if $loggedin && $clientsstats.productsnumactive eq 0}do something{/if} Tried it, the entire page becomes blank as soon as I use this. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 17, 2019 Share Posted November 17, 2019 4 minutes ago, xedro99 said: Tried it, the entire page becomes blank as soon as I use this. I don't see why - any errors logged in the activity log?? perhaps there are invalid characters in the post, try either of these {if $loggedin && $clientsstats.productsnumactive eq 0}do something{/if} {if $loggedin && $clientsstats.productsnumactive == 0}do something{/if} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.