Search found 124 matches

by rxu
Thu Jan 22, 2015 4:52 pm
Forum: [3.x] Event Requests
Topic: [PHP]core.ucp.profile_on_change.php
Replies: 4
Views: 8339

Re: [PHP]core.ucp.profile_on_change.php

Related to event request viewtopic.php?f=111&t=33744
by rxu
Sun Sep 14, 2014 3:48 am
Forum: [3.x] Event Requests
Topic: [RFC] profile_update hook
Replies: 10
Views: 17302

Re: [RFC] profile_update hook

The problem implementing this request is that ucp_profile.php doesn't hold 'before_update' data but just 'after_update' which users table is updated with.
Actually, 'before_update' data can be obtained within the listener if we place an event before the 'UPDATE' sql query execution.
by rxu
Sun Sep 14, 2014 3:29 am
Forum: [3.x] Event Requests
Topic: [PHP] core.user_activate
Replies: 6
Views: 8538

Re: [RFC] User activate hook

Tomba
Will it work for you adding an event before the if (sizeof($sql_statements)) having $sql_statements, $deactivated, $activated passed to it?
by rxu
Sun Sep 14, 2014 3:19 am
Forum: [3.x] Event Requests
Topic: [PHP]core.ucp.profile_on_change.php
Replies: 4
Views: 8339

Re: [PHP]core.ucp.profile_on_change.php

roelandaernoudts , I think it's hardly possible to add an event before the function main() because this is the class definition area, so there's nowhere to get phpbb dispatcher object instance. Could you take a further look at the ucp_profile.php, probably it will work if adding an event within mod...