Logical blocks break down
By Stam, 2009-10-09 18:43 in News
As it's my first time working with Cotonti, I fell in love with logical blocks the moment I realized what can be done utilizing them. Using the power of logical expressions in the .tpl files, I was able to go the extra mile and greatly improve the AI of the sed-light skin. Let me break it down for you...Brief list of logical expressions used
- Login and Register page are disabled if user is already logged in
- Members Online and Vote Poll don't appear on index if they are empty
- Intelligent Sidebar for all User Pages, especially User Details. It recognizes if the user is logged, if the logged in user is the same as the one of the profile shown and changes the sidebar's contents. For example, user's avatar doesn't show if the user is logged in and viewing his own profile, as it already exists in the User Panel box in the header.
- User is urged to login in order to post a reply in the forums or a comment on pages
- Several empty tags and redundant pieces of code have been switched off
This is far from being a detailed list, but will find time to write down more details at some point later.
To be continued...


Nicely done
Good job!
Thanks