Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 Next > End >>
Re:Avatar Link to cb Profile
Date: 2006/06/28 11:51 By: devdan Status: User  
Karma: 4  
Fresh Joomlapolitan

Posts: 16
graphgraph
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
Click here to see the profile of this user 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
graphgraph
@Lennox

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

Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user The topic has been locked.

<< Start < Prev 1 2 3 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login