Skip to Content Skip to Menu

ProfileBook 1.0 - notify in cb_login

  • user8600
  • user8600
  • OFFLINE
  • Posts: 24
  • Thanks: 0
  • Karma: 3
15 years 11 months ago #82961 by user8600
Replied by user8600 on topic Re:ProfileBook 1.0 - notify in cb_login
Works only with a hacked login module.

I have never something programmed with cb-events...
It looks like many work to write this as a plugin... But must be possible.

Does anybody know an other working plugin for the login module, so I can take a look at the source code of that?

Please Log in or Create an account to join the conversation.

15 years 11 months ago #82965 by steveometer
Replied by steveometer on topic Re:ProfileBook 1.0 - notify in cb_login
ElsieNuMoon wrote:

Hey SoM,

Did you manage to get the notifier to work as a proper plugin, or with the hacked login module code (obviously we would all prefer it as a proper plugin).

:)

Best,

NuMoon


i never did get the notifier working

and if you help me do that, i will include the cb login thing with ajax stuff like my other plugins....

SoM

btw everyone thank numoon, keeps me working!

Please Log in or Create an account to join the conversation.

  • NuMoon
  • NuMoon
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 11
15 years 11 months ago #83025 by NuMoon
Replied by NuMoon on topic Re:ProfileBook 1.0 - notify in cb_login
Hey SoM,

If I remember rightly, you did have it working, but it had the feedback error (fixed in the version attached below), at which point you reverted.

I agree that it should be a proper 'plugin' though and not a hacked login module. I had a look at this from the purpsstats plugin trying to make it do the same, unsuccesfully so far. Might have another go later...

Best,

NuMoon

Please Log in or Create an account to join the conversation.

  • user8600
  • user8600
  • OFFLINE
  • Posts: 24
  • Thanks: 0
  • Karma: 3
15 years 11 months ago #83234 by user8600
Replied by user8600 on topic Re:ProfileBook 1.0 - notify in cb_login
I tested a little bit with a proper plugin for the cbloginmodule.
I looked in the code of steveometer and the captcha_plugin.

I Think this code in the cb.profilebook.php should create a new link in the login module.
But it doesn't. Can anybody help me?




$_PLUGINS->registerFunction( 'onAfterLoginForm', 'showpbstatus','getProfileBookTab' );

class getProfileBookTab extends cbTabHandler {

function showpbstatus( $name_lenght, $pass_lenght, $horizontal, $class_sfx, &$params ) {
$return = "<a href=\""
.sefRelToAbs('index.php?option=com_comprofiler')
."\">Profile</a>";
return $return;
}

Please Log in or Create an account to join the conversation.

15 years 11 months ago #83240 by steveometer
Replied by steveometer on topic Re:ProfileBook 1.0 - notify in cb_login
user8600 wrote:

I tested a little bit with a proper plugin for the cbloginmodule.
I looked in the code of steveometer and the captcha_plugin.

I Think this code in the cb.profilebook.php should create a new link in the login module.
But it doesn't. Can anybody help me?




[code:1]$_PLUGINS->registerFunction( 'onAfterLoginForm', 'showpbstatus','getProfileBookTab' );

class getProfileBookTab extends cbTabHandler {

function showpbstatus( $name_lenght, $pass_lenght, $horizontal, $class_sfx, &$params ) {
$return = "<a href=\""
.sefRelToAbs('index.php?option=com_comprofiler')
."\">Profile</a>";
return $return;[/code:1]
}



1) for unknown reasons the function name must match the trigger name
2) are you sure the plugin integration on your cblogin is enabled in module settings?

[code:1]$_PLUGINS->registerFunction( 'onAfterLoginForm', 'onAfterLoginForm','getProfileBookTab' );

class getProfileBookTab extends cbTabHandler {

function onAfterLoginForm( $name_lenght, $pass_lenght, $horizontal, $class_sfx, &$params ) {
$return = "<a href=\""
.sefRelToAbs('index.php?option=com_comprofiler')
."\">Profile</a>";
return $return;[/code:1]

Please Log in or Create an account to join the conversation.

  • user8600
  • user8600
  • OFFLINE
  • Posts: 24
  • Thanks: 0
  • Karma: 3
15 years 11 months ago #83247 by user8600
Replied by user8600 on topic Re:ProfileBook 1.0 - notify in cb_login
plugins are enabled in the cb_login module

i changed the name of the function, but it doesn't work again

no error, but also no output in the module.

i tested it with an own new class f.ex. getpbstatus (not the class from the functions of the whole tab)
but no chance to grt it working.

OnAfterLoginForm is the correct triggerpoint??? Or only OnAfterLogin ???? Is there anywhere a list of all triggerpoints of the module?

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum