*

developGr

  • ***
  • 39 posts
On the "Top employers" box in the main page https://careerjob.mb-themes.com/ how to show only the number of the "job offers" that are still open and not expired?

Cause the problem here if the ads are expired and the user added 20 jobs the last year and the last month nothing, in these box will show the number of the 20 job offers but when you click on it will show no ads if there are nothing active!

*

developGr

  • ***
  • 39 posts
Re: Show the correct number of active jobs on "Top employers" box
« Reply #1 on: March 03, 2021, 02:56:32 PM »

*

MB Themes

Re: Show the correct number of active jobs on "Top employers" box
« Reply #2 on: March 03, 2021, 03:07:46 PM »
@developGr
THis is query used:
Code: [Select]
  $sql = 'SELECT * FROM ' . DB_TABLE_PREFIX . 't_user WHERE i_items > 0 AND b_company = 1 ORDER BY i_items DESC LIMIT ' . $limit;

So this information is retrieved from i_items field in user table.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

developGr

  • ***
  • 39 posts
Re: Show the correct number of active jobs on "Top employers" box
« Reply #3 on: March 03, 2021, 03:26:53 PM »
so you cant show the correct number of the listings that are active for the user-company?

*

MB Themes

Re: Show the correct number of active jobs on "Top employers" box
« Reply #4 on: March 03, 2021, 04:09:46 PM »
@developGr
I do not remember what everything counts toward that field but if it is all then yes, you would have to use some different method of getting active listings or adjust counter
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots