Community Builder basic support (users created and deleted in the forum are created and deleted in Community Builder) + advanced integration (avatars, profile fields and connections synchronization, PM links in CB profile and login module, phpBB signature field type, posts count and rank image in CB status area), user's forum posts tab
I've tested all this with success, except the PM links in login module, as I'm not using CB login module, but JFBConnect one, and that one doesn't show the message count...
So, I think best would be to have a "lite" JFBConnect module, to just handle the FB logins, and the usual joomla logins handled by CB login... also this will allow for better styling, placing the connect with FB button at the top of site...
Sorry I can't capture any screenshot now, although I don't think it would be too helpful.
Thanks
<?php } ###################### end login form #####################################
else
{ # show logout
?>
<?php
# Show their FB avatar (if desired), or give them the option to link accounts
if ($fbClient->user)
{
if($params->get("enableProfilePic"))
{
$picHeightParam = $params->get("profileHeight");
$picWidthParam = $params->get("profileWidth");
$picHeight = $picHeightParam != "" ? 'height="'.$picHeightParam.'px"' : "";
$picWidth = $picWidthParam != "" ? 'width="'.$picWidthParam.'px"' : "";
$linked = ($params->get("linkProfile") == 1)?"true":"false";
$fbLogo = ($params->get("facebookLogo") == 1)?"true":"false";
$fbUid = $fbClient->user;
?>
<div id="profile-pic">
<fb:profile-pic uid="<?php echo $fbUid;?>"
size="<?php echo $params->get('picQuality'); ?>"
<?php echo $picHeight;?>
<?php echo $picWidth;?>
linked="<?php echo $linked;?>"
facebook-logo="<?php echo $fbLogo;?>"
/>
</div>
<?php
}
}
?>
<div>
<?php echo JText::_("Welcome")." ".$user->get('name') ?>
</div>
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('Logout') ?>" onclick="javascript:logout_button_click()" />
<?php
if (!$fbClient->user) # show facebook connect button to join accounts
{ ?>
<div class="fb_connect_user"><?php echo JText::_('Connect User'); ?></div>
<fb:login-button onlogin="javascript:fb_login_button_click();"></fb:login-button>
<?php }
?>
<?php
} # end logout
?>
<?php } ###################### end login form #####################################
else if(false)
{ # show logout
// get new PMs count
$total_pms = 0;
$fuser = $mainframe->getUserState('jmrphpbb_user');
$last_updated = $mainframe->getUserState('jmrphpbb_user_updated');
if (!isset($fuser['user_new_privmsg']) || ((time() - @$last_updated) > $this->params->get('show_pms_update_time')*60)) {
// load phpBB user
require_once(JPATH_SITE.DS.'components'.DS.'com_jmrphpbb'.DS.'helper.php');
$this->fdb =& JmrphpbbHelper::getForumDB();
$query = 'SELECT * FROM `#__users` WHERE `username_clean` = '.$this->fdb->quote(JString::strtolower(JFactory::getUser()->username));
$this->fdb->setQuery($query);
$fuser = $this->fdb->loadAssoc();
JmrphpbbHelper::_restoreDB('j');
// prevent next loadings of user absent in forum
if (!isset($fuser['user_id'])) {
$fuser = array('user_new_privmsg' => '0');
}
$mainframe->setUserState('jmrphpbb_user', $fuser);
$mainframe->setUserState('jmrphpbb_user_updated', time());
}
$total_pms = $fuser['user_new_privmsg'];
// show data
$link = JRoute::_('index.php?option=com_jmrphpbb&jview=user&i=pm&folder=inbox&Itemid='.$this->params->get('Itemid'));
$this->params->get('show_pms_update_time')
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.