i upgrade the last version of this mod to work with Kunena.
by the way i make also a specific plugin for create fields in CB, compatible withe the old fields, you can download it here :
Code:
##############################################################
## MOD Title: Additional Info icons with Community Builder
## MOD Author (Original For Fireboard 1.0.4, J!1.0 and J!1.5): rockandchelle http://www.bestofjoomla.com/component/option,com_kunena/func,fbprofile/task,showprf/Itemid,38/userid,5911/
## MOD Author (Upgrade For Fireboard 1.0.5 RC2 and J!1.5): Baboon http://www.bestofjoomla.com/component/option,com_kunena/func,fbprofile/task,showprf/Itemid,38/userid,13316/
## MOD Author (Upgrade For Kunena 1.0.8, CB 1.2 and J!1.5): JoomlaRuleZ http://www.joomlarulez.com
## MOD Description: Additional Info icons with Community Builder.
## MOD Version: 2.0
## Installation Level: Intermediate
## Installation Time: 3 Minutes
## Files To Edit: 1
## components/com_kunena/template/default/view.php
## Plugin to install in CB : 1
## plug_addinfokuena_1.0.zip
##############################################################
## For Security Purposes, Please Check: http://www.joomlarulez.com
## For the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your Kunena Forum.
##############################################################
## Author Notes:
##
## I have tested this MOD whit Kunena 1.0.8, CB 1.2, Joomla 1.5.8 and MySQL Database 5.0.27, Php 5.2.0
##
## All the files join are already modifiate so you can copy them with no need to modifiate by yourself,
## but if you hard code your own file you have to do yourself the modification list above.
##
###############################################################
## IMPORTANT !!!!! Before Adding This MOD To Your Forum, You Should Back Up you DATABASE and All Files Related To This MOD
##############################################################
## Instructions Before modifiate file and upload:
##
## Install plug_addinfokuena_1.0.zip in CB
##
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
## Copyright: ©2009 Additional Info icons with Community Builder 2.0
##############################################################
## MOD History:
##
## 2007-09-14 - Version 1.0
## - First Version Public For Fireboard 1.0.4, J!1.0 and J!1.5
## http://www.bestofjoomla.com/component/option,com_kunena/Itemid,38/func,view/id,21793/catid,58/limit,10/limitstart,0/#22689
## 2008-12-24 - Version 1.1
## - Version Public For Fireboard 1.0.5 RC2 and J! 1.5
## http://www.bestofjoomla.com/component/option,com_kunena/Itemid,38/func,view/catid,58/id,21793/limit,10/limitstart,80/#63167
## 2009-02-28 - Version 2.0
## - Version Public For Kunena 1.0.8, CB 1.2 and J!1.5
## http://www.joomlarulez.com
##############################################################
## IMPORTANT !!!!! Before Adding This MOD To Your Forum, You Should Back Up you DATABASE and All Files Related To This MOD
##############################################################
#
#-----[ Open ]------------------------------------------
#
components/com_kunena/template/default_ex/view.php
#
#-----[ FIND near line 581]------------------------------------------
#
$database->setQuery("SELECT a.*,b.name,b.username,b.gid FROM #__fb_users as a LEFT JOIN #__users as b on b.id=a.userid where a.userid='$fmessage->userid'"«»);
$database->loadObject($userinfo);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Start Mod by rockandchelle, baboon and JoomlaRuleZ to add community builder additional info
if ($fbConfig->fb_profile == "cb" && $fbConfig->fb_profile && $fmessage->userid > 0)
{
unset($cbinfo);
$database->setQuery("SELECT * FROM #__comprofiler where user_id='$fmessage->userid'");
$database->loadObject($cbinfo);
if ($cbinfo->cb_gender != '') {
$gender = $cbinfo->cb_gender;
if (strcasecmp($gender,"male")==0) {
$userinfo->gender = 1;
}
if (strcasecmp($gender,"female")==0) {
$userinfo->gender = 2;
}
}
if ($cbinfo->cb_personaltext != '') {
$userinfo->personalText = $cbinfo->cb_personaltext;
}
if ($cbinfo->cb_icq != '') {
$userinfo->ICQ = $cbinfo->cb_icq;
}
if ($cbinfo->cb_location != '') {
$userinfo->location = $cbinfo->cb_location;
}
if ($cbinfo->cb_birthday != '') {
$userinfo->birthdate = $cbinfo->cb_birthday;
if (strcasecmp($cbinfo->cb_showage,"no") == 0 ) {
$userinfo->birthdate = substr($cbinfo->cb_birthday,5,5);
}
}
if ($cbinfo->cb_aim != '') {
$userinfo->AIM = $cbinfo->cb_aim;
}
if ($cbinfo->cb_msn != '') {
$userinfo->MSN = $cbinfo->cb_msn;
}
if ($cbinfo->cb_yim != '') {
$userinfo->YIM = $cbinfo->cb_yim;
}
if ($cbinfo->cb_skype != '') {
$userinfo->SKYPE = $cbinfo->cb_skype;
}
if ($cbinfo->cb_gtalk != '') {
$userinfo->GTALK = $cbinfo->cb_gtalk;
}
if ($cbinfo->cb_websiteurl != '') {
$userinfo->websiteurl = $cbinfo->cb_websiteurl;
}
if ($cbinfo->cb_websitename != '') {
$userinfo->websitename = $cbinfo->cb_websitename;
}
}
// Start Mod by rockandchelle, baboon and JoomlaRuleZ to add community builder additional info
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM