Xen-TR Who Has Visited

Xen-TR Who Has Visited 2.6.0

No permission to download
please add feature to sort by username.
I figured out how to do this.

Edit the following file from the add-on:

library >> XenTrCom >> WhoHasVisited >> Model >> XWhoHasVisited.php

Look for this code (it's on line 40 of my file)...
Code:
$WHVArray = $db->fetchAll("SELECT user_id FROM xf_user as user WHERE last_activity BETWEEN '$datemin' AND '$date' $bannedExcluded $userPrivacy ORDER BY last_activity DESC");

At the end of the line, change......
ORDER BY last_activity DESC");
to
ORDER BY username");
 
I figured out how to do this.

Edit the following file from the add-on:

library >> XenTrCom >> WhoHasVisited >> Model >> XWhoHasVisited.php

Look for this code (it's on line 40 of my file)...
Code:
$WHVArray = $db->fetchAll("SELECT user_id FROM xf_user as user WHERE last_activity BETWEEN '$datemin' AND '$date' $bannedExcluded $userPrivacy ORDER BY last_activity DESC");

At the end of the line, change......
ORDER BY last_activity DESC");
to
ORDER BY username");
thanks @viper357 (y)
 
Any idea on how to move this up on the sidebar? its currently sitting all the way on the bottom of my sidebar.
 
Did you use widget framework?

Than there is an optionin the widget for the order of display.
But you have arrange all other widgets accordingly.

Screenshot_2016-06-23-12-20-10-945.webp
 
I just installed this fresh. It is not visible in XF 1.5

Are there any other settings I have to do?
 
Hmm I use the widget framework, and have it use the xen_tr_com_who_has_visited template. But you might have to add it in manually if it's not showing for you. Like in page_container use <xen:include template="xen_tr_com_who_has_visited" />

:)
 
Top Bottom