Kunena 6.3.2 released

The Kunena team has announce the arrival of Kunena 6.3.2 [K 6.3.2] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 and issues discovered during the last development stages of K 6.3
Note: Please go to the Kunena Dashboard after an upgrade so that the Kunena database tables are also updated.

This category contains miscellaneous, uncategorised third-party extensions (e.g. JomSocial, Community Builder, etc.) relating to older versions of Kunena that are no longer supported.

This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.

The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, the ideas in these topics may not work with later versions and, for that reason, the topics are locked.

Question embed AlphaUserPoints profile tabs into Kunena profile tabs.??

More
13 years 7 months ago #1 by alhoseany
hi, i have to start like everybody else here by saying a big thank you for this great components that you made it available for joomla community for free.

i use kunena and AUP and i like the integration but i would like the user to have only one profile not 2 profiles (AUP profile and kunena profile).

i decided that having kunena profile as the only user profile is better because my website is based on the forum completely. i dont use any other user management comp like CB and i dont want to.want to keep it simple. just the forum and AUP functionality.

i found the 2 files that create the profile of AUP and the profile of kunena. and i was able to embed the user tabs from the AUP profile into the user tabs of the kunena profile. but i only get empty tabs from AUP.

this means that last activity tab for example. gives only the table columns names but with no data .

i check the code again to find that AUP and kunena use both this statement to retrieve data ($this->$variable)
i am not php professional but i think this is the problem. AUP and kunena call the same class or object in one php page.

summary:
i want to embed the user tabs from AUP profile into the kunena user tabs profile.

profile file in AUP "JOOMLA\components\com_alphauserpoints\views\account\tmpl\default.php"

profile file in kunena "JOOMLA\components\com_kunena\template\default\profile\usertab.php"

to add a new tab in kunena profile:
Code:
<dt class="open"><?php echo JText::_('AUP_LASTACTIVITY'); ?></dt> <dd style="display: none;"> tab content---here </dd>

tab i want to include from AUP profile:
Code:
echo $this->pane->startPanel(JText::_( 'AUP_LASTACTIVITY' ), "account-panel-activities" ); if ( $this->params->get( 'num_item_activities' )=='all' ) { echo '<p>'.$this->pagination->getResultsCounter().'</p>'; } ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="left" width="15%"> <?php echo JText::_('AUP_DATE'); ?> </td> <td class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="left" width="25%"> <?php echo JText::_('AUP_ACTION'); ?> </td> <td class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="center" width="5%"> <?php echo JText::_('AUP_POINTS'); ?> </td> <td class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="center" width="15%"> <?php echo JText::_('AUP_EXPIRE'); ?> </td> <td class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="left"> <?php echo JText::_('AUP_DETAIL'); ?> </td> <td class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="center" width="5%"> <?php echo JText::_('AUP_APPROVED'); ?> </td> </tr> <?php if ( $this->rowslastpoints ) { $k = 0; foreach ($this->rowslastpoints as $lastpoints) { ?> <tr> <td class="sectiontableentry<?php echo $k; ?><?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="left" width="15%"> <?php echo JHTML::_('date', $lastpoints->insert_date, JText::_('DATE_FORMAT_LC2') ); ?> </td> <td class="sectiontableentry<?php echo $k; ?><?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="left" width="25%"> <?php echo JText::_($lastpoints->rule_name); ?> </td> <td class="sectiontableentry<?php echo $k; ?><?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="center" width="5%"> <?php echo $lastpoints->points; ?> </td> <td class="sectiontableentry<?php echo $k; ?><?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="center" width="15%"> <?php if ( $lastpoints->expire_date == $nullDate ) { echo '-'; } else { echo JHTML::_('date', $lastpoints->expire_date, JText::_('DATE_FORMAT_LC') ); } ?> </td> <td class="sectiontableentry<?php echo $k; ?><?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="left"> <?php switch ( $lastpoints->plugin_function ) { case 'sysplgaup_dailylogin': echo JHTML::_('date', $lastpoints->datareference, JText::_('DATE_FORMAT_LC1') ); break; case 'plgaup_getcouponcode_vm': case 'plgaup_alphagetcouponcode_vm': case 'sysplgaup_buypointswithpaypal': if ( $this->referreid!=@$_SESSION['referrerid'] ) { echo ''; } else echo $lastpoints->datareference; break; default: echo $lastpoints->datareference; } ?> </td> <td class="sectiontableentry<?php echo $k; ?><?php echo $this->params->get( 'pageclass_sfx' ); ?>" align="center" width="5%"> <?php $img = ( $lastpoints->approved )? 'tick.png' : 'publish_x.png' ; $alt = ( $lastpoints->approved )? 'AUP_APPROVED' : 'AUP_PENDINGAPPROVAL' ; ?> <img src="components/com_alphauserpoints/assets/images/<?php echo $img; ?>" border="0" title="<?php echo JText::_( $alt ); ?>" alt="<?php echo JText::_( $alt ); ?>" /> </td> </tr> <?php $k = 1 - $k; } } ?> </table>

thanks for your help.

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

Time to create page: 0.348 seconds