This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Nagy Csaba

  • ***
  • 70 posts
How to hide user category
« on: January 02, 2020, 10:10:27 PM »
Hi.
   1.i want to hide from main page the employe category and keep only the employer any idea?
   2 Is ther a way to integrate open maps insted of google? since now you have to pay for google api's

Red 1 employe  hide
Red 2 employer  keep

ps is ther an active site whit thi theme ?

*

MB Themes

Re: How to hide user category
« Reply #1 on: January 03, 2020, 06:50:54 AM »
1. Only user that register as employeer will be shown on home page
2. Use openstreetmaps plugin that use open source api and usage is free
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nagy Csaba

  • ***
  • 70 posts
Re: How to hide user category
« Reply #2 on: January 06, 2020, 04:31:07 PM »
Clean instal only one user is created its a person not a company and its showing up in front page as top employers
this apeard after account creation i want to hide users from front page any help whit this or hint or ideea

Marked as best answer by nagy.csaba on January 07, 2020, 09:47:10 PM
*

MB Themes

Re: How to hide user category
« Reply #3 on: January 06, 2020, 07:02:44 PM »
Go to file:
oc-content/themes/careerjob/functions.php

Find line:
  $sql = 'SELECT * FROM ' . DB_TABLE_PREFIX . 't_user WHERE i_items > -1 ORDER BY i_items DESC LIMIT ' . $limit;

change it to:
  $sql = 'SELECT * FROM ' . DB_TABLE_PREFIX . 't_user WHERE i_items > 0 AND b_company = 1 ORDER BY i_items DESC LIMIT ' . $limit;
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots