Avatar Link to cb Profile

13 years 9 months ago #4782 by hedingsi
Is there a way to make the Joomlaboard Avatar link to the CB Profile? this is realy a featur that i miss. i searched for hours on the internet for this but did not find anything.
13 years 9 months ago #4798 by lennox
yes i've got the solution for you my friend.
But i'm not at home right now!
Post it when i'm at home! Oke?


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

13 years 9 months ago #4799 by lennox
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 :)


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

13 years 9 months ago #4803 by hedingsi
thank you lennox

it workd like a charm

your karma goes up;)
13 years 9 months ago #4810 by lennox
Thank you! I hope the CB team and the joomlapolis citizens will produce ALL the plugins with clickable avatars!


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

13 years 6 months ago #10977 by eTe
Is there a way to do the Username clickable aswell?
Moderators: beatnantkrileon
Time to create page: 0.401 seconds
Facebook Twitter Google LinkedIn