Holas de nuevo, el backend completamente limpio, lo de instalar el componente creo que igual lo tengo que acabar haciendo, pero, he encontrado los responsables de esta "cosa tan rara" y son el profile.index.php y otros dos archivos (defines.php y config.php) entre todos trato de llegar a "un acuerdo", y casi lo consigo lo unico que las imagenes y algunas opciones del perfil no las carga, pero ya es un progreso.
Aquí te pongo en Spoiler lo que viene en cada archivo (son bastante cortos):
Config.php:
Advertencia: Spoiler!<?php
/* Alphauserpoints Support Configuation
*/
//Enable AUP
$aup_enable = 1; // 1 = show ... 0 = off
//AUP Buy Points
//index.php?option=com_alphauserpoints&view=buypoints
$aup_buypoints = 1; // 1 = show ... 0 = off
$aup_buypointsItemID = 84; // ItemID from Joomla! menu Link created
//AUP Account
//index.php?option=com_alphauserpoints&view=account
$aup_account = 1; // 1 = show ... 0 = off
$aup_accountItemID = 85; // ItemID from Joomla! menu Link created
//User List
//index.php?option=com_alphauserpoints&view=users
$aup_userlist = 1; // 1 = show ... 0 = off
$aup_userlistItemID = 87; // ItemID from Joomla! menu Link created
//AUP Donate Points
//index.php?option=com_alphauserpoints&view=user2userpoints
$aup_donatepoints = 1; // 1 = show ... 0 = off
$aup_donatepointsItemID = 86; // ItemID from Joomla! menu Link created
?>
Defines.php:
Advertencia: Spoiler!<?php
defined('_JEXEC') or die('Restricted access');
// Some Configuration Settings
$showfriendtotal=0;
// Profile Index Variable Definitions
$profile = JArrayHelper::toObject ( $data->profile );
$profile->largeAvatar = $user->getAvatar();
$karmaImgUrl = CUserPoints::getPointsImage($user);
$report = new CReportingLibrary();
$reportHTML = $report->getReportingHTML( JText::_('CC REPORT BAD USER') , 'profile,reportProfile' , array( $user->id ));
// Get Alphauserpoints information
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
$aup_points =& JFactory::getDBO();
if ( !$api_AUP == '' ) {
$total_alphauserpoints = 'SELECT points FROM jos_alpha_userpoints WHERE userid = ' . $user->id;
$aup_points->setQuery($total_alphauserpoints);
$aup_count = $aup_points->loadResult();
}
// Status Updates Defines
$my = & JFactory::getUser ();
$user = & CFactory::getActiveProfile ();
$userModel = & CFactory::getModel ( 'user' );
CFactory::load ( 'libraries', 'messaging' );
// get how many unread message
$inboxModel = & CFactory::getModel ( 'inbox' );
$filter['user_id'] = $my->id;
$unread = $inboxModel->countUnRead( $filter );
// get how many pending connection
$friendModel = & CFactory::getModel ( 'friends' );
$pending = count( $friendModel->getPending( $my->id ) );
// End Status Updates Defines
// End Profile Index Variable Definitions
?>
Y por ultimo el Profile.index.php que lo divido en dos partes:
Primera parte (donde incluye los otros 2)
Advertencia: Spoiler!include("components/com_community/templates/default/includes/defines.php");
include("components/com_community/templates/default/includes/config.php");
Segunda parte (donde incluye configuraciones de Alphauserpoints)
Advertencia: Spoiler! <!-- Display AlphaUserPoints Totals if installed -->
<?php if ( file_exists($api_AUP) AND $aup_enable >= 1) {
echo "<td><div id='profile-stats-number' align='center'>". $aup_count . "</div></td>";
} else {
echo "<td><div id='profile-stats-number' align='center'>". $user->_points . "</div></td>";
}?>
<!-- End AlphaUserPoints Totals if installed -->
</tr>
<tr>
<td><div id="profile-stats-text" align="center"><?php echo JText::_('CC FRIENDS'); ?></div></td>
<td width="25"> </td>
<td width="50"><div id="profile-stats-text" align="center"><?php echo JText::_('CC skoshi STATS STREAM'); ?></div></td>
<td width="25"> </td>
<!-- Display AlphaUserPoints Totals if installed -->
<?php if ( file_exists($api_AUP) AND $aup_enable >= 1) { ?>
<td width="50"><div id="profile-stats-text" align="center"><?php echo JText::_('CC skoshi AUP POINTS'); ?></div></td>
<?php } else { ?>
<td width="50"><div id="profile-stats-text" align="center"><strong><?php echo JText::_('CC skoshi STATS POINTS'); ?></strong></div></td>
<?php } ?>
<!-- End Display AlphaUserPoints Totals if installed -->
Pd: he borrado la Parte 1 de Profile.index.php, pero el problema es que las imagenes no cargan, lo demas lo he toquiteado pero de mal porque no ha dado ningun resultado...
Aqui dejo los archivos por si sirven de algo...
Archivo Adjunto:
Nombre del Archivo:
Descargas.rarTamaño del Archivo: 4158