|
|
Re:Avatar Link to cb Profile
|
|
Date: 2006/06/28 11:51
|
By: devdan
|
Status: User
|
|
|
Karma: 4  
|
|
Fresh Joomlapolitan  | Posts: 16 |   | |
|
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: | }
}
else {
$avatar=$userinfo->avatar;
if ($avatar != '') {
|
and place this line Before it
| Code: | $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>';
|
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
|
|
The topic has been locked. |
|
|
|
Re:Avatar Link to cb Profile
|
|
Date: 2006/06/28 21:24
|
By: pateta12
|
Status: User
|
|
|
Karma: 5  
|
|
Senior Joomlapolitan  | Posts: 61 |   | |
|
@Lennox
I also tried this hack last night and worked great. Here is some karma for you for all your help.
|
|
The topic has been locked. |
|
|
|
Re:Avatar Link to cb Profile
|
|
Date: 2006/09/17 04:29
|
By: mischa
|
Status: User
|
|
|
Karma: 7  
|
|
Senior Joomlapolitan  | Posts: 78 |   | |
|
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: | }
}
else {
$avatar=$userinfo->avatar;
if ($avatar != '') {
|
and place this line Before it
| Code: | $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>';
|
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: | $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>';
|
Greetz,
Mischa.
Post edited by: mischa, at: 2006/09/19 01:35 Projectmember of the BirthDays Module Project
|
|
The topic has been locked. |
|
|