*

salahjoher

  • **
  • 21 posts
How can i add a box in the home page that shows a random list of 10 ads that have a zero views, thats in order to provide a chance for such items to be visited.

Marked as best answer by frosticek on October 24, 2024, 03:06:46 PM
*

MB Themes

Re: How can i add a box that shows a random list of 10 zero views items
« Reply #1 on: October 20, 2024, 03:04:39 PM »
Using search class you might be able to do so.

There is small sniooet that could help

Code: [Select]
    $mSearch = new Search();
    $mSearch->onlyPremium(true);
    $mSearch->order('RAND()', '');
    $mSearch->limit(0, 1);
    $aItems = $mSearch->doSearch();
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

salahjoher

  • **
  • 21 posts
Re: How can i add a box that shows a random list of 10 zero views items
« Reply #2 on: October 24, 2024, 11:09:23 AM »
Thanks for reply, but i am newby, If possible send me the whole DIV please... PLEASE