create a module fo user profile

More
7 years 4 months ago - 7 years 4 months ago #36223 by h007
hi dear admin

i want to create a module for user profile that it will show user avatar , user point , and etc...
but i have problem with that.

i want to show a part of firs tab of user profile in a module

please check default file in tmple folder, you will get what i mean

could you help me?
tnx
Attachments:
Last edit: 7 years 4 months ago by h007.

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

More
7 years 4 months ago #36225 by nordmograph
Hello

Thers is no profile feature in AltaUP such as avatar etc...
If you want ta profile feature we recommend you use a specific app such as Community Buider (free) or EasySocial or Jomsocial.
We have specific plugins for AUP and Jomsocial to display user points , medals, ranks and activities.
If you really need to set that in a module you could simply get the CB or jomsocial plugin and copy past the code to your module.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

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

More
7 years 4 months ago #36227 by h007
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 />"; }

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

More
7 years 4 months ago #36502 by sodaback
i agree with this idea. i dont want to create any more heavy database profiling system on my joomla. I just basically need a module that just shows profile options and status in one. Just like a joomsocial HELLO ME ... Possible .. just need to integrate the fields .. but how?

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

Time to create page: 0.335 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.