Hi all (my first post here)
I have the links getting generated correctly on my test set up. It may not be pretty, but it works well, and maybe what I have found will speed things up for someone with a bit more experience than me.
First a disclaimer... I worked all night on the graveyard shift, then worked on this problem this morning and had a nap... Im feeling a bit goofy, so I hope this makes sense...
My Set up...
J 1.5.8 fresh on Localhost
CB 1.2 RC 4
FB 1.0.5RC2
GJ 1.7 v0.29a
FB Plugin 1.7d
So, after reading this thread completely
http://www.groupjive.org/index.php?option=com_kunena&Itemid=45&func=view&catid=224&id=5712
I installed everything fresh with as few configuration changes as I could get away with. I
did not do the hacks found in the outdated readme.txt. I added 2 categories with a couple groups in each to GJ. I added and
published a category to FB. I installed and configured the CB plugin and activated it and the other CB-FB plugin. I clicked
(update old groups) which built the forums under my catagory. This got me to the place where many others are. Most everything was working, but the Group Forum link was broken. It was simply not passing the catid in the url. I found that the link is generated in ... com_profiler\plugin\user\plug_gjfireboard\fireboard.php
starting on line 184. I chased around to try to find where the variables were set but found myself lost & frustrated 'till I noticed that the new FB forums are listed in database table _gj_jb. So I re-wrote the function getLink to grab the catid from the DB and pass it on the the link.
OK, so here is the new function. As I said, there is probably an easier/cleaner way to do this and the author will likely fix the original code as well, but this is working for me.
| Code: |
function getLink ( $groupInfo ) {
global $Itemid, $_CB_database, $_CB_framework;
$link = '';
if ($this->params->get('runfireboard')) {
$absolutepath = $_CB_framework->getCfg('absolute_path');
// check if Joomlaboard or Fireboard
if (file_exists($absolutepath.'/components/com_kunena/fireboard.php')) {
$forumpath ='com_kunena';
}
else {
$forumpath ='com_joomlaboard';
}
// braineater hack
$val = $_GET['groupid'];
$_CB_database->setQuery("SELECT category_id FROM #__gj_jb WHERE group_id=$val");
$cat_id = $_CB_database->loadResult();
$link = '<li><a href="'
. cbSef("index.php?option=".$forumpath."&"
. "func=showcat&catid=".$cat_id."&"
. "Itemid=$Itemid")
. '">'.GJ_GROUP_FORUM.'</a></li>';
}
return $link;
}
|
So at this point the links work. I then went to FB config and
unpublished the parent category and did the com_kunena/template/default/fb_pathway.php hack as found in the readme.
Everything looks to be working well.
Now I hope someone figures out how to list the Latest Forum Topics...
Good Luck & Have Fun...