Recent content by Idhae

  1. Idhae

    XF 2.2 Limit Finder results and limitByPage

    So no ideas anymore :rolleyes: i do it now like that and looking for performance issues on big forums. extended XF\Pub\Controller: class FindThreads extends XFCP_FindThreads { public function actionMostLiked() { $threadFinder = $this->getThreadRepo()->findThreadsMostLiked()...
  2. Idhae

    XF 2.2 Limit Finder results and limitByPage

    Thanks for your advice, i tried something like this and others many times, but on page 2 i have more results as i have to. Just for clarification, my development environment has 26 results without cutom limit, thats why i limit $limitThreadsResults to 21 in the code below. On page 2 im getting...
  3. Idhae

    XF 2.2 Limit Finder results and limitByPage

    I need something like this query. For example $limitThreadsResults = $this->options()->discussionsPerPage; $offset = ($page - 1) * $perPage; return $db->fetchAll(" SELECT resulsts.* FROM ( SELECT `xf_thread`.* FROM `xf_thread` WHERE...
  4. Idhae

    XF 2.2 Limit Finder results and limitByPage

    i think we don't understand each other...sry for my bad english ;) At first i want LIMIT the whole RESULT, i think 200 Results ($this->options()->maximumSearchResults) over all threads are enaugh. Then i need for these 200 maximumSearchResults a working pagination and that is the problem, i...
  5. Idhae

    XF 2.2 Limit Finder results and limitByPage

    @Jeremy P so you have no idea, how i can achieve my intention?
  6. Idhae

    XF 2.2 Limit Finder results and limitByPage

    That works for $total but on page two in pagination the limit is not working for the threads, it shows again all results.
  7. Idhae

    XF 2.2 Limit Finder results and limitByPage

    extended XF\Pub\Controller: <?php class FindThreads extends XFCP_FindThreads { public function actionMostLiked() { // $limitThreadsResults = $this->options()->maximumSearchResults; // for performance reasons $limitThreadsResults = 10; // 10 for debugging reasons...
  8. Idhae

    XF 2.2 Limit Finder results and limitByPage

    Hey togther, i need some advice. How can I get a limited number of threads from thread finder and use the pagination stuff at the same time? public function actionMostLiked() { $limitThreadsResults = 10; // for performance reasons $page = $this->filterPage()...
  9. Idhae

    XF 2.2 Disallow external urls, if not written at least X posts

    Thanks, for that. (y) But I talked yesterday with a friend about that and he has another solution, that code looks good.;) The solution is now to render $message in the extended \XF\Service\Message\Preparer -> public function checkValidity and then check with strpos if the class...
  10. Idhae

    XF 2.2 Disallow external urls, if not written at least X posts

    We have your add-on, but I don't see any way to achieve our goal. We just want to prevent users who have less than X posts from being able to post an external link. internal links are allowed. getLinkClassTarget Im using to check if the domain is external or internal.
  11. Idhae

    XF 2.2 Disallow external urls, if not written at least X posts

    So no ideas?! Me checking now for no http:// in unfurl Url tags and then set it by my own and now it works.
  12. Idhae

    XF 2.2 Disallow external urls, if not written at least X posts

    Useless for our purposes. No idea why this happens?
  13. Idhae

    XF 2.2 Disallow external urls, if not written at least X posts

    Hey togther, i have a problem with that named extension in the title. I coded an extended \XF\Service\Message\Preparer -> public function checkValidity, where i check $message for external urls. I use the getLinkClassTarget function from XF\Template\Templater\Formatter. It works with that...
  14. Idhae

    New video series: Building with XenForo 2

    That is awesome and what else to say, you have done a really good job kier. Thanks
Top Bottom