0

I wrote a plugin for joomla that adds custom fields to the user/register component. There are 3 different registration forms for different user groups.

The plugin acts on onUserAfterSave() and works fine, but there is one problem. When there is an error in the original user component, for example: "the username has already been taken" the form is redirected and neither onUserAfterSave() or onUserBeforeSave() is ever called.

I want to change that redirection, but without changing the core, but since neither plugin events are called, im not sure how to. Can you guys help me? Maybe I am missing something!

Is it possible to maybe override the save() function?

THANKS

4

3 に答える 3

0

プラグインで joomla が行っているチェックを行い、合格しない場合はプラグイン自体をリダイレクトする必要があると思います。私はあなたの苦境を見て、より良い方法を知りませんが、別のイベントを選択して、おそらくページの読み込み後でも実行し、次に JavaScript の UI イベントで実行します。

于 2013-11-07T17:04:17.267 に答える