Recent content by sledov

  1. sledov

    XF 2.2 How to do something when user logs in automatically?

    Hello, I need to set up some session variables when registered user visits the forum. I tried extending "XF\Pub\Controller\Login" and it works, when user actually logs in via login form. What should I do when user logs in automatically (from a saved cookie?).
  2. sledov

    XF 2.2 Activity Summary Validation?

    I know it is an old thread, but is there a way to test the Activity Summary Email specifically? Before the forum software starts sending it to the users? I assume it sends out an html page. Is it accessible by url? Or can I generate it somehow? It would be nice to preview email that forum sends...
  3. sledov

    XF 2.0 Disabling show online status option

    First, make sure that the way it is right now the visibility option is getting unset when you modify some other option on the form with your modification applied. Then you need to replace this line <xf:macro template="helper_account" name="activity_privacy_row" /> for these two lines <input...
  4. sledov

    XF 2.0 Disabling show online status option

    I think I know why this is happening. When you remove a control from the page, absence of the control is treated as a negative value next time the form is submitted and processed. So, if your form does not have user[visible] checkbox, and user decides to change some other option (for example...
  5. sledov

    XF 2.1 API post thread with curl

    $post = json_encode($post); I believe POST parameters should be www-form-urlencoded, not json-encoded. See examples here.
  6. sledov

    XF 2.1 Q: Xenforo architecture

    Yeah, I know about the manual :) I am more interested about why it is done this way. A historical perspective? Some previous application that inspired it? Or at least something like "It is a standard MVC lingo, you should read this book, it explains it". Or is it completely home grown?
  7. sledov

    XF 2.1 Q: Xenforo architecture

    Where does the terminology of Xenforo architecture come from? For example, apparently a "Service" is a specialized object that is supposed to perform a single action. And you are supposed to use "XF:User\UserGroupChange" service to assign user to a group. Why is it called a Service? Or the...
  8. sledov

    XF 2.0 Difference between Repository, Service and stand-alone class?

    Hi Chris D, Are you following some established software design pattern here? Or is it something that you decided on specifically for Xenforo? Thank you,
  9. sledov

    Duplicate Not possible to search users by exact number of posts

    From ACP when searching for users with number of posts between 12 and 12, results contain users with 13 posts as well. More importantly, when you are searching for users with no posts, it picks up users with zero posts and one post. And this does not allow to filter out inactive users.
Top Bottom