Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question MyBlog / Avatars

More
15 years 6 months ago #68137 by zigzag
MyBlog / Avatars was created by zigzag
Does anyone know how to get MyBlog to show avatars from Kunena, it used to pull them from fireboard but hasn't been updated for Kunena, this is the code that pulls the avatar:
Code:
class MYFireboardAvatar extends MYAvatarBase { // Fireboard configuration file var $_config = ''; // Fireboard configurations var $_version = ''; var $_src = ''; function _init() { // Test if this is prior to 1.0.5 if( file_exists( $this->_config ) ) { // We assume it might be version 1.0.5 and above require_once( $this->_config ); global $fbConfig; $this->_config = new fb_config(); $this->_config->load(); } else { $this->_config = JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_fireboard' . DS . 'fireboard_config.php'; include($this->_config); $this->_version = $fbConfig['version']; $this->_src = $fbConfig['avatar_src']; } } function _loadVars() { if( !is_object( $this->_config ) ) { require( $this->_config ); global $fbConfig; $obj = new stdclass(); $obj->avatar_src = $fbConfig['avatar_src']; $obj->version = $fbConfig['version']; $this->_config = $obj; } } // Returns path to image function get() { $this->_config = JPATH_ROOT . DS . 'components' . DS . 'com_fireboard' . DS . 'sources' . DS . 'fb_config.class.php'; $this->_init(); $this->_loadVars(); if($this->_config->avatar_src == 'fb') { // Get fireboard avatar path $query = "SELECT `avatar` FROM #__fb_users WHERE `userid`='{$this->_user}'"; $db =& JFactory::getDBO(); $db->setQuery( $query ); $relativePath = $db->loadResult(); if($relativePath) { $avatar = ''; if($this->_config->_version == '1.0.2' || $this->_config->_version == '1.0.3') { // Older versions $avatar = '/components/com_fireboard/avatars/' . $relativePath; } else { // Newer versions $avatar = '/media/kunena/attachments/legacy/avatars/' . $relativePath; } // Check if avatar file really exists. if( JFile::exists( JPATH_ROOT . $avatar ) ) { return $this->display( rtrim( JURI::root() , '/' ) . $avatar); } }

Please Log in or Create an account to join the conversation.

More
15 years 6 months ago #68173 by sozzled
Replied by sozzled on topic MyBlog / Avatars
What is "MyBlog"? :S

Fireboard needed J! 1.0. There is no support for Joomla 1.0 ... anywhere Fireboard is dead. Most software written for Fireboard will not work with Kunena 1.5 and it definitely will not work with K 1.6.

Please Log in or Create an account to join the conversation.

More
15 years 6 months ago #68180 by zigzag
Replied by zigzag on topic MyBlog / Avatars
MyBlog is a 1.5x component for user blogs, it's made by the same people that make JomSocial. One of the options is for bloggers to show their forum avatar on their blog which it pulls from a number of different forum software. One of the options is fireboard which as you say is dead but I wondered if there was a way to change the code so that it would extract the avatar from Kunena instead. I asked the makers but they said maybe in the next major release :(

Please Log in or Create an account to join the conversation.

Time to create page: 0.218 seconds