Avatar Link to cb Profile

14 years 8 months ago #4782 by hedingsi
Avatar Link to cb Profile was created 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.

Please Log in to join the conversation.

14 years 8 months ago #4798 by lennox
Replied by lennox on topic Re:Avatar Link to cb Profile
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

Please Log in to join the conversation.

14 years 8 months ago #4799 by lennox
Replied by lennox on topic Re:Avatar Link to cb Profile
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

Please Log in to join the conversation.

14 years 8 months ago #4803 by hedingsi
Replied by hedingsi on topic Re:Avatar Link to cb Profile
thank you lennox

it workd like a charm

your karma goes up;)

Please Log in to join the conversation.

14 years 8 months ago #4810 by lennox
Replied by lennox on topic Re:Avatar Link to cb Profile
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

Please Log in to join the conversation.

14 years 5 months ago #10977 by eTe
Replied by eTe on topic Re:Avatar Link to cb Profile
Is there a way to do the Username clickable aswell?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.434 seconds

Facebook Twitter LinkedIn