Configuring 'Announcement' to display different messages
Hi, I was wondering if it is possible to change the text that is displayed to users according to their registration date (or some other variable that's in the lithium user database)?
We're got lot of new members coming on board at the moment - in the 'Announcement' section on each board I'd like to display a selection of "FAQs" to new members (ie welcome, link to guidelines, how to join etc"), and a different set of FAQ's for members who've been around for a while.
We've got a simple CMS / Java (?) code in the announcement section which displays:
- If you're not logged in (user anonymous) displays image 1 with link to "join page"
- If you are logged in it displays image 2, linked to the "purchase page"
Ideally - I'd like to be able to add some code that looks at their registration date as well i.e.
- if you're logged in and registered < 2 weeks ago you're displayed 'new joiner text'
- if you're logged in and registered > 2 weeks ago, you've displayed another set of text
Is this possible? Or am I being a little ambitious? (I'm an HTML code / tech novice - I'm looking at this from a CRM Marketing point of view)
Any advice is greatly appreciated - thanks!
Code we're using at the moment which displays different images according to whether you're logged in or not:
<#if user.anonymous == true> <a href="https://ourwebsite/1"> <img src="http://Image1.jpg"> </a> <#else> <a href="https://ourwebsite/2" target="_blank"> <img src="http://Image2.jpg"> </a> </#if>
I imagine if it is possible the code would be something like:
<#if user.Registration_time <LESS_THAN> TodaysDate(-14)>
<p>this text for newbies</p>
<#else>
<p>this other text for older members</p>
</#if>