Hi Miro,
i began for a few days my first plugin project, so i think (hope) that i can help you.
1. i have implemented the description with:
[code:1] if($tab->description != null) {
$return .= "\t\t<div class=\"tab_Description\">";
$return .= unHtmlspecialchars(getLangDefinition($tab->description));
$return .= "</div>\n";
}
[/code:1]
2. The editpage was called by the function "getEditTab" like this...
[code:1] function getEditTab($tab,$user,$ui) {
global $database,$mosConfig_live_site,$my,$ueConfig,$mainframe,$mosConfig_lang;
$return = null;
$lists = array();.......[/code:1]
3. I have write a own Plugin Language file with constants. First i create a function:
[code:1] function _getLanguageFile() {
global $mainframe,$mosConfig_lang;
$UGlanguagePath=$mainframe->getCfg( 'absolute_path' ).'/components/com_comprofiler/plugin/user/plug_usergames';
if (file_exists($UGlanguagePath.'/language/'.$mosConfig_lang.'.php')) {
include_once($UGlanguagePath.'/language/'.$mosConfig_lang.'.php');
} else {
include_once($UGlanguagePath.'/language/english.php');
}
}[/code:1] The base if this function comes from the Plugin profilegallery...
Next when i need in my Tab the constants of my language file i call at the begin the function with:
[code:1]$this->_getLanguageFile();[/code:1]
I hope i help you a little.
Greets from Germany says Blackice