Additional Links On Client Portal
To add an additional link to the front page Client Portal you need to create a snapin.
Here is a sample snapin code:
In this example the name of this php file would be: PluginMainbox.php
This would be uploaded to your Clientexec directory at plugins/snapin/mainbox
Here is a sample snapin code:
In this example the name of this php file would be: PluginMainbox.php
<?php
require_once 'modules/admin/models/SnapinPlugin.php';
class PluginMainbox extends SnapinPlugin
{
public function getVariables()
{
$variables = array(
'Plugin Name' => array(
'type' => 'hidden',
'description' => '',
'value' => 'Status Page',
),
'Public Description' => array(
'type' => 'text',
'description' => 'Description to be seen by public',
'value' => 'Check System Status',
),
'Use Image' => array(
'type' => 'hidden',
'value' => '1'
)
);
return $variables;
}
public function init()
{
$this->settingsNotes = lang('When enabled this snapin adds another box to the main page of your Clientexec as well as the support menu.');
$this->addMappingForPublicMain("view", "Status Page", 'View our System Status', 'templates/default/images/main-boxes/enom-reseller.png');
$this->addMappingForTopMenu('public', 'support', 'view', 'Status Page', 'Integrate Status Page in Public Top Menu');
}
public function view()
{
CE_Lib::redirectPage('https://status.clientexec.com/en/');
}
}
This would be uploaded to your Clientexec directory at plugins/snapin/mainbox
Updated on: 21/09/2024
Thank you!