[rellect] Last Seen Policy [Deleted]

refael

Well-known member
rellect submitted a new resource:

Last Seen Policy - Members who hide their online status won't see the online status of others (Inspired by WhatsApp).

This addons allows you to control which usergroups (or individual users) are allowed to hide their own online status and current activity.

In additional, inspired by WhatsApp, you can choose that members who hide their online status would not be able to see the online status of other members.

View attachment 120091

Read more about this resource...
 
Interesting. But is it possible to just visit profilesite of target user as guest to find status? Or did you block this for guests?
 
Interesting. But is it possible to just visit profilesite of target user as guest to find status? Or did you block this for guests?
That's a good point which I forgot to test. I've fixed this case. Thanks.
(Guests have permissions as well, so if set that they must share their online status, they will no longer be able to see online status of anyone)
 
rellect updated Last Seen Policy with a new update entry:

v1.0.1

It's now possible to disable guests from viewing users online status and current activity.

In order to do it, go to the permissions of the guests group (Unregistered / Unconfirmed) and set "Must share own online status to see others' status" to Allow.

Since guests don't have settings to change, they will never be able to see the online status of anyone.

Read the rest of this update entry...
 
your added new option is only a 100% or 0% visibility for guests. but a possible option should be, that guests can see all status from users that have the visibility enabled. Guests should only can't see the disabled visibility users.
 
your added new option is only a 100% or 0% visibility for guests. but a possible option should be, that guests can see all status from users that have the visibility enabled. Guests should only can't see the disabled visibility users.
That's not correct, if the permission "must share online status" is activated for guests, then they can't see the online status of anyone.
But if that permission isn't set, then guests can see the online status as usual (of those who don't hide it).
 
rellect updated Last Seen Policy with a new update entry:

v1.0.2

- Fixed Undefined index: permissions which occurred in some cases.
- User's invisibility will automatically turn off if user no longer allowed to edit this setting. (Previously user couldn't change the setting, but he was still invisible due to the option being enabled). This happens on user's next visit, so if mistakenly set there's still time to revert it.

Read the rest of this update entry...
 
I get an error when installing the xml file

Server Error
Cannot load class using XFCP. Load the class using the correct loader first.

  1. XenForo_Autoloader->autoload()
  2. spl_autoload_call() in rellect/LastSeenPolicy/XenForo/Model/User.php at line 3
  3. include() in XenForo/Autoloader.php at line 119
  4. XenForo_Autoloader->autoload()
  5. spl_autoload_call()
  6. class_exists() in XenForo/Helper/Php.php at line 62
  7. XenForo_Helper_Php::validateCallback() in XenForo/Helper/Php.php at line 124
  8. XenForo_Helper_Php::validateCallbackPhrased() in XenForo/DataWriter/CodeEventListener.php at line 101
  9. XenForo_DataWriter_CodeEventListener->_preSave() in XenForo/DataWriter.php at line 1446
  10. XenForo_DataWriter->preSave() in XenForo/DataWriter.php at line 1385
  11. XenForo_DataWriter->save() in XenForo/Model/CodeEvent.php at line 405
  12. XenForo_Model_CodeEvent->importEventListenersAddOnXml() in XenForo/Model/AddOn.php at line 316
  13. XenForo_Model_AddOn->importAddOnExtraDataFromXml() in XenForo/Model/AddOn.php at line 226
  14. XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
  15. XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 188
  16. XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 351
  17. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  18. XenForo_FrontController->run() in /var/www/vhosts/mysite.co.uk/httpdocs/forum/admin.php at line 13
 
I get an error when installing the xml file

Server Error
Cannot load class using XFCP. Load the class using the correct loader first.

  1. XenForo_Autoloader->autoload()
  2. spl_autoload_call() in rellect/LastSeenPolicy/XenForo/Model/User.php at line 3
  3. include() in XenForo/Autoloader.php at line 119
  4. XenForo_Autoloader->autoload()
  5. spl_autoload_call()
  6. class_exists() in XenForo/Helper/Php.php at line 62
  7. XenForo_Helper_Php::validateCallback() in XenForo/Helper/Php.php at line 124
  8. XenForo_Helper_Php::validateCallbackPhrased() in XenForo/DataWriter/CodeEventListener.php at line 101
  9. XenForo_DataWriter_CodeEventListener->_preSave() in XenForo/DataWriter.php at line 1446
  10. XenForo_DataWriter->preSave() in XenForo/DataWriter.php at line 1385
  11. XenForo_DataWriter->save() in XenForo/Model/CodeEvent.php at line 405
  12. XenForo_Model_CodeEvent->importEventListenersAddOnXml() in XenForo/Model/AddOn.php at line 316
  13. XenForo_Model_AddOn->importAddOnExtraDataFromXml() in XenForo/Model/AddOn.php at line 226
  14. XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
  15. XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 188
  16. XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 351
  17. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  18. XenForo_FrontController->run() in /var/www/vhosts/mysite.co.uk/httpdocs/forum/admin.php at line 13
I'll release an update now to fix this, thanks.
 
Now if only the people who hide their online status could not see the who's online block, this addon would be perfect.
 
Now if only the people who hide their online status could not see the who's online block, this addon would be perfect.
Good point about the online block, forgot about that. But I don't think hiding it completely is necessary, it can still be used to show the number of members online (without mentioning any names).
 
Good point about the online block, forgot about that. But I don't think hiding it completely is necessary, it can still be used to show the number of members online (without mentioning any names).

Yes, just not showing the names would be great. If they can't see who's online they are less likely to hide themselves (y)
 
rellect updated Last Seen Policy with a new update entry:

v1.0.4

Added policy enforcement to the sidebar online block and the full online page.

Thanks @JamesBrown for reporting.

Important note: Online and visible staff members will be still listed despite user's permissions (this is a design decision). Staff members who choose to be visible most likely wants users to know about it.
This has been changed also in posts.

Read the rest of this update entry...
 
Error being produced ....

Code:
Server Error Log
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'user.is_staff' in 'where clause' - library/Zend/Db/Statement/Mysqli.php:77
Generated By: Petesul, Today at 15:41
Stack Trace
#0 library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('\r\n\t\t\t\tSELECT se...')
#1 library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '\r\n\t\t\t\tSELECT se...')
#2 library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('\r\n\t\t\t\tSELECT se...')
#3 library/Zend/Db/Adapter/Abstract.php(734): Zend_Db_Adapter_Abstract->query('\r\n\t\t\t\tSELECT se...', Array)
#4 library/XenForo/Model/Session.php(39): Zend_Db_Adapter_Abstract->fetchAll('\r\n\t\t\t\tSELECT se...')
#5 library/XenForo/Model/Session.php(469): XenForo_Model_Session->getSessionActivityRecords(Array)
#6 library/XenForo/ControllerPublic/Logout.php(44): XenForo_Model_Session->processLastActivityUpdateForLogOut(41931)
#7 library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Logout->actionIndex()
#8 library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 index.php(13): XenForo_FrontController->run()
#10 {main}
Request State
array(3) {
  ["url"] => string(102) "https://site/logout/?_xfToken=41931%2C1455936052%2Cf0f2<>"
  ["_GET"] => array(2) {
    ["/logout/"] => string(0) ""
    ["_xfToken"] => string(57) "41931,1455936052,f0f2fc1ce0bf61b690de<>"
  }
  ["_POST"] => array(0) {
  }
}
 
Back
Top Bottom