-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from rainlab/next
[2.x] Compatibility with RainLab.User v3
- Loading branch information
Showing
56 changed files
with
1,397 additions
and
768 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# License | ||
|
||
This plugin is an official extension of the October CMS platform and is free to use if you have a platform license. | ||
|
||
See End User License Agreement at https://octobercms.com/eula for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,50 @@ | ||
# User Plus+ plugin | ||
|
||
This plugin extends the [User plugin](http://octobercms.com/plugin/rainlab-user) with extra profile fields and features. | ||
This plugin extends the [User plugin](https://octobercms.com/plugin/rainlab-user) with extra profile fields and features. | ||
|
||
* Adds the following extra fields to a user: `phone`, `mobile`, `company`, `street_addr`, `city`, `zip`. | ||
* A user can belong to a Country and/or State, sourced from the [Location plugin](http://octobercms.com/plugin/rainlab-location). | ||
- Adds the following extra fields to a user: `company`, `phone`, `address_line1`, `address_line2`, `city`, `zip`, `state_id`, `country_id`. | ||
- Adds an Address Book to store multiple addresses for a user. | ||
- A user can belong to a Country and/or State, sourced from the [Location plugin](https://octobercms.com/plugin/rainlab-location). | ||
|
||
### Potential features | ||
View this plugin on the October CMS marketplace: | ||
|
||
* A user can befriend other users via a friendship system. | ||
* A user can earn "Experience Points" by performing predefined activities. | ||
- https://octobercms.com/plugin/rainlab-user | ||
|
||
> Note these features may or may not be implemented in the future, but act only as an indicator of the plugin's potential. | ||
### Address Book Component | ||
|
||
The `addressBook` component is used to manage multiple addresses for a user. Enable or disable the address book using the **System → User Settings → Profile** page. | ||
|
||
To see an example of the usage, we recommend installing this plugin with the `RainLab.Vanilla` theme. | ||
|
||
- https://github.com/rainlab/vanilla-theme | ||
|
||
### Notifications Component | ||
|
||
The `notifications` component is used to display notifications assigned to the user, it allows them to mark notifications as read. It is best to add this component to the layout, the component will render the popover in a hidden state. | ||
|
||
```twig | ||
{% component 'notifications' %} | ||
``` | ||
|
||
The link to display notifications can be anywhere, and should have the `data-notifications-toggle` attribute to trigger the popover. | ||
|
||
```html | ||
<button | ||
type="button" | ||
class="btn btn-default" | ||
data-notifications-toggle> | ||
View Notifications | ||
</button> | ||
``` | ||
|
||
You may also display a counter with the `notifications.hasUnread` check. | ||
|
||
```twig | ||
{% if notifications.hasUnread %} | ||
<span class="counter">{{ notifications.unreadCount }}</span> | ||
{% endif %} | ||
``` | ||
|
||
### License | ||
|
||
This plugin is an official extension of the October CMS platform and is free to use if you have a platform license. See [EULA license](LICENSE.md) for more details. |
Oops, something went wrong.