It seems impossible that is depends on the number of digits. Perhaps the poster is in group 9 but not in group 12? Or you have made a typo?Hi, this is a fantastic extension, exactly what I need. I thought it was working perfectly, but I have run into two issues:
Onviewtopic_body, it only prints what's inside the if-statement when the group number is a single digit. So this does not work:But this does:Code:
{%- if marttiphpbb_allusersgroupstempvars[postrow.POSTER_ID][12] -%} This content is only visible if the poster belongs to group 12 {%- endif -%}Code:
{%- if marttiphpbb_allusersgroupstempvars[postrow.POSTER_ID][9] -%} This content is only visible if the poster belongs to group 9 {%- endif -%}
There is noAlso, the UCP code is not working for me regardless. I have placed this in bothucp_headeranducp_profile_profile_info, and it's not printing:Thank you for any help!Code:
{%- if marttiphpbb_allusersgroupstempvars[AUTHOR_ID][5] -%} This content is only visible if the author belongs to group 5 {%- endif -%}
AUTHOR_ID on that page.Statistics: Posted by martti — Sun Jul 20, 2025 3:56 am