Ken1989 Posted February 22, 2010 Share Posted February 22, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
logicsurge Posted February 22, 2010 Share Posted February 22, 2010 Usually actionhooks or modules that echo things give some strange results. Try that hook without the echo. 0 Quote Link to comment Share on other sites More sharing options...
adrianoh2 Posted June 1, 2010 Share Posted June 1, 2010 (edited) 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 June 1, 2010 by adrianoh2 0 Quote Link to comment Share on other sites More sharing options...
gk-root Posted January 20, 2011 Share Posted January 20, 2011 add this to the page {debug} and reload it, you will see a popup with all available vars you can use. 0 Quote Link to comment Share on other sites More sharing options...
synik4l Posted May 13, 2013 Share Posted May 13, 2013 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.