Ultimate client manager :New Plugin Procedure:

Ultimate client manager :New Plugin Procedure:

1.Folder name starts with plugin_yourpuginname
2.inside the folder mail php folder name should be yourplugin name
3.In the php file need to add this code

<?php

class module_yourpluginname extends module_base{

var $links;
function init(){
$this->links = array();
$this->user_types = array();
$this->module_name = "yourpluginname";
$this->module_position =This value should be integer(this is mention where your plugin should be display);
if(getcred()){
switch($_SESSION['_access_level']){
case "administrator":
$this->links[] = array("name"=>"yourplugindisplay_name","p"=>"innerpage PHP file name","icon"=>"icon.png");
break;
default:
//$this->links[] = array("name"=>"yourplugindisplay_name","p"=>"innerpage PHP file name","icon"=>"icon.png");
break;
}
}

}?>

4.create database table as your requirements

Advertisements
Posted in PHP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s