Skip to main content

Getting Logged in users details (UID)

Comments

3 comments

  • AndrewH.
    Here is the docs on NVData::Get
    0
  • Megan Davidson
    Thanks for the quick reply. I'm just basing my idea's on what was in the original php plugin code: // LOAD CP MODULE TO GET CONFIG DATA //================================================================ $current_user_uid = $_CPANEL['USERDATA">['uid">; It's getting the $_CPANEL from the 'loadvars' internal call, I'm not sure how to emulate this in a Template Toolkit.
    0
  • Megan Davidson
    It seems I was missing 'USE Api 2;', so adding that has fixed the errors now. I've gone through the docs and cannot find any equivalent call in the Template Toolkit to load the same values as 'loadvars' from the '' php example. This will give me the details I need.
    0

Please sign in to leave a comment.