Skip to content

Commit

Permalink
phpBB3.2.1 PHP7 v 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eeemarv committed Jun 19, 2018
1 parent 296591f commit 6e07956
Show file tree
Hide file tree
Showing 10 changed files with 930 additions and 281 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
composer.phar
vendor
.dist
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

33 changes: 24 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,45 @@
### phpBB 3.1 PhpBB Extension - marttiphpbb Group Template Variables
# phpBB extension marttiphpbb Group Template Variables

This simple extension adds a Template variable for each group the user is in. So you can do conditional checks like this:
[Topic on phpbb.com](https://www.phpbb.com/community/viewtopic.php?f=456&t=2325391)

<!-- IF S_GROUP_8 --> Content only visible if your in group with id 8 <!-- ENDIF -->
The extension provide a template variable for every group the current user is in. They are all put under the template variable `marttiphpbb_grouptempvars`

I.e:

{%- if marttiphpbb_grouptempvars.8 -%}
This content is only visible when the user is in group with id 8.
{%- endif -%}

In the previous version (for phpBB 3.1) this extension the variables were available in the form of:

S_GROUP_<group_id>

This format is still available but depreciated.

This extension might be useful together with the [Custom Code](https://github.com/marttiphpbb/phpbb-ext-customcode) extension.

#### Quick Install
## Requirements

* phpBB 3.2.1+
* PHP 7+

## Quick Install

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

* Create `marttiphpbb/grouptempvars` in the `ext` directory.
* Download and unpack the repository into `ext/marttiphpbb/grouptempvars`
* Enable `Group Template Variables` in the ACP at `Customise -> Manage extensions`.

#### Uninstall
## Uninstall

* Disable `Group Template Variables` in the ACP at `Customise -> Extension Management -> Extensions`.
* To permanently uninstall, click `Delete Data`. Optionally delete the `/ext/marttiphpbb/grouptempvars` directory.

#### Support
## Support

* **Important: Only official release versions validated by the phpBB Extensions Team should be installed on a live forum. Pre-release (beta, RC) versions downloaded from this repository are only to be used for testing on offline/development forums and are not officially supported.**
* Report bugs and other issues to the [Issue Tracker](https://github.com/marttiphpbb/phpbb-ext-grouptempvars/issues).
* Support requests should be posted and discussed in the [Group Template Variables topic at phpBB.com](https://www.phpbb.com/community/viewtopic.php?f=456&t=2325391).

#### License
## License

[GPL-2.0](license.txt)
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"type": "phpbb-extension",
"description": "Group Template Variables Extension for phpBB 3.1",
"homepage": "https://github.com/marttiphpbb/phpbb-ext-grouptempvars",
"version": "0.1.0",
"time": "2015-06-08",
"version": "0.2.0",
"time": "2018-06-19",
"keywords": ["phpbb", "extension", "template", "groups"],
"license": "GPL-2.0",
"authors": [{
Expand All @@ -14,15 +14,15 @@
"role": "Developer"
}],
"require": {
"php": ">=5.3.3"
"php": ">=7"
},
"require-dev": {
"phpbb/epv": "dev-master"
},
"extra": {
"display-name": "Group Template Variables",
"soft-require": {
"phpbb/phpbb": ">=3.1.0,<3.2.*@dev"
"phpbb/phpbb": ">=3.2.1"
},
"version-check": {
"host": "marttiphpbb.github.io",
Expand Down
Loading

0 comments on commit 6e07956

Please sign in to comment.