Extension Name: Parameter Template Variables
Author: martti
Extension Description:
The extension makes all query parameters of the current url available in the template. They are all put under the template variable
marttiphpbb_paramtempvars
I.e:
Code: Select all
{%- if SCRIPT_NAME == 'ucp' and marttiphpbb_paramtempvars.i == 'pm' -%}
This content is only visible in the private messages page in the UCP...
Url: https://your-domain.org/ucp.php?i=pm
{%- endif -%}
Code: Select all
<ul>
{%- for key, value in marttiphpbb_paramtempvars -%}
<li>{{- key -}}: {{- value -}}</li>
{%- endfor -%}
</ul>
In the previous version (for phpBB 3.1) this extension made the query parameters available in the form of:
Code: Select all
PARAMTEMPVARS_<parameter_name_uppercase>
Extension Version: 0.2.0
Requirements: PhpBB 3.2.1+ PHP 7+
Extension Download: https://github.com/marttiphpbb/phpbb-ex ... master.zip The files are to be put in
ext/marttiphpbb/pramtempvars
Github repository: https://github.com/marttiphpbb/phpbb-ext-paramtempvars
Languages: n/a
Templates: all (n/a)
Screenshots: n/a