solved Profile Index display based on quota id

blindmime
@blindmime
10 years ago
772 posts
I have a something I want to display in profile_index.tpl if a profile belongs to a quota ID of 1. When I code {if $profile_quota_id = 1} some text{/if} it displays "some text" on all profiles (which is not correct).

However, if I code {if $profile_quota_id != 3} it displays "some text" on profiles other than ID 3 (which is correct). But if I use this method I'd need to do something like {if $profile_quota_id != 3 || $profile_quota_id != 2 || $profile_quota_id != 4 etc} just to display this on quota ID 1 profiles. Is that the only way of doing this?

If not, what is the best way to do what I want to do?
updated by @blindmime: 08/04/15 02:00:54AM
paul
@paul
10 years ago
4,335 posts
Your if statement is wrong - Use two equals signs - {if $profile_quota_id == 1}
hth


--
Paul Asher - JR Developer and System Import Specialist
blindmime
@blindmime
10 years ago
772 posts
Thanks, Paul. I thought I had it this way at first, but evidently not. This works, of course.
paul
@paul
10 years ago
4,335 posts
Glad its sorted :-)


--
Paul Asher - JR Developer and System Import Specialist

Tags