jrCore_register_module_feature('jrCore', 'css', 'xxModuleName', 'the_css_file_name.css');
{jrCore_image module="jrLaunch" image="background.jpg" class="bg" alt=$_conf.jrCore_system_name}
jrCore_register_module_feature('jrCore', 'javascript', 'xxYourModule', 'the_javascript_filename.js');
$lang[1] = 'email address';
$lang[2] = 'notify me at launch';
$lang[3] = 'invalid email address - please enter a valid email address';
$lang[4] = 'You have been added to our list - we will contact you shortly. Thank you!';
// etc ......
{jrCore_lang module="xxModuleName" id="1" assign="email address"}
jrCore_parse_template('template_name.tpl',$_data,'xxYourModule');
/**
* jrLaunch_config
*/
function jrLaunch_config()
{
// Launch Active
$_tmp = array(
'name' => 'launch_active',
'type' => 'checkbox',
'default' => 'off',
'validate' => 'onoff',
'label' => 'Launch Page Active',
'help' => 'Check this option to active the Launch Page for non-logged in users',
'order' => 1
);
jrCore_register_setting('jrLaunch',$_tmp);
jrCore_delete_setting('jrAutoFollow', 'followee');
/**
* meta
*/
function xxYourModule_meta()
{
$_tmp = array(
'name' => 'My Module Name',
'url' => 'mymodule',
'version' => '1.0.0',
'developer' => 'My Company Name, ©' . strftime('%Y'),
'description' => 'What My Module Does so the admin can see.',
'category' => 'profiles'
);
return $_tmp;
}
/**
* init
*/
function xxYourModule_init()
{
return true
}
//------------------------------
// create_album
//------------------------------
function view_jrAudio_create_album($_post,$_user,$_conf)
{
// all your form logic in here. see the jrAudio/index.php file for details.
}
//------------------------------
// profile_default
//------------------------------
function profile_view_jrBlog_default($_profile,$_post,$_user,$_conf)
{
// see /modules/jrBlog/profile.php for details
}
/**
* quota_config
*/
function jrCore_quota_config()
{
// Take a look at the /jrCore/quota.php file for details.
// .
// .
// .
// .
//pass an array of options to jrProfile_register_quota_setting() for each setting you want.
jrProfile_register_quota_setting('jrCore', $_tmp);
return true;
}
$_tmp = array(
'label' => 'Allowed in Charts',
'help' => 'If checked, items created by Users for Profiles in this Quota can have their items appear in a chart.'
);
jrCore_register_module_feature('jrCore', 'quota_support', 'jrCharts', 'on', $_tmp);
/**
* xxYourModule_db_schema
*/
function xxYourModule_db_schema()
{
// This module uses a Data Store - create it.
jrCore_db_create_datastore('xxYourModule','yourmodule');
return true;
}
// Banned Item
$_tmp = array(
"ban_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY",
"ban_updated INT(10) UNSIGNED NOT NULL DEFAULT '0'",
"ban_type VARCHAR(32) NOT NULL DEFAULT ''",
"ban_value VARCHAR(128) NOT NULL DEFAULT ''",
"UNIQUE ban_key (ban_type,ban_value)"
);
jrCore_db_verify_table('jrBanned','banned',$_tmp,'MyISAM');