Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2255

Extensions in Development • Re: [3.2][BETA] All Users Groups Template Variables

$
0
0
Hi, this is a fantastic extension, exactly what I need. I thought it was working perfectly, but I have run into two issues:

On viewtopic_body, it only prints what's inside the if-statement when the group number is a single digit. So this does not work:

Code:

{%- if marttiphpbb_allusersgroupstempvars[postrow.POSTER_ID][12] -%}        This content is only visible if the poster belongs to group 12    {%- endif -%}
But this does:

Code:

{%- if marttiphpbb_allusersgroupstempvars[postrow.POSTER_ID][9] -%}        This content is only visible if the poster belongs to group 9    {%- endif -%}
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?

Also, the UCP code is not working for me regardless. I have placed this in both ucp_header and ucp_profile_profile_info, and it's not printing:

Code:

{%- if marttiphpbb_allusersgroupstempvars[AUTHOR_ID][5] -%}        This content is only visible if the author belongs to group 5    {%- endif -%}
Thank you for any help!
There is no AUTHOR_ID on that page.

Statistics: Posted by martti — Sun Jul 20, 2025 3:56 am



Viewing all articles
Browse latest Browse all 2255

Trending Articles