NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

uuid samrty variable on profile page
Started by nimbus321

nimbus321

nimbus321

Member
Joined
08 Dec 2021
Last Seen
03 Apr 2022
Topics
2
Posts
5

Hi, I'm very new to the world of smarty and how to use it. I just need a smarty variable of the UUID of the player's profile accessible on the profile template, I know that the php that assigns the values on that page is modules/Core/pages/profile.php

    $smarty->assign(array(
        'ProfilePlayerUuid' => XXXXX,
        'NICKNAME' => $profile_user->getDisplayname(true),
        'USERNAME' => $profile_user->getDisplayname(),

I don't know all the infrastructure of nameless (and don't know much of smarty nether), so the question is, what exactly would I need to put on "XXXXX" to search for the player's profile UUID?

I really hope this is possible, and thanks for the answer in advance!

nimbus321 · over 2 years ago
nimbus321

nimbus321

Member
Joined
08 Dec 2021
Last Seen
03 Apr 2022
Topics
2
Posts
5

Just in case I'd like to note that the UUID of the player viewing the page is not the same as the player's profile

nimbus321 · over 2 years ago
Aberdeener

Aberdeener

Developer Community Moderator Support
Joined
16 Feb 2019
Last Seen
05 May 2023
Topics
1
Posts
17
$profile_user->data()->uuid

This should do the trick for you

Aberdeener · over 2 years ago
nimbus321

nimbus321

Member
Joined
08 Dec 2021
Last Seen
03 Apr 2022
Topics
2
Posts
5

Thanks!

nimbus321 · over 2 years ago