Forumlar / Cotonti / Core Labs / Archive / Logic blocks for xtemplate

musiconly
#9662 2009-03-10 18:16
I actually like this logic bloks, from the designers perspective..

<!-- IF {PAGE_OWNER}=={COMMENTS_ROW_AUTHORID} -->
<div style="background-color: #c3c3c3;"> (rest of code here) </div>
<!-- ENDIF -->

So basically, if comment author is also the page owner, his comment will stand out from the other comments by changing color of background etc.

Also one more example:

<!-- IF {PHP.usr.profile.user_logcount} < '5' -->
Hello {PHP.usr.profile.user_name}! We noticed that you are new here,
 so please take a look at our <a hre="">Rules</a> and <a href="">FAQ</a> 
to save your time while waiting for an already answered question!
<!-- ENDIF -->

This is great! :-)