Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: get userid in plugin Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
osunix
Newbie
Newbie
Avatar

Joined: 21 April 2014
Location: Iran
Online Status: Offline
Posts: 3
Posted: 20 May 2014 at 11:45pm | IP Logged Quote osunix

I've created a plugin for Afterlogic it works fine but I need userid for saving data in db. like : id,userid,note
my question is how can I get userid in php and javascript?

Thanks for your advice.
Back to Top View osunix's Profile Search for other posts by osunix
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 20 May 2014 at 11:54pm | IP Logged Quote Igor

The latest sample plugin we've published a couple of days ago demonstrates a way of doing that:

Code:
$oAccount = $this->oPluginManager->Actions()->GetCurrentAccount();
          
return array(
     'Email' => $oAccount->Email,
... );


The above will get you the email address; you can also get user ID and account ID using $oAccount->IdUser and $oAccount->IdAccount, respectively.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
osunix
Newbie
Newbie
Avatar

Joined: 21 April 2014
Location: Iran
Online Status: Offline
Posts: 3
Posted: 21 May 2014 at 12:46am | IP Logged Quote osunix

Thank you so much.
Back to Top View osunix's Profile Search for other posts by osunix
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide