Harrison Martes Posted May 12, 2021 Posted May 12, 2021 (edited) Hello, I am working on a friend's forum (IPS 4.5) and I have a question, in the theme editor, I can show the name of the logged user using {member = "name"}, how do I get the username from an external .php page that is inserted in the forum using {insert = ""}? Thanks. Edited May 12, 2021 by Harrison Martes
Ryan Ashbrook Posted May 12, 2021 Posted May 12, 2021 When you use the insert output plugin, then file is then included. As a result, it has access to the IPS4 Framework, so you could do: <?php echo \IPS\Member::loggedIn()->name; SeNioR- and Harrison Martes 2
Recommended Posts