Search results

  1. Stepel

    Edit a post in a form without AddReply option

    Hi, please can you tell me if you have any problem with editing post in forum where Add Reply option is disabled? I see that when I press "Edit" dialog doesn't open, after second press dialog is showed but it looks like editor would be loaded two times. Can you check it ?
  2. Stepel

    Last post after changing message/discussion_state

    As I said, I extended XenForo_DataWriter_DiscussionMessage_Post protected function _messagePostSave() { parent::_messagePostSave(); if ($this->isChanged('message')){ if (isset($GLOBALS['peb_set_thread_moderated_kk']) && $GLOBALS['peb_set_thread_moderated_kk']) { $dw =...
  3. Stepel

    Last post after changing message/discussion_state

    Any idea ? I don't understand why it doesn't work. I tried in _postSaveAfterTransaction too but it doesn;t work. Maybe I shouldn't do in DataWritter_DiscussionMessage_Post ?
  4. Stepel

    Last post after changing message/discussion_state

    it doesn't work when i want to do it from _messagePostSave() becaue I check if it is firstPost in Thread and if yes then i do $dw = XenForo_DataWriter::create('XenForo_DataWriter_Discussion_Thread',XenForo_DataWriter::ERROR_SILENT); $dw->setExistingData($thread_id)...
  5. Stepel

    Last post after changing message/discussion_state

    Hi, I check few things in DataWriter_DiscussonMessage_Post and I set 'moderated' state if something is wrong. I see that even post/thread is set to 'moderated' by changing state in DataWritter methods (example preSave()) the post/thread is visible as "Latest post" in forum list. Please tell me...
  6. Stepel

    User list with IP

    I have sth like that: public function MyFunc(array $conditions, array $fetchOptions = array()) { $whereClause = $this->prepareUserConditions($conditions, $fetchOptions); $this->addFetchOptionJoin($fetchOptions, self::FETCH_LAST_ACTIVITY); $orderClause =...
  7. Stepel

    User list with IP

    Hi , what is the best way to get user list with their last IP ? When i use self::FETCH_LAST_ACTIVITY and typical query from User Model return $this->fetchAllKeyed($this->limitQueryResults( ' SELECT user.* ' . $joinOptions['selectFields'] . '...
  8. Stepel

    Custom Router problem

    Thanks for answer. My code works the same like XenForo_Route_Filter. The most important method there is "match". this is my method: public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $routePath =...
  9. Stepel

    Custom Router problem

    Hi, I've created my own router based on XenForo_Route_Interface. In 'match' method I analyse $request->getRequestUri() and after finding some patterns I return $newRoutePath. (I am trying to translate old links (from old forum based on vB) to XF links) Morover I extended XenForo_Router. In...
  10. Stepel

    Permissions problem

    Ok I solved it... :) I tried to get permission cache from "node" which type is CATEGORY When I changed node_id to one of subforum of this "node" it works OK.
  11. Stepel

    Permissions problem

    Hmm I deleted record from xf_permission_cache_content for specific content_id and permission_combination_id and I saved permission for node again. Record has beed added but still "empty". Why ?
  12. Stepel

    Permissions problem

    Can anyone say me what will happen if I use "Rebulid Master Data" from "install/update" page?
  13. Stepel

    Permissions problem

    How can I get permissions for specific user (not visitor) and node ? I can't find function which returns this information. Maybe i should use my own query..
  14. Stepel

    Permissions problem

    Hmm when is the permission cache saved in database?
  15. Stepel

    Permissions problem

    Hi, Why doesn't this code: XenForo_Model::create('XenForo_Model_PermissionCache')->getContentPermissionsForItem($hookParams['user']['permission_combination_id'], 'node', $node_id); return anything with sense? Just : view => 1 Parameters are OK of course. Database has been imported from...
  16. Stepel

    Formatting thread style

    I know how to do it technically. Actually I don't know yet where. Maybe both.. I have to add possibility to set color/font style of thread title for admins or moderators :) I asked about AddOne because I thought that maybe exists. If not, then I have to create it.
  17. Stepel

    Formatting thread style

    Do you know any AddOne to formatting (coloru, font style) of thread tittle ? Is there any way to do that? Maybe some admin option which I don't know.. ?
  18. Stepel

    Custom Confirmation Dialog

    Hi, I have to show "confirmation dialog" after click "Add Reply". If somone click "yes" then I have to add post, if "no" then close dialog. What is the best way to do that ? I know that this button doesn't have class "OverlayTriggered" and my template is added to thread view, it doesn't appear...
  19. Stepel

    Additional Captcha

    Ok thanks, I made it but I am wondering if I can easly change keycaptcha type (from default to M+ KeyCaptcha). Another thing is : I added keycaptcha to thread_view template in "quick reply" form. It works OK but when I click "more options" button the Captcha checks value... It is unnecessary...
Top