Jump to content

Actionhook: AfterRegistrarRegistration


Ken1989

Recommended Posts

Hi, I want to add an action hook AfterRegistrarRegistration, but on manual no details about "params" can be found.

I searched the forum and put a file with these code:

<?php
function mypleskstuffforexample($vars) 
{ 
   $vars = func_get_args(); 
   echo "<pre>";print_r($vars);echo"</pre>";
file_put_contents("varoutput.txt",$vars,FILE_APPEND);	
} 
add_hook("AfterRegistrarRegistration",1,"mypleskstuffforexample",""); 
?>

But it doesn't work.

Anyone know "params" include what on action hook AfterRegistrarRegistration,AfterRegistrarTransfer and AfterRegistrarRenewal? Hurry to use these, plz help me.

Link to comment
Share on other sites

  • 3 months later...
Usually actionhooks or modules that echo things give some strange results. Try that hook without the echo.

 

I'm try get the params for each hook for use into my integration.

 

I try to save on mysql, show, so much time...

samebody can help?

 

I try using this...

$userid = $vars['params']['clientsdetails']['userid'];
$firstname = $vars['params']['clientsdetails']['firstname'];
$lastname = $vars['params']['clientsdetails']['lastname'];
$email = $vars['params']['clientsdetails']['email'];

 

or print to...

 echo "<pre>";
   echo("Domain is: " .$params[0]['params']['domains']);    // gives me "Domain is:"
   echo"</pre>"; 

 

Or this:

 

  add_hook("TicketUserReply",1,"action_br","");

function action_br($vars) {
echo "<pre>";print_r($params);echo"</pre>";
}

 

any help?

 

I change my configuration file to show error and see..

 

error_reporting(E_ALL); 
$display_errors = true;
$mysql_errors = true;

 

 

nothing too...

I'm want to get the userid, ticketid... many vars..

 

Thank you...

Edited by adrianoh2
Link to comment
Share on other sites

  • 7 months later...
  • 2 years later...

I am still having this problem. It doesnt seem to fire. I know that the normal return vars are $vars["params"]. But i dont get anything when i var_dump that. like i do with other hook points.

 

and loading debug on the page doesnt do any good cus there is no page in reality. There is the page you press accept on. But thats not techincally specifically the afterregistrarregistration hook.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated