Welcome, Guest
Please Login or Register.    Lost Password?
Pre-RC Feature Requests
Go to bottomPage: 1
TOPIC: Profile avatar click
#5681
Profile avatar click 3 Years, 2 Months ago Karma: 0
Hello,

didn't see this request yet or maybe i missed it.

is there a way to get the profile avatar clickable instead of clicking on the user name? i think its best and friendly to be able to click on the avatar to see the user profile.

thanks,

VR
VReyes
Newbie
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5692
Re:Profile avatar click 3 Years, 2 Months ago Karma: 7
Moving to feature requests.
Rapunzl
Admin
Posts: 225
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6668
Re:Profile avatar click 2 Years, 11 Months ago Karma: 1
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&amp;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&amp;action=gj.core.groups.showgroup&amp;groupid='.$group->id.'&amp;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&amp;action=gj.core.groups.showgroup&amp;groupid='.$group->id.'&amp;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&amp;action=gj.core.groups.showgroup&amp;groupid='.$group->id.'&amp;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.
sh0em0nkey
Newbie
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/02/19 06:13 By sh0em0nkey.
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Braineater
RocketTheme Joomla Templates