[Koha] How to Get Active logged in User Details Based on Sessions Running on Client machines

Arun Kumar arun.aimit.2010 at gmail.com
Thu Jun 19 19:52:53 NZST 2014


hi Jonathan,

Thanks for your support, I did expected a Technical answer though i didn't
where to post my question

i did try the snippet you sent before by passing the HASH keys into
get_template_and_user
function but had no results since i used

 my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user(
   {
         template_name   => "intranet-main.tmpl",
         query           => $query,
         type            => "intranet",
         authnotrequired => 0,
         flagsrequired   => { catalogue => 1, },
     }
     );
$fromemail=C4::Members::GetMember($borrowernumber => $loggedinuser);

this code snippet was put into Letters.pm in _send_message_by_email
function
but when i run  ./process_message_queue.pl in the terminal it
displays intranet-main.tmpl in HTML format

i dont understand where i went wrong

Thanks in advance

Regards

Arunkumar
National Institute of Oceanography
Dona-Paula, Goa, India


More information about the Koha mailing list