Osclass - How to use custom hCategories.php
« on: July 06, 2020, 04:35:55 AM »
Hi there,

I am using osclass osclass.3.8.0 bender theme on my localhost. I created my custom file: hCategories_custom.php that fulfills my requirement. I have also changed function names in that.

I have made changes in oc-load.php as below


Code: [Select]
require_once LIB_PATH . 'osclass/helpers/hCategories_custom.php';
Now I am getting blank page with not category listed on my website with header only.

Could you please suggest where I need to make changes to correct. Thank..

*

MB Themes

Re: Osclass - How to use custom hCategories.php
« Reply #1 on: July 06, 2020, 07:58:01 AM »
I do not think that is right way for customization  :-X
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Osclass - How to use custom hCategories.php
« Reply #2 on: July 06, 2020, 09:46:10 AM »
thanks for your reply..

That is not the case. Actually, I want to display the result from original as well custom file somewhere else may be in footer.. that's why I did it. everything is good but I cant find how this file is connected to other files to display the content, so please tell me either I need to call the functions individually some where or need to include the file. Thanks.



*

MB Themes

Re: Osclass - How to use custom hCategories.php
« Reply #3 on: July 06, 2020, 03:45:55 PM »
It does not make sense to duplicate core files, check plugins how they access data
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Osclass - How to use custom hCategories.php
« Reply #4 on: July 06, 2020, 05:14:18 PM »

Thanks.. You people are truly great. When it comes to osclass every time there is a plugin.. That's not a help. Please help people when you reply else do not jump in.. You have a good day.

*

MB Themes

Re: Osclass - How to use custom hCategories.php
« Reply #5 on: July 06, 2020, 08:06:22 PM »
@devprajapati00000
I told you to look on some plugin code how it works to get data from database. Did not tell to buy it.... there is no such that would satisfy custom requirements. It's not copying core files at all.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Osclass - How to use custom hCategories.php
« Reply #6 on: July 07, 2020, 02:46:13 AM »
It is doing everything that's why I asked this question here. I already have a separate Data tables in phpmyadmin with custom data and other php files which are required to do this. I also know that this is the hook which does is pulling the category data
Code: [Select]
<?php osc_run_hook('inside-main'); ?>. May be I write one more. The only thing I am lacking the connection with hCategories.php.