Avatar Link to cb Profile

17 years 9 months ago #16132 by devdan
Replied by devdan on topic Re:Avatar Link to cb Profile
lennox wrote:

Mmm, i hope this is working for you, the code is ripped of my live site (running on CBrc1)

It's a hacked/changed file, so line numbers are gone.
open View.php
(components/joomlaboard/view.php)

Search for this structure of code: (like this)
[code:1]}
}
else {
$avatar=$userinfo->avatar;
if ($avatar != '') {[/code:1]

and place this line Before it

[code:1]$msg_avatar = '<span class="sb_avatar"><a href="index.php?option=com_comprofiler&task=userProfile&user='.$fmessage->userid.'"><img src="'.$imgpath.'" border="0" alt="'.$fmessage->userid.'" /></a></span>';
[/code:1]

Backup you're file first!
I hope it will work for you!
Goodluck :)


Up goes your karma :) Thanks for all your help within the boards you are proven to be really usefull... Hack works Perfect :P

Please Log in to join the conversation.

17 years 9 months ago #16150 by pateta12
Replied by pateta12 on topic Re:Avatar Link to cb Profile
@Lennox

I also tried this hack last night and worked great.
Here is some karma for you for all your help.

:laugh:

Please Log in to join the conversation.

17 years 6 months ago #21022 by mischa
Replied by mischa on topic Re:Avatar Link to cb Profile
lennox wrote:

Mmm, i hope this is working for you, the code is ripped of my live site (running on CBrc1)

It's a hacked/changed file, so line numbers are gone.
open View.php
(components/joomlaboard/view.php)

Search for this structure of code: (like this)
[code:1]}
}
else {
$avatar=$userinfo->avatar;
if ($avatar != '') {[/code:1]

and place this line Before it

[code:1]$msg_avatar = '<span class="sb_avatar"><a href="index.php?option=com_comprofiler&task=userProfile&user='.$fmessage->userid.'"><img src="'.$imgpath.'" border="0" alt="'.$fmessage->userid.'" /></a></span>';
[/code:1]

Backup you're file first!
I hope it will work for you!
Goodluck :)



Hi there,

Sorry for barking-up this thread after such lenght of time. I have tried this hack and it's working like a charm, except that it doesn't show the SEF-URL. I've tried to change it with the use of 'sefRelToAbs' but I can't get it working...

I use standard Joomla SEF integration.

Does someone (lennox?) know how to make this hack SEF-compatible???



Thanks in advance...


EDIT BY MISCHA:

Found the right sysntaxis rightnow. It's working flawless.. Here's the new line:

[code:1] $msg_avatar = '<span class="sb_avatar"><a href='.sefRelToAbs('index.php?option=com_comprofiler&task=userProfile&user='.$fmessage->userid.'').'><img src="'.$imgpath.'" border="0" alt="'.$fmessage->userid.'" /></a></span>';
[/code:1]



Greetz,

Mischa.

Post edited by: mischa, at: 2006/09/19 01:35

Projectmember of the BirthDays Module Project

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.199 seconds

Facebook Twitter LinkedIn