It's update now, thanks.Galixte de EzCom wrote: ↑Sun Jun 10, 2018 10:13 pm Is this extension inside the new version of Custom Code extension?
Could you update the first post of this topic about the Custom Code information?
marttiphpbb_grouptempvars
Code: Select all
<div class="panel">
<h3>
all group ids:
</h3>
<p>
{%- for group_id, value in marttiphpbb_grouptempvars -%}
{{- group_id -}}
{%- if not loop.last -%}, {%- endif -%}
{%- endfor -%}
</p>
</div>
overall_header_content_before
: Code: Select all
{%- if marttiphpbb_grouptempvars.4 -%}
This content is only visible when the user is in group with id 4.
{%- endif -%}
Code: Select all
S_GROUP_ID
ID
was to be replaced with the id number of the group.That's what I was thinking, it's small enough that if something does break I can take a look, but all seems to be well. Either way, thanks for allowing me to do my job.
It works for me. Maybe there's an extension that unsets the user id on this page?pataluc wrote: ↑Sun Mar 17, 2019 10:41 pm hi, just a little digging of this nice extension here...
any idea why it seems not to work in certain pages? on my board app.php/help/faq for example, groups do not sho and i try to debug a little, this line: https://github.com/marttiphpbb/phpbb-ex ... er.php#L53 returns false, i cant explain why.
i have the mchat extension installed as well, and neither does it work there.
Code: Select all
<div class="panel">
<h3>
all group ids:
</h3>
<p>
{%- for group_id, value in marttiphpbb_grouptempvars -%}
{{- group_id -}}
{%- if not loop.last -%}, {%- endif -%}
{%- endfor -%}
</p>
</div>
http://localhost:8888/app.php/help/faq
:Code: Select all
debug_print_backtrace();
Code: Select all
#0 phpbb\db\driver\mysqli->_sql_close() called at [/var/www/html/phpbb/db/driver/driver.php:248]
#1 phpbb\db\driver\driver->sql_close() called at [/var/www/html/phpbb/db/driver/factory.php:393]
#2 phpbb\db\driver\factory->sql_close() called at [/var/www/html/includes/functions.php:4784]
#3 garbage_collection() called at [/var/www/html/includes/functions.php:4747]
#4 page_footer(1, , ) called at [/var/www/html/phpbb/controller/helper.php:95]
#5 phpbb\controller\helper->render(faq_body.html, Frequently Asked Questions) called at [/var/www/html/phpbb/help/controller/controller.php:74]
#6 phpbb\help\controller\controller->handle() called at [/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:135]