<?php global $_CB_framework, $_CB_database, $ueConfig, $mainframe, $_SERVER;
$user_id = cbGetParam( $_REQUEST, 'user', null );
$myId = $_CB_framework->myId();
$cbUser =& CBuser::getInstance( $myId );
if ( ! $cbUser ) {
$cbUser =& CBuser::getInstance( null );
}
$user = $cbUser->getUserData();
if ( ! $user ) {
return;
}
$query = "SELECT username FROM jos_users WHERE id = ". (int)
$_CB_framework->myId();
$_CB_database->setQuery( $query );
$username = htmlspecialchars( cbUnHtmlspecialchars( $_CB_database->loadResult() ) );
if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
if ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed!';
return;
}
include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );
} else {
if ( ! file_exists( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed!';
return;
}
include_once( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' );
}
cbimport( 'cb.database' );
$cb_groups = $cbUser->getTab( '31' );
?>
<a href="#" id="contentlink2" rel="subcontent2">My Groups</a>
<DIV id="subcontent2" style="position:absolute; visibility: hidden; border: 3px solid black; -moz-border-radius: 8px; border-radius: 8px; background-color: #edeff4; filter:alpha(opacity=97); -moz-opacity:0.97; -khtml-opacity: 0.97; opacity: 0.97; width: 400px; height: auto; overflow: scroll; padding: 4px; z-index:99;">
<?php echo $cb_groups ?>
<div align="right"><a href="javascript:dropdowncontent.hidediv('subcontent2')">Close</a></div>
</DIV>
<script type="text/javascript">
//Call dropdowncontent.init("anchorID", "positionString", glideduration, "revealBehavior") at the end of the page:
dropdowncontent.init("contentlink2", "right-top", 350, "click")
</script>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.