View Full Version : Actionhook: AfterRegistrarRegistration
Ken1989
02-22-10, 06:24 AM
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.
logicsurge
02-22-10, 02:11 PM
Usually actionhooks or modules that echo things give some strange results. Try that hook without the echo.
adrianoh2
06-01-10, 04:38 PM
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...
host4site
01-20-11, 10:53 PM
add this to the page {debug} and reload it, you will see a popup with all available vars you can use.
synik4l
05-13-13, 01:53 PM
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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.