# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.model.php +++ components/com_comprofiler/plugin/user/plug_cbsimpleboardtab/cb.simpleboardtab.model.php @@ -127,6 +127,12 @@ $userDetails = $this->getUserSettings( $user, $forum, $supportsDbRanks ); if ( ( isset( $userDetails->posts ) ) && $userDetails->posts != 0 ) { + if ( class_exists( 'KunenaTemplate' ) ) { + $kunenaTemplate = KunenaTemplate::getInstance(); + } else { + $kunenaTemplate = null; + } + if ( $forum->config['showranking'] ) { $uIsAdm = isModerator( $user->id ); $uIsMod = $userDetails->moderator; @@ -173,7 +179,12 @@ $pathImage = $pathImage . $this->params->get( 'TemplateRank', '/template/default/images' ); $userRank = $userDetails->getRank(); $rText = $userRank->rank_title; - $rImg = $pathImage . '/ranks/' . $userRank->rank_image; + + if ( $kunenaTemplate ) { + $rImg = $_CB_framework->getCfg( 'live_site' ) . '/' . $kunenaTemplate->getRankPath( $userRank->rank_image ); + } else { + $rImg = null; + } } else { $rText = null; $rImg = null; @@ -181,12 +192,22 @@ if ( ( $userDetails->rank == 0 ) && $uIsMod ) { $rText = CBTxt::T( 'Moderator' ); - $rImg = $pathImage . '/ranks/rankmod.gif'; + + if ( $kunenaTemplate ) { + $rImg = $_CB_framework->getCfg( 'live_site' ) . '/' . $kunenaTemplate->getRankPath( 'rankmod.gif' ); + } else { + $rImg = $pathImage . '/ranks/rankmod.gif'; + } } if ( ( $userDetails->rank == 0 ) && $uIsAdm ) { $rText = CBTxt::T( 'Administrator' ); - $rImg = $pathImage . '/ranks/rankadmin.gif'; \ No newline at end of file + + if ( $kunenaTemplate ) { + $rImg = $_CB_framework->getCfg( 'live_site' ) . '/' . $kunenaTemplate->getRankPath( 'rankadmin.gif' ); + } else { + $rImg = $pathImage . '/ranks/rankadmin.gif'; + } \ No newline at end of file } if ( $forum->config['rankimages'] && $rImg ) {