• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

[Unofficial] Very Simple Plugin System

Danny.Domb

👽 Chevereto Freak
Here is an Unofficial contribution of chevereto that will allow me to create mods for you very more easily.

All of my contributions will need the following, so I suggest to add it 😉

Open includes/chevereto.php

find : (near line 47 )
PHP:
define('__CHV_PATH_THEME__', __CHV_PATH_THEMES__.$config['theme'].'/');

add after:
PHP:
define('__CHV_PATH_MODS__',__CHV_PATH_CONTENT__.'mods/');

find : ( Near line 73 )
PHP:
/*** Include the core functions ***/
if(!@include_once(__CHV_FILE_FUNCTIONS__)) die('Can\'t find '.__CHV_FILE_FUNCTIONS__);

add after :
PHP:
/*** Make sur the Mods folder exist ***/
if (!file_exists(__CHV_PATH_MODS__))
{
	@mkdir(__CHV_PATH_MODS__, 0755);
}

/*** Include the mods ***/
foreach (glob(__CHV_PATH_MODS__."*.php") as $file)
{
    include($file);
}
 
I'm a coder too, instead of creating the same thing for a 'Plugin System' with different variables, permission to use yours as long as we note required: Very Simple Plugin by Danny.Domb in any mods people require to use yours?
 
Cory said:
I'm a coder too, instead of creating the same thing for a 'Plugin System' with different variables, permission to use yours as long as we note required: Very Simple Plugin by Danny.Domb in any mods people require to use yours?

Of course 😉
 
Back
Top