*

sess01

  • ***
  • 39 posts
disable categories on the left block
« on: October 14, 2021, 06:29:12 PM »
Hi!

How can I disable display conditions, categories and transactions on the left block of ads (look at the screenshot)

and I set up there only location of the ads?

Or just change the order, in order to make location as the first priority to display of the ads.
« Last Edit: October 14, 2021, 06:34:27 PM by sess01 »

Marked as best answer by frosticek on October 16, 2021, 09:23:12 AM
*

MB Themes

Re: disable categories on the left block
« Reply #1 on: October 15, 2021, 09:34:58 AM »
@sess01
In loop-single.php

Find:
Code: [Select]
<?php if(!in_array(osc_item_category_id(), del_extra_fields_hide())) { ?>
Replace with:
Code: [Select]
<?php if(!in_array(osc_item_category_id(), del_extra_fields_hide()) && 1==2) { ?>
I think that could do it ::)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

sess01

  • ***
  • 39 posts
Re: disable categories on the left block
« Reply #2 on: October 16, 2021, 01:43:42 AM »
Thanks, works fine ;)

*

MB Themes

Re: disable categories on the left block
« Reply #3 on: October 16, 2021, 09:23:23 AM »
Welcome  ;D
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

sess01

  • ***
  • 39 posts
Re: disable categories on the left block
« Reply #4 on: November 12, 2021, 02:01:23 AM »
This code doesn't work with the new Osclass. Is there other solution?  ???

*

MB Themes

Re: disable categories on the left block
« Reply #5 on: November 12, 2021, 06:57:30 AM »
@sess01
I do not see single reason why it would work on Osclass 4.4 and would not on Osclass 8.0
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

sess01

  • ***
  • 39 posts
Re: disable categories on the left block
« Reply #6 on: November 12, 2021, 10:46:44 AM »
I replaced this code. but my locations don't display on the left block.

*

sess01

  • ***
  • 39 posts
Re: disable categories on the left block
« Reply #7 on: November 12, 2021, 11:03:56 AM »
After debug error, I see this:

SELECT *
FROM (oc_t_preference)

SELECT *
FROM (oc_t_user)
WHERE pk_i_id = '19'

SELECT *
FROM (oc_t_user_description)
WHERE fk_i_user_id = '19'

SHOW COLUMNS FROM oc_t_admin where Field = "b_moderator"

SELECT pk_i_id, s_name, s_username, s_password, s_email, s_secret, i_login_fails, dt_login_fail_date, b_moderator, s_moderator_access
FROM (oc_t_admin)
WHERE pk_i_id = 1

SELECT count(*) as total
FROM (oc_t_item_comment c, oc_t_item i)
WHERE c.fk_i_item_id = i.pk_i_id
AND ( c.b_active = 0 OR c.b_enabled = 0 OR c.b_spam = 1 )

SELECT count(*) as total
FROM (oc_t_item i, oc_t_item_stats s)
WHERE i.pk_i_id = s.fk_i_item_id
AND s.i_num_spam > 0 AND i.b_spam = 0

SELECT *
FROM (oc_t_locale)
WHERE b_enabled = 1
ORDER BY s_name ASC


It can be a problem? How can I fix it?
« Last Edit: November 12, 2021, 11:33:45 AM by sess01 »

*

MB Themes

Re: disable categories on the left block
« Reply #8 on: November 12, 2021, 01:35:05 PM »
@sess01
I not see any issue there.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

sess01

  • ***
  • 39 posts
Re: disable categories on the left block
« Reply #9 on: November 12, 2021, 02:16:07 PM »
ok, what do they mean in the report? :-\ And the code doesn't work anymore.

*

MB Themes

Re: disable categories on the left block
« Reply #10 on: November 12, 2021, 02:31:04 PM »
@sess01
Code posted above is OK and those queries were only shown as part of database debug so you see what queries were issued against DB.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots