Recent content by grisha2217

  1. G

    XF 1.5 How to get current node ID from a visitor

    Why did you choose datawriter class to do something? Maybe more correctly overridy actionAddReply() function in XenForo_ControllerPublic_Thread? $parent = parent::actionAddReply(); if ($parent instanceof XenForo_ControllerResponse_Redirect || $parent instanceof XenForo_ControllerResponse_View)...
  2. G

    XF 1.5 How to get current node ID from a visitor

    It depends by used controller. You should get post/thread array data, post will contain thread id and node id perhaps. Thread array will be contain 100% node_id element. Tell us more precisely about your addon, give code parts
  3. G

    Force user to remember reserve auth codes or allow to change method of 2FA

    Hi guys. I'm owner of huge forum with 500k registered members. I enabled 2fa for all members, who has more 10 likes. Everyday members write me, that they reseted your smartphone or lost it, ask me to disable 2fa for theim and i do it. They don't save reserve auth codes, of course. My...
  4. G

    Lolzteam.net - Social engineering forum

    Hi all, present you my forum https://lolzteam.net, maden for russian community, because english translation can be incorrect or absent any. What's done: Market - sell & buy accounts Restyled Br Modern Statistics, like, quote buttons, member profile page Star threads (bookmarks) Quick...
  5. G

    Sometimes stats seems displays incorrect

    Today is July 8 and i see today stats, but i shouldn't see it. This happens one time in month about, the next day stats seems correctly.
  6. G

    Chatbox - Realtime Chatting [Paid]

    Problem: When banned in chat user was deleted through ACP from DB, banning info row is present on chatbox/banned-users page Need extend XenForo_DataWriter_User class and override _postDelete() method like it: protected function _postDelete() { parent::_postDelete(); $db = $this->_db; $userId =...
  7. G

    As designed Search button becomes detached from nav at smaller font sizes

    How did you setted up 10px font? When i did 80% page size, i see it good
  8. G

    Easy User Ban by Siropu [Paid]

    Yes, this function is present in ACP. Realization: library/Siropu/EasyUserBan/ControllerPublic/Member.php Find: if (!$user = $this->_getUserModel()->getUserById($input['user_id'])) { return $this->responseError(new XenForo_Phrase('requested_user_not_found')); } Add after: if...
  9. G

    Easy User Ban by Siropu [Paid]

    I suggest introduce new function: Edit ban details button. Moderators can change ban reason or ban period.
  10. G

    XF 1.5 Removing a secondary group from a user via PHP

    Sorry man, replace on it public function actionDeleteUsergroup() { $userId = $this->_input->filterSingle('user_id', XenForo_Input::UINT); $userGroupId = $this->_input->filterSingle('usergroup_id', XenForo_Input::UINT); $downgrade_id = "group_remove_".date('U')...
  11. G

    XF 1.5 Removing a secondary group from a user via PHP

    Also you can write actionDeleteUsergroup function in XenForo_ControllerPublic_Member class. public function actionDeleteUsergroup() { $userId = $this->_input->filterSingle('user_id', XenForo_Input::UINT); $userGroupId = $this->_input->filterSingle('usergroup_id'...
  12. G

    Implemented Ucfirst & lcfirst for phrases

    What about xf 1.x? Or you don't plain introduce new functios to xf 1.x?
  13. G

    Implemented Ucfirst & lcfirst for phrases

    Hi all. For example i have phrase "uknown", i want to show phrase as "Unknown" (make first letter in upper case), why i should create new phrase to do this? i think it will be useful for developers.
  14. G

    XF 2.0 how to count users online of a specific usergroup?

    I think this function will not work. Try use foreach function in php code (no in templates) $countGroup7 = 0; foreach ($online['users'] AS $user) { if ($userModel->isMemberOf($user, 7)) $countGroup7++; } I don't know how to called isMemberOf in xf2, but will be like it.
  15. G

    Add page navigation to reports page

    Let developers will limit entries on page (ex. 50). What about this?)) WOW. Pagination.
Top