Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

PhpBB Extension - marttiphpbb Parameter Template Variables

Topic on phpBB.com

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:

{%- 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 -%}

In the previous version (for phpBB 3.1) this extension made the query parameters available in the form of:

PARAMTEMPVARS_<parameter_name_uppercase>

This format is still available but depreciated.

Requirements

  • phpBB 3.2.1+
  • PHP 7+

Quick Install

You can install this on the latest release of phpBB by following the steps below:

  • Create marttiphpbb/paramtempvars in the ext directory.
  • Download and unpack the repository into ext/marttiphpbb/paramtempvars
  • Enable Parameter Template Variables in the ACP at Customise -> Manage extensions.

Uninstall

  • Disable Parameter Template Variables in the ACP at Customise -> Extension Management -> Extensions.
  • To permanently uninstall, click Delete Data

Support

License

GPL-2.0

About

This extension creates template variables for every query parameter in the url

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages