*

jcarrolo01

  • *****
  • 256 posts
Urgent Help....
« on: October 05, 2017, 11:27:48 PM »
On my site, i'm using Zara theme....

I have one category with the adult contente (Explicit Sex)....

I'd like to know if anyone can help me to prevent the listings on this category be dispayed in latest listings, in show all listings and search listings?????


I appretiate any help you can provide me on this.....



Best Regards
João

*

ferry

  • ****
  • 155 posts
Re: Urgent Help....
« Reply #1 on: October 06, 2017, 03:29:16 AM »

*

jcarrolo01

  • *****
  • 256 posts
Re: Urgent Help....
« Reply #2 on: October 07, 2017, 05:20:35 PM »
Thanks allot for your post... This question is solved... Thanks allot....

No I have a small question, and maybe someone can help me...

I also remove the AD's being displayed in "latest Listings" from that specific category for adult content...

For that in main.php I add the code in RED



Quote
            <?php if( osc_count_latest_items() > 0) { ?>
              <div class="block">
                <div class="wrap">
                  <?php $c = 1; ?>
                  <?php while( osc_has_latest_items() ) { ?>
             
               <!-- JDK -->
               <!-- Here should be placed the block to limit the listings be displayed in latest categories -->
               <?php if (in_array(osc_item_category_id(), array(140, 421, 611, 612, 613, 614, 422, 615, 618, 619, 620, 423, 621, 617, 616, 424, 622, 623, 624, 625, 425, 626, 627, 628, 608, 629, 630, 609, 631, 632, 633, 634, 610, 635, 637, 638, 636, 639, 426))) continue; ?>            
               <!-- JDK -->   

             
                    <?php klass24_draw_item($c, 'gallery'); ?>
                   
                    <?php $c++; ?>
                  <?php } ?>
                </div>
              </div>


The strange thing is, when I start adding AD's inside this Special categories in array, the listing in latest listings start disappearing...


Like you can see on the image, 4 listings disappear.. because I had some AD's inside the special category in the array

 

*

ferry

  • ****
  • 155 posts
Re: Urgent Help....
« Reply #3 on: October 08, 2017, 12:24:06 AM »
And if you place new ads?

I saw this also time ago. But at the moment all the ads are showing at the homepage.

I cant remember what i did to solve this

« Last Edit: October 08, 2017, 12:47:08 AM by ferry »

*

jcarrolo01

  • *****
  • 256 posts
Re: Urgent Help....
« Reply #4 on: October 08, 2017, 02:26:42 PM »
Hello...

Thanks for your reply... I have allways set 12 yhe number of listings to be shown in latest listings.... When i start having new listings (around 20), in adult category, the number of ad's in latest listings reduce allot, so i need to increase from 12 to 36 to have 14 in latest listings...

If i place a new listing in a empty category, 1 listing will desapear from the latest listings.... If i place a listing in a category already with Ad's, nothing happens

On the array I use the id of category, sub-categories and sub-sub.categories... it's here the problem??????

Starnge!!!!!!!!!

Anyone can help??????
« Last Edit: October 08, 2017, 02:53:37 PM by jcarrolo01 »

*

MB Themes

Re: Urgent Help....
« Reply #5 on: October 08, 2017, 09:24:02 PM »
If you set to show 12 latest listings and just 5 are ok, nased on your filter only 5 of them will be shown.
Replace latest function with osc_query_item function.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots