- Posts: 25
- Thank you received: 4
Kunena 6.3.0 released
The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] 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 and issues discovered during the last development stages of K 6.3
The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.
Question Today's visitors module
peetree21 wrote: is there a way to link it to the jomsocial profile instead of the default kunena profile?
Yes, find in mod_membersonlinetoday.php at line 48
$link = 'index.php?option=com_kunena&task=showprf&func=fbprofile&userid=ID'. $row->id;
and replace with
$link = 'index.php?option=com_comprofiler&task=userProfile&user='. $row->id;
Please Log in or Create an account to join the conversation.
- CheechDogg
- Offline
- Premium Member
arsago wrote: I made module for joomla 1.5 "Members Online Today" based on old joomla 1.0 module most recent online. Publish it on position Kunena botom and voila!
Feel free to download the module and use or modify it to your own needs.
p.s. Sorry for my bad English
Dear arsago,
I modified the php file and made it looked less cluttered by adding some spaces and a comma to be able to separate each members profile link for the others. I hope you don't mind my friend. Below is the php file to replace the old one if anyone is interested.
<?php
/**
* @version 1.0
* @package Members Online Today
* @author Arsic Goran {@link www.srbija-net.com }
* @author Created on 16-Jan-2011
* @license www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
//-- No direct access
defined('_JEXEC') or die('Restricted access');
global $mosConfig_list_limit, $mosConfig_offset;
$limit = $mainframe->getUserStateFromRequest( "viewlistlimit", 'limit', $mosConfig_list_limit );
$limitstart = $mainframe->getUserStateFromRequest( "view{$option}", 'limitstart', 0 );
$name_username = $params->get( 'name_username', "username" );
$time_server_local = $params->get( 'time_server_local', "Website locale" );
$db =& JFactory::getDBO();
$db->setQuery($query);
$result = null;
$query = "SELECT DISTINCT a.id, a.name, a.username, a.lastvisitDate, a.usertype, a.block, a.gid, b.time"
. "\n FROM #__users AS a"
. "\n LEFT JOIN #__session AS b"
. "\n ON a.id = b.userid"
. "\n WHERE lastvisitDate >= CURDATE()"
. $and
. "\n ORDER BY b.time DESC, a.lastvisitDate DESC $today";
$db->setQuery( $query, $pageNav->limitstart, $pageNav->limit );
$rows = $db->loadObjectList();
foreach ( $rows as $row ) {
{
$link = 'index.php?option=com_kunena&task=showprf&func=fbprofile&userid=ID'. $row->id;
$username = '<a href="'. $link .'" >'. $row->username .'</a> , ';
?>
<tr>
<td>
<?php
if ( $name_username == "Name") {
echo $name;
} else {
echo $username;
}
?>
</td>
</tr>
<?php
}
}
?>
CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Matias wrote: *uhh* This module needs to be updated to Joomla 1.5/1.6.. Now it needs legacy mode enabled in J1.5..
How hard would this be? Many of us, including me, are looking for something like this.
Please Log in or Create an account to join the conversation.
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
- CheechDogg
- Offline
- Premium Member
CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
Please Log in or Create an account to join the conversation.
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.