UddeIM Cobalt integration - 0.3 Stable
In fact there is nothing to download. If you read UddeIM FAQ you will find that in order this extension to work inside other extensions you have add special code there. Here is the instruction how to add UddeIM support in Cobalt Templates.
Open to edit Articles list or Article template. To find more about templates locations read this article.
Anywheer you want add this piece of code
user_id)
{
echo '<a href="/. JRoute::_('index.php?option=com_uddeim&task=new&recip='. $item->user_id). ">PM</a>';
}
?>
If you want to show this link only registered users or special add this
in_array(2, $this->user->getAuthorisedViewLevels())
1 - Public, 2 - Registered, 3 - Special
The whole block will look like
user_id && in_array(2, $this->user->getAuthorisedViewLevels()))
{
echo '<a href="/. JRoute::_('index.php?option=com_uddeim&task=new&recip='. $item->user_id). ">PM</a>';
}
?>
That is it. Enjoy!
Sergey
16 Aug 2012
Comments
blog comments powered by Disqus