tnx for reply
if you look at the mod_alphauserpoints_actual_points you find out that this module gets and shows the point of users, now i want to develop that,
and add avatar or .....
in fact firs tab of user profile in aup profile menu shows those i need to show in a module.
it seems to me that its not rational installing a huge component just for a module.
Code:
if ( $this->avatar ) {
?>
<div style="float:right;padding: 0 10px 0 10px;">
<?php echo $this->avatar ; ?>
</div>
<?php
}
echo '<h1>' . $this->myname . '</h1>';
if ( $this->params->get( 'showSystemProfileComplete', 1) && $this->referreid==@$_SESSION['referrerid'] ) {
echo _getProgressProfile( $this->userinfo, 'bar' ) . '<br /><br />';
}
echo "<b>" . JText::_('AUP_USERNAME') . " : " . $this->myusername . "</b><br />";
echo "<b>ID</b> : " . $this->referreid . "<br />";
$points_color = '';
if ($this->currenttotalpoints >0)
$points_color = 'badge badge-info';
if ($this->currenttotalpoints<0)
$points_color = 'badge badge-warning';
if ($this->currenttotalpoints==0)
$points_color = 'badge';
echo "<b>" . JText::_('AUP_MYPOINTS') . "</b> : ";
?>
<span class="<?php echo $points_color ; ?>"><?php echo getFormattedPoints( $this->currenttotalpoints ); ?></span>
<?php
if ( @$this->userrankinfo ) {
if ( $this->userrankinfo->image ) {
$pathimage = JPATH_COMPONENT . DS . 'assets/images/awards/large/'.$this->userrankinfo->image;
$image = new JImage( $pathimage );
$userrankimg = $image->createThumbs( array( '16x16' ), JImage::CROP_RESIZE, JPATH_COMPONENT .DS. 'assets'.DS.'images'.DS.'awards'.DS.'large'.DS.'thumbs' );
$userrankimg = myImage::getLivePathImage($userrankimg);
echo '<img src="'.$userrankimg.'" alt="" />';
}
echo " (". $this->userrankinfo->rank . ")";
}
echo "<br />";
echo "<b>" . JText::_('AUP_LASTUPDATE') . "</b> : " . JHTML::_('date', $this->lastupdate, JText::_('DATE_FORMAT_LC2') ) . "<br />";
echo "<b>" . JText::_('AUP_MEMBER_SINCE') . "</b> : " . JHTML::_('date', $this->userinfo->registerDate, JText::_('DATE_FORMAT_LC3') ) . "<br />";
echo "<b>" . JText::_('AUP_LAST_ONLINE') . "</b> : " . nicetime( $this->userinfo->lastvisitDate ) . "<br />";
if ( $this->referraluser!='' ) {
if ( $this->params->get( 'show_links_to_users', 1) ){
$_user_info = AlphaUserPointsHelper::getUserInfo ( $this->referraluser );
$linktoprofilreferral = getProfileLink( $_profilelink, $_user_info );
$linktoprofilreferral = "<a href=\"" . JRoute::_($linktoprofilreferral) . "\">" . $this->referralname . "</a>";
} else $linktoprofilreferral = $this->referralname;
echo "<b>" . JText::_('AUP_MYREFRERRALUSER') . "</b> : " ;
echo $this->referraluser . " (" . $linktoprofilreferral . ")";
echo "<br />";
}
if ( $this->params->get( 'show_links_to_users', 1) ){
echo "<b>" . JText::_('AUP_PROFILE_VIEWS') . "</b> : <span class=\"badge badge-info\">" . $profilviews . "</span><br />";
}