To make the thumbnail as well as name click-able, edit components/com_groupjive/groupjive_func.inc
replace lines 353 - 357 with
| Code: |
$content .= "<li>"
. "<a href=\""
. cbSef("index.php?option=com_comprofiler&"
. "task=userProfile&user=$row->id")."\"><img src=\"$im\" alt=\"$name\" /><br />"
. $name."</a></li>";
|
The above method should not reproduce any errors and such, however, the codes below for the same functionality on the modules probably will.
here is code for the 1.4 modules too. I'm no expert, but it worked for me with display_errors turned off in PHP. I'd really like some insight on how to implement Itemid in a better way than using _GET variable.
gj_largestgroups - replace lines 116 - 129 with
| Code: |
$return .= "<a href=".cbSef("index.php?option=com_groupjive&action=gj.core.groups.showgroup&groupid=$row->id")."&Itemid=".$_GET[Itemid].">";
$return .= '<img src="images/com_groupjive/tn'.$row->logo.'" alt="'.$row->name.' logo" />';
} else {
if (file_exists("images/com_groupjive/tn".$gjConfig['nophoto_logo'])) {
$return .= "<a href=".cbSef("index.php?option=com_groupjive&action=gj.core.groups.showgroup&groupid=$row->id")."&Itemid=".$_GET[Itemid].">";
$return .= '<img src="images/com_groupjive/tn'.$gjConfig['nophoto_logo'].'" alt="default logo" />';
} else {
$return .= "<a href=".cbSef("index.php?option=com_groupjive&action=gj.core.groups.showgroup&groupid=$row->id")."&Itemid=".$_GET[Itemid].">";
$return .= '<img src="images/com_groupjive/groupjive_mini.png" alt="default logo" />';
}
}
}
if($row->type != 3 || $member > 0) {
$return .= "<br />".$row->name."</a>";
|
gj_mygroups - replace lines 104 - 111 with
| Code: |
$return .= '<a href="index.php?option=com_groupjive&action=gj.core.groups.showgroup&groupid='.$group->id.'&Itemid='.$_GET[Itemid].'"><img src="images/com_groupjive/tn'.$group->logo.'" alt="'.$group->name.' logo" /></a><br />';
}
else{
if (file_exists("images/com_groupjive/tn".$gjConfig['nophoto_logo'])) {
$return .= '<a href="index.php?option=com_groupjive&action=gj.core.groups.showgroup&groupid='.$group->id.'&Itemid='.$_GET[Itemid].'"><img src="images/com_groupjive/tn'.$gjConfig['nophoto_logo'].'" alt="default logo" /></a><br />';
}
else {
$return .= '<a href="index.php?option=com_groupjive&action=gj.core.groups.showgroup&groupid='.$group->id.'&Itemid='.$_GET[Itemid].'"><img src="images/com_groupjive/groupjive_mini.png" alt="default logo" /></a><br />';
|
gj_newestgroups - replace lines 101 - 115 with
| Code: |
$return .= "<a href=".cbSef("index.php?option=com_groupjive&action=gj.core.groups.showgroup&groupid=$row->id")."&Itemid=".$_GET[Itemid].">";
$return .= '<img src="images/com_groupjive/tn'.$row->logo.'" alt="'.$row->name.' logo" />';
} else{
if (file_exists("images/com_groupjive/tn".$gjConfig['nophoto_logo'])) {
$return .= "<a href=".cbSef("index.php?option=com_groupjive&action=gj.core.groups.showgroup&groupid=$row->id")."&Itemid=".$_GET[Itemid].">";
$return .= '<img src="images/com_groupjive/tn'.$gjConfig['nophoto_logo'].'" alt="default logo" />';
} else {
$return .= "<a href=".cbSef("index.php?option=com_groupjive&action=gj.core.groups.showgroup&groupid=$row->id")."&Itemid=".$_GET[Itemid].">";
$return .= '<img src="images/com_groupjive/groupjive_mini.png" alt="default logo" />';
}
}
}
if($row->type != 3 || $member > 0) {
$return .= "<br>".$row->name."</a>";
|
This isn't very pretty. I needed to have the Itemid present as to not break the template, and my method will work - but it will display errors if you have display_errors turned on in PHP. If you don't, you can safely remove
| Code: |
&Itemid=".$_GET[Itemid]."
|
- just double check for extra quotations and such after removing them. If extra quotation present, you'll probably get an error or white screen.
___________________________________________________
I originally came here looking for a method to use CB avatars in the bulletin board, and on the latest bulletins module. But I decided to post this instead.
Will search and post questions on different topic.
But if anyone can help, I'd be your best friend ever. I'm not looking for pretty code, just something that works.