J00001dummy third party plugin start,class,php

From Jomres v4 manual

Jump to: navigation, search

j00001 minicomponents are the very first Minicomponents run when Jomres starts up, so they're often used to include class and language files that a plugin might need to run.

This file is used to include the dummy classfile and the plugin's language file.

A point of interest, minicomponents have two useful variables: $ePointFilepath and $eLiveSite.

$ePointFilepath provides the full path to this script, which is useful if you want to include a file or template in a folder below. For example, \var\www\public_html\jomres\remote_plugins\dummy_third_party_plugin

$eLiveSite provides the url to this directory, eg http://www.domain.com/jomres/remote_plugins/dummy_third_party_plugin which you might want to use if you were including images as part of the plugin's output.


  1. global $ePointFilepath,$jomresConfig_lang;
  2.  
  3. require_once($ePointFilepath."dummy_third_party_plugin_foo.class.php");
  4.  
  5. if (file_exists($ePointFilepath.'language/'.$jomresConfig_lang.'.php'))
  6. require_once($ePointFilepath.'language/'.$jomresConfig_lang.'.php');
  7. else
  8. {
  9. if (file_exists($ePointFilepath.'language/en-GB.php'))
  10. require_once($ePointFilepath.'language/en-GB.php');
  11. }
Personal tools