If you are using the custom template variable in functions.php you do not need all that Twig in the template. That is only for situations where you can't use core file hacks or an extension. For example, if you wanted to have the style approved for the Styles DB on this site you would need a template-only solution, because they won't approve styles that rely on core hacks or extensions.
If you are using the functions.php hack you just need something like this:
If you are using the functions.php hack you just need something like this:
Code:
{% if S_REGISTERED_USER and S_AVATARS_ENABLED and (postrow.POSTER_ID is same as CURRENT_USER_GB %}<a href="./ucp.php?i=ucp_profile&mode=avatar"><i class="fa-solid fa-camera" aria-hidden="true"></i></a>{% endif %}
Statistics: Posted by Gumboots — Wed Apr 09, 2025 7:35 pm