A private messaging plugin for the pybbm forum.
Project description
=====
PYBBM Private Messages
=====
This is a plugin to add private messaging to the django forum solution `pybb`
Prerequisites:
1. `Django>=1.8`
2. `pybbm>=0.17`
Quick Start
1. `pip install pybbm-private-messages`
2. Add `private_messages` to your `INSTALLED_APPS` in `settings.py` BEFORE `pybb` (it overrides some templates)
3. Add `django_select2` to your `INSTALLED_APPS`
4. Run `manage.py migrate private_messages`
5. Add the urls to your project `urls.py` file, e.g.:
```
urlpatterns = [
...
url(r'^forum/', include('pybb.urls', namespace='pybb')),
url(r'^forum/', include('private_messages.urls', namespace='private_messages')),
]
```
6. Add `'private_messages.context_processors.unread_messages'` to your template context processors in settings.
7. Adding a `{% block private_messages %}{% endblock %}` to your `PYBB_TEMPLATE` will place a link to the inbox with the text: "Inbox" and a bootstrap badge adjacent to it with the number of unread messages, if there are any. For just the number of unread messages, use `{% block unread_msgs %}{% endblock %}`.
PYBBM Private Messages
=====
This is a plugin to add private messaging to the django forum solution `pybb`
Prerequisites:
1. `Django>=1.8`
2. `pybbm>=0.17`
Quick Start
1. `pip install pybbm-private-messages`
2. Add `private_messages` to your `INSTALLED_APPS` in `settings.py` BEFORE `pybb` (it overrides some templates)
3. Add `django_select2` to your `INSTALLED_APPS`
4. Run `manage.py migrate private_messages`
5. Add the urls to your project `urls.py` file, e.g.:
```
urlpatterns = [
...
url(r'^forum/', include('pybb.urls', namespace='pybb')),
url(r'^forum/', include('private_messages.urls', namespace='private_messages')),
]
```
6. Add `'private_messages.context_processors.unread_messages'` to your template context processors in settings.
7. Adding a `{% block private_messages %}{% endblock %}` to your `PYBB_TEMPLATE` will place a link to the inbox with the text: "Inbox" and a bootstrap badge adjacent to it with the number of unread messages, if there are any. For just the number of unread messages, use `{% block unread_msgs %}{% endblock %}`.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pybbm-private-messages-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a8eea53c8cb921ea0d9c213a71f88d59137c715cca840c526661a084321b05b |
|
MD5 | e96993d20f91349c92d7ca0df95acff1 |
|
BLAKE2b-256 | 81fc30f96219dd0c6ac2bc81c671e5cc80c57acb8ff8e124a4d96bca1ede9cd9 |
Close
Hashes for pybbm_private_messages-0.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 649ccf06d2c391f25af699a540f34fcb1a696638551505c7d058a04a3896b5f4 |
|
MD5 | 7ff29ef3b8ba7f6c43cb1484ae84e727 |
|
BLAKE2b-256 | b25a0e5cdd2c8cacef8c4e4ca50f540238bc25f7d9e7c2c5d1136a6f550801d9 |