This is a plugin to add private messaging to the django forum solution pybb
Prerequisites:
Django>=1.8
pybbm>=0.17
Quick Start
pip install pybbm-private-messages
- Add
private_messages
to yourINSTALLED_APPS
insettings.py
BEFOREpybb
(it overrides some templates) - Add
django_select2
to yourINSTALLED_APPS
- Run
manage.py migrate private_messages
- 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')),
]
- Add
'private_messages.context_processors.unread_messages'
to your template context processors in settings. - Adding a
{% block private_messages %}{% endblock %}
to yourPYBB_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 %}
.