Before you can upload plugins, you need to have a plugin to upload.
Here we'll create a simple minicomponent to output a username, and then use that script in a Jomres template shortcode.
First, we'll create a new directory in /jomres/remote_plugins/ called output_username.
In that directory we'll create a minicomponent
called j06000output_username.class.php and set the contents to the following :
defined('_JOMRES_INITCHECK') or die('');
#[AllowDynamicProperties]
class j06000output_username
{
function __construct()
{
$MiniComponents = jomres_singleton_abstract::getInstance('mcHandler');
if ($MiniComponents->template_touch){$this->template_touchable = false; return; }
$username = "Uknown user";
$thisJRUser = jomres_singleton_abstract::getInstance('jr_user');
if ($thisJRUser->id >0) {
$username = $thisJRUser->username;
}
echo $username;
}
function getRetVals()
{
return null;
}
}
When a new jnnnnnxxxxx.class.php script is added or copied, you need to rebuild the registry in Administrator > Jomres > Tools > Rebuild Registry to tell Jomres that it exists.
Now you can add the following shortcode to any Jomres template file and you'll see the user's username in the template file's output.
{jomres_script output_username}