|
Written by Steve Burge
|
Ok - time to walk the walk.
Yesterday, I praised GroupJive and said how important I though it was for the future of social networking with Joomla. I also mentioned that until this week, not enough people had been contributing.
Today, we'll show you had to add a useful feature to GroupJive - posting comments on all group messages.
This uses Jomcomment from Azrul.com.
Creating the Output
- Open up components/com_groupjive/groupjive.html.php
- Scroll down to // create template output (around line 276)
- Look for $tmpl->addVar( 'showfullmessage', 'GJ_POST', $d->post);
- After this line add this:
include_once("mambots/content/jom_comment_bot.php");
$tmpl->addVar( 'showfullmessage', 'GJ_JOMCOMMENT', jomcomment($d->id, "com_groupjive") );
Adding the Comments to Your Template
- Open up components/com_groupjive/templates/your-template/groupjive.tmpl
- Scroll down to the section saying <mos:tmpl name="showfullmessage">
- After {GJ_POST} you need to add {GJ_JOMCOMMENT}. If neccesary, add a new table row.
Further Reading
Free Weekly Joomla Tutorials
Every week we send out a Joomla tutorial. One topic. Simple step-by-step instructions. The newsletter is completely free. Sign-up below for free weekly Joomla how-tos in your inbox:
Your Comments (6)
 |