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

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

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

More
13 years 3 months ago - 13 years 3 months ago #11 by arsago
Replied by arsago on topic Re: 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;
Last edit: 13 years 3 months ago by arsago.

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

More
12 years 8 months ago - 12 years 8 months ago #12 by CheechDogg

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

}
}
?>

[img
Find me on Facebook.

CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3
Last edit: 12 years 8 months ago by CheechDogg.

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

More
12 years 8 months ago #13 by Matias
Replied by Matias on topic Re: Today's visitors module
*uhh* This module needs to be updated to Joomla 1.5/1.6.. Now it needs legacy mode enabled in J1.5..

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

More
12 years 8 months ago #14 by misterpat

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.

More
12 years 8 months ago #15 by xillibit
This is relatively easy, we need to find a way to don't have this extra query in the module..

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: misterpat

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

More
12 years 8 months ago #16 by CheechDogg
So there is a problem with the Module then? What is the extra query that is causing this?

[img
Find me on Facebook.

CAG Clan 1st and 3rd Person Shooter Clan on XBOX 360 & PS3

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

More
12 years 8 months ago #17 by xillibit
In fact, i want to remove the query which is in the module to use kunena things, i need to check if it's really doable

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.

Time to create page: 0.505 seconds