Ok, done it;
[code:1]
$_PLUGINS->registerFunction( 'onAfterLoginForm','showPBTab','getProfileBookTab' );
$_PLUGINS->registerFunction( 'onAfterLogoutForm','showPBTab','getProfileBookTab' );
class getProfileBookTab extends cbTabHandler {
/**
* Construnctor
*/
function getProfileBookTab () {
$this->cbTabHandler();
}
function showPBTab ($name_length, $pass_length, $horizontal, $class_sfx, &$params) {
global $my,$database;
$my_id = $my->id;
$database->setQuery("SELECT count(id) FROM #__comprofiler_plug_profilebook WHERE userid=$my_id AND status=0"«»);
$unreadPB = $database->loadResult();
if ($unreadPB > 0) {
return "<br /><table width=\"100%\" border=\"0\">"
."<tr><td colspan=\"4\" class=sectiontableheader><a href=".sefRelToAbs('index.php?option=com_comprofiler').">You have"." ".$unreadPB." "."new profile book Post(s)"."</a></td></tr>"
."</table>";}
}
[/code:1]
Have fun all
NuMoon
I have attached the installer with the modifications (if you have made the database changes you can just use the files in it)
Attachment plug_cbprofilebook_Modded.zip not found
Post edited by: NuMoon, at: 2009/01/05 19:20