Advertisement:

Author Topic: [Solved] Search ads blocked at 1000  (Read 165 times)

Gilou26

  • Jr. Member
  • **
  • Posts: 84
[Solved] Search ads blocked at 1000
« on: June 21, 2019, 08:14:38 pm »
Hi.
With Osclass 3.8.0 Theme Osclasswizzard 2.0.6.

I have 1006 ads on my site, but when I do a search, it shows 1 to 10 out of 1000 (see photo).
I looked for the next code in the file search.php :
Code: [Select]
<span class="counter-search">
      <?php
                $search_number 
osclasswizards_search_number();
                
printf(__('Rosiers %1$d     &agrave; %2$d sur %3$d trouv&eacute;s. Si vous ne l&apos;avez pas fait, filtrez votre recherche pour plus de pr&eacute;cision.'OSCLASSWIZARDS_THEME_FOLDER), $search_number['from'], $search_number['to'], $search_number['of']);
            
?>

      </span>
Should we change something in this code ?

Thank you in advance for your help.
« Last Edit: June 28, 2019, 08:11:08 pm by Gilou26 »

vivekshan

  • Jr. Member
  • **
  • Posts: 70
Re: Search ads blocked at 1000
« Reply #1 on: June 24, 2019, 10:09:04 pm »

Gilou26

  • Jr. Member
  • **
  • Posts: 84
Re: Search ads blocked at 1000
« Reply #2 on: June 27, 2019, 06:09:48 pm »
Hi.
Thank you for the answer.
I do not have the same code.
My code is this one :
Code: [Select]
function osc_total_active_items() {
        return Item::newInstance()->totalItems(null, 'ACTIVE|ENABLED|NOTEXPIRED');
    }
I tried to put your code, but it does not work. I've looked at all the links in your post, but there is nothing that solves my problem  :( :(

calinbehtuk

  • Sr. Member
  • ****
  • Posts: 450
Re: Search ads blocked at 1000
« Reply #3 on: June 27, 2019, 07:14:11 pm »
@Gilou26 you need some osclass core changes
But that limitation don't affect you, nobody will browse between 100 pages, most of your users will see the results from page 1 and 2.


https://forums.osclass.org/general-help/how-to-change-the-limit-of-100-links-in-pagination/msg41459/#msg41459

Gilou26

  • Jr. Member
  • **
  • Posts: 84
Re: Search ads blocked at 1000
« Reply #4 on: June 28, 2019, 01:08:44 pm »
It is not the number of pages but the number of articles found in the selected category. I think it's good information for users. Moreover when we click on search, without selecting a category, we do not find all the articles.

calinbehtuk

  • Sr. Member
  • ****
  • Posts: 450
Re: Search ads blocked at 1000
« Reply #5 on: June 28, 2019, 06:57:24 pm »
Just change the value with a higher one how _CONEJO say and you will see that the number will be correct

Gilou26

  • Jr. Member
  • **
  • Posts: 84
Re: Search ads blocked at 1000
« Reply #6 on: June 28, 2019, 08:10:07 pm »
calinbehtuk and vivekshan.
I thought that the number of pages and the number of articles, were two different things.
Now it works perfectly  :) :) :)
Thank you for you precious help.