Who Has Visited In Last 24 Hours [Paid] [Deleted]

Easy fix.

In Listener.php

PHP:
public static function templatePostRender($templateName, &$content, array &$containerData, XenForo_Template_Abstract $template)
        {
                if ($templateName == 'online_list')
                {
                        $whoHasVisitedModel = XenForo_Model::create('WhoHasVisited_Model_WhoVisited');

                        if ($whoHasVisitedModel->canViewWhoVisited())
                        {
                                $params = $template->getParams();

                                $whoHasVisited = $whoHasVisitedModel->getWhoVisitedFromCache();
                                $whoHasVisited = $whoHasVisitedModel->prepareWhoHasVisited($whoHasVisited);

                                $params['whoHasVisited'] = !empty($whoHasVisited['users']) ? $whoHasVisited : array();

                                $whoVisited = $template->create('forum_list_who_visited_wrapper', $params);

                                $containerData['sidebar'] = $containerData['sidebar'] . $whoVisited;
                        }
                }
        }

Change to

PHP:
public static function templatePostRender($templateName, &$content, array &$containerData, XenForo_Template_Abstract $template)
        {
                if ($templateName == 'online_list')
                {
                        $whoHasVisitedModel = XenForo_Model::create('WhoHasVisited_Model_WhoVisited');

                        if ($whoHasVisitedModel->canViewWhoVisited())
                        {
                                $params = $template->getParams();

                                $params['hours'] = XenForo_Application::get('options')->whoHasVisitedHours;

                                $whoHasVisited = $whoHasVisitedModel->getWhoVisitedFromCache();
                                $whoHasVisited = $whoHasVisitedModel->prepareWhoHasVisited($whoHasVisited);

                                $params['whoHasVisited'] = !empty($whoHasVisited['users']) ? $whoHasVisited : array();

                                $whoVisited = $template->create('forum_list_who_visited_wrapper', $params);

                                $containerData['sidebar'] = $containerData['sidebar'] . $whoVisited;
                        }
                }
        }

It's missing the params for the whoHasVisitedHours from that function

PHP:
$params['hours'] = XenForo_Application::get('options')->whoHasVisitedHours;
 
lol seems only addon into troubles on Admin Account, on Registered users works well on Members tab

edited: nope sorry same troubles
 
Easy fix.

In Listener.php

PHP:
public static function templatePostRender($templateName, &$content, array &$containerData, XenForo_Template_Abstract $template)
        {
                if ($templateName == 'online_list')
                {
                        $whoHasVisitedModel = XenForo_Model::create('WhoHasVisited_Model_WhoVisited');

                        if ($whoHasVisitedModel->canViewWhoVisited())
                        {
                                $params = $template->getParams();

                                $whoHasVisited = $whoHasVisitedModel->getWhoVisitedFromCache();
                                $whoHasVisited = $whoHasVisitedModel->prepareWhoHasVisited($whoHasVisited);

                                $params['whoHasVisited'] = !empty($whoHasVisited['users']) ? $whoHasVisited : array();

                                $whoVisited = $template->create('forum_list_who_visited_wrapper', $params);

                                $containerData['sidebar'] = $containerData['sidebar'] . $whoVisited;
                        }
                }
        }

Change to

PHP:
public static function templatePostRender($templateName, &$content, array &$containerData, XenForo_Template_Abstract $template)
        {
                if ($templateName == 'online_list')
                {
                        $whoHasVisitedModel = XenForo_Model::create('WhoHasVisited_Model_WhoVisited');

                        if ($whoHasVisitedModel->canViewWhoVisited())
                        {
                                $params = $template->getParams();

                                $params['hours'] = XenForo_Application::get('options')->whoHasVisitedHours;

                                $whoHasVisited = $whoHasVisitedModel->getWhoVisitedFromCache();
                                $whoHasVisited = $whoHasVisitedModel->prepareWhoHasVisited($whoHasVisited);

                                $params['whoHasVisited'] = !empty($whoHasVisited['users']) ? $whoHasVisited : array();

                                $whoVisited = $template->create('forum_list_who_visited_wrapper', $params);

                                $containerData['sidebar'] = $containerData['sidebar'] . $whoVisited;
                        }
                }
        }

It's missing the params for the whoHasVisitedHours from that function

PHP:
$params['hours'] = XenForo_Application::get('options')->whoHasVisitedHours;


with your edit works now :) thanx
 
@BamaStangGuy, just received the update but the zip file is incomplete - in the upload folder there's just the WhoHasVisited folder and its contents. There should of course be both js and library folders with WhoHasVisited being inside the library folder.
 
@BamaStangGuy, just received the update but the zip file is incomplete - in the upload folder there's just the WhoHasVisited folder and its contents. There should of course be both js and library folders with WhoHasVisited being inside the library folder.

Sorry about that. Not sure how that happened. Will put another update out shortly
 
I'm getting this error when trying to install: "Please enter a valid callback method (WhoHasVisited_Listener::templateCreate)"

Any idea what I have done?
 
I'm getting this error when trying to install: "Please enter a valid callback method (WhoHasVisited_Listener::templateCreate)"

Any idea what I have done?

Something may be messed up with the attachment again. Not really sure what is going on with that all of a sudden. Give me a few to poke around.
 
1.3.6 Package wrong packed !

library/WhoHasVisited folder is missed
I don't know if @BamaStangGuy has sent out an updated package since I reported this in post #205?


Also, I have noticed something which I'm not sure if it's a bug or something not implemented.

I've set some styling in Appearance > Style Properties > User List Followed Username. I've set Bold as the styling for Followed users
I've also set some styling in Appearance > Style Properties > User List Invisible Username. I've set Italic as the styling for Invisible users
This styling works as expected in the Online Now block.

In the Members Online Recently block, Invisible users show up in Italic as expected. However, Followed users don't appear in Bold.
 
I just sent out another update via FetchApp.

Hi Brent,

All 109 orders for Who Has Visited Last 24 Hours (SKU visited24hours) have been reopened, and your clients who are opted in for updates will be notified that a new version of this product is available for download. You can view these reopened orders from your orders page...
 
as i said dont receive mail for updated version from FetchApp.

If you bought the product through the link and have an order I don't know why you aren't getting an update. I reopened all orders which is suppose to send out a new email to you.
 
Back
Top Bottom