Plugin: Karma Author: LifeType Team Release Date: 2005/02/25 Version: 1.0 This plugin offers karma rating for posts. You can use: 1. $post->getField("positiveKarma") to get positive karma score 2. $post->getField("negativeKarma") to get negative karma score 3. $karma->getPositiveUrl($post) to get positive karma url 4. $karma->getNegativeUrl($post) to get negative karma url Install: 1. Configurate your Host Block plugin in your LifeType control center 2. Modify you post.template with the follow code to get karma link: {if !empty($karma)} {if $karma->isEnabled()} {assign var="positiveKarma" value=$post->getField("positiveKarma")}{if $positiveKarma == ""}{assign var="positiveKarma" value=0}{/if} {assign var="negativeKarma" value=$post->getField("negativeKarma")}{if $negativeKarma == ""}{assign var="negativeKarma" value=0}{/if} :: {$locale->tr("karma")} (+{$positiveKarma}/-{$negativeKarma}) {/if} {/if} 3. Modify your header.template or footer.template to get unmoderated post link: {if !empty($karma)} {if $karma->isEnabled()}
  • {$locale->tr("karma_moderated_down_articles")}
  • {/if} {/if}