KK wrote: @GoingMarryAsap
But still got a problem, the user can access the premium page next day after the expired date that i set

I think there must me some logical error in the coding.
Can I take a look at this issue first-hand? If we can rectify it, it will also solve Simon's problem.
Hi
KK!
Hi
SimonRLM!
Sorry for late respon, the code is on my office pc.
Now im here at my office, so this is the code :
- Code: Select all
<cms:pages masterpage='iklan.php' orderby='publish_date' order='desc' limit='6' paginate='1'>
<div class="image">
<cms:pages masterpage='members/index.php' id="<cms:show owner />">
<cms:if end_date != "<cms:date format='Y-m-j' />">
<figure class="ribbon">Premium</figure>
<cms:else_if end_date = "<cms:date format='Y-m-j' />"/>
<figure class="ribbon">Not Premium</figure>
</cms:if>
</cms:pages>
<cms:set has_foto_iklan1='0' 'global' />
<cms:show_securefile 'foto_iklan1'>
<cms:if file_is_image>
<img alt="<cms:show k_page_title />" src="<cms:cloak_url link=file_id thumbnail='1' />">
<cms:set has_foto_iklan1='1' 'global' />
</cms:if>
</cms:show_securefile>
<cms:if "<cms:not has_foto_iklan1 />">
<img alt="<cms:show k_page_title />" src="<cms:show k_site_link />assets/img/no-image.png">
</cms:if>
</div>
</cms:pages>
Like i said before, i have an editable region date picker named "
end_date". That will handle the expired date. My problem is, when i set the end date before the
<cms:date />, the site will show "
Premium", and if the
<cms:date /> greater than "
end_date" it will show "
Premium". But, if the "
end_date" equal
<cms:date />, it will show "
Not Premium".
So, what i need is when the "
end_date" equal or greater than
<cms:date />, it always show "
Not Premium", or in this case the user cant access the premium page, or cant do someth what we give it to the premium user. (In my case, the premium user have a ribbon tag & can edit post)
I still cant figure it out