ghanja.be
NederlandsEnglish
Contact Us

Ghanja
Welkom, Gast
Alstublieft Inloggen of Registreren.    Wachtwoord verloren?
the 'onAfterStoreUser' event is not called. (1 bezoeker) (1) Gast
Ga naar onderkant Reageer Favoriet: 0
TOPIC: the 'onAfterStoreUser' event is not called.
#144
carsten888 (Gebruiker)
Fresh Boarder
Berichten: 4
graphgraph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
the 'onAfterStoreUser' event is not called. 1 Jaar, 1 Maand geleden Karma: 0  
The reason why this extension is not compatible with any other extension that deals with users in Joomla is because this extension does not call the 'onAfterStoreUser' event. Except for CB, because that is integrated.

Please in the next version, add this event call. (see also post about k2-compatibility).
 
  Het onderwerp is afgesloten.
#147
Webmaster (Admin)
Administrator
Berichten: 194
graph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Re:the 'onAfterStoreUser' event is not called. 1 Jaar, 1 Maand geleden Karma: 1  
Hi,
I have two extensions adding users to joomla. Both do not call the 'onAfterStoreUser' event. Which one where you talking about, one click registration or add user front end?

Tnx for your help. But what does this event do exactly?

Is it a way to tell joomla that a new user has been added and also needs to take in account that there are some other components?

Because if this were the case there would be no need to insert more data directly to the msql database to make components as K2 and others joomla components work with my components.
Kim
 
  Het onderwerp is afgesloten.
#148
carsten888 (Gebruiker)
Fresh Boarder
Berichten: 4
graphgraph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Re:the 'onAfterStoreUser' event is not called. 1 Jaar, 1 Maand geleden Karma: 0  
QUOTE:
Which one where you talking about, one click registration or add user front end?

add user front end

QUOTE:
But what does this event do exactly?

it tells all other extensions that a user has been inserted or updated, so each extension can update user data etc.

QUOTE:
Is it a way to tell joomla that a new user has been added and also needs to take in account that there are some other components?

yes.

[offtopic]
enne... update dit forum naar Kunena, Fireboard heeft een lek.
[/offtopic]
 
  Het onderwerp is afgesloten.
#149
Webmaster (Admin)
Administrator
Berichten: 194
graph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Re:the 'onAfterStoreUser' event is not called. 1 Jaar, 1 Maand geleden Karma: 1  
Hi,
I tried adding that event with this code:

// Fire the onAfterStoreUser trigger
JPluginHelper::importPlugin('user';
$dispatcher =& JDispatcher::getInstance();
$dispatcher->trigger('onAfterStoreUser', array($user->getProperties(), true, true, $this->getError()));


But how do i know if the code is correct? I dont get any errors but i need a way to see if it is working. Do you know how i can test it out?
 
  Het onderwerp is afgesloten.
#156
carsten888 (Gebruiker)
Fresh Boarder
Berichten: 4
graphgraph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Re:the 'onAfterStoreUser' event is not called. 1 Jaar, 1 Maand geleden Karma: 0  
there is only one way to know for sure, and that is to test.

In the attachement is a test-user plugin. If that is installed and a user is registered, there will be a message 'do something!'. Try that in the user-manager and then then with your extension.
Bijlage:
Bestandsnaam: test_user_plugin.zip
Bestandsgrootte: 1611
 
  Het onderwerp is afgesloten.
#161
Webmaster (Admin)
Administrator
Berichten: 194
graph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Re:the 'onAfterStoreUser' event is not called. 1 Jaar, 1 Maand geleden Karma: 1  
Hey
Well at first it wouldnt work. Not with the files you have send me. But You did put me on the right track. I duplicated and edited the example user plugin which comes with joomla and it worked.

New in version 1.2.4:
The add user frontend component now calls the onAfterStoreUser event which tells joomla and 3rd party extensions that a user has been inserted or updated, so each extension can what needs to be done. This results in better compatibility with other joomla extensions.

Offcourse i should also implement this code in the one click registration component.

And it also showed me how i can make extra plugins for the components to integrate with 3rd party components.

So thank you very much for bringing up the subject in the forum here This is the way that good open source scripts are made
Grtz Kim
 
  Het onderwerp is afgesloten.
#162
carsten888 (Gebruiker)
Fresh Boarder
Berichten: 4
graphgraph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Re:the 'onAfterStoreUser' event is not called. 1 Jaar, 1 Maand geleden Karma: 0  
sorry I seem to have posted the wrong zip. Glad to hear you got it working. good luck with your extensions.
 
  Het onderwerp is afgesloten.
#340
chrysanta (Bezoeker)
Fresh Boarder
Berichten: 1
graphgraph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Re:the 'onAfterStoreUser' event is not called. 5 maanden geleden Karma: 0  
SPAM - USER Banned!
 
 
Laatste Wijziging: 20/12/2011 16:22 Door Webmaster.
  Het onderwerp is afgesloten.
Ga naar bovenkant Reageer
Powered by FireBoardbezorg de laatste berichten direct op de desktop
Ghanja Alternatief - Community voor een open wereld!
   
Copyright © 2005 - 2012 Ghanja.be - Sitemap