*

Rick

  • ***
  • 36 posts
Mask
« on: December 15, 2022, 02:21:08 PM »
Is it possible to mask folders as admin folder?


oc-content > content
oc-includes > includes

???

*

Rick

  • ***
  • 36 posts
Re: Mask
« Reply #1 on: December 16, 2022, 01:33:14 PM »
Used notepad plus to earse in all files.
Works fine.. plugin that uses "require_once osc_plugins_path() . osc_plugin_folder(__FILE__) . "
Dont like this change, but plugins that dont works fine.





Warning: require_once(/home/hemsid13/public_html/content/plugins//home/hemsid13/public_html/content/plugins/instant_messenger/functions.php): Failed to open stream: No such file or directory in /home/hemsid13/public_html/content/plugins/instant_messenger/index.php on line 17

Fatal error: Uncaught Error: Failed opening required '/home/hemsid13/public_html/content/plugins//home/hemsid13/public_html/content/plugins/instant_messenger/functions.php' (include_path='.:/opt/alt/php80/usr/share/pear:/opt/alt/php80/usr/share/php:/usr/share/pear:/usr/share/php') in /home/hemsid13/public_html/content/plugins/instant_messenger/index.php:17 Stack trace: #0 /home/hemsid13/public_html/includes/osclass/classes/Plugins.php(181): include_once() #1 /home/hemsid13/public_html/includes/osclass/classes/Plugins.php(650): Plugins::loadActive() #2 /home/hemsid13/public_html/oc-load.php(288): Plugins::init() #3 /home/hemsid13/public_html/index.php(25): require_once('/home/hemsid13/...') #4 {main} thrown in /home/hemsid13/public_html/content/plugins/instant_messenger/index.php on line 17

*

MB Themes

Re: Mask
« Reply #2 on: December 16, 2022, 04:16:31 PM »
you miss some files ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Rick

  • ***
  • 36 posts
Re: Mask
« Reply #3 on: December 16, 2022, 04:35:45 PM »
No, nothing missing..something else.

It will work if i change require_once to just filename.

require_once 'file.php';

But, this starts new problem like links for user and some other in admin panel.


*

MB Themes

Re: Mask
« Reply #4 on: December 16, 2022, 04:57:09 PM »
Path is wrong.
/home/hemsid13/public_html/content/plugins//home/hemsid13/public_html/content/plugins/instant_messenger/functions.php

Should be:
/home/hemsid13/public_html/content/plugins/instant_messenger/functions.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Rick

  • ***
  • 36 posts
Re: Mask
« Reply #5 on: December 16, 2022, 05:09:53 PM »
Yes.. somewhere the script produce first
home/hemsid13/public_html/content/plugins/

Than

/home/hemsid13/public_html/content/plugins/instant_messenger/functions.php

But dont understand where or why this happend because of namechange just.

*

MB Themes

Re: Mask
« Reply #6 on: December 17, 2022, 03:45:47 PM »
well... maybe check what is in __FILE__ variable.
But it's your mod, you must manage it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Rick

  • ***
  • 36 posts
Re: Mask
« Reply #7 on: December 18, 2022, 05:05:20 PM »
well... maybe check what is in __FILE__ variable.
But it's your mod, you must manage it.

I have manage it.  ??? 


Last issue i had was same in your demo:
 https://ibb.co/PgkHRHh


Thanks for help!
« Last Edit: December 18, 2022, 05:35:02 PM by rickard gustafsson »

*

MB Themes

Re: Mask
« Reply #8 on: December 18, 2022, 08:01:22 PM »
Your browser is blocking plugin resources (js/css) as it contains word banner or advert.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots