Set default theme in PHPBB3, explain impact in docs

The default theme in PHPBB3 needs to be set or users cannot see the forum, this is needed because AA creates users without a theme set.

Docs explain impact and how to avoid when changing theme later on.
This commit is contained in:
soratidus999 2018-11-15 17:45:33 +10:00
parent d429c8b59a
commit 8dee61fd39

View File

@ -58,7 +58,7 @@ Nginx: `chown -R nginx:nginx /var/www/forums`
```eval_rst ```eval_rst
.. tip:: .. tip::
Nginx: Some distributions use the ``www-data:www-data`` user:group instead of ``nginx:nginx``. If you run into problems with permissions try it instead. Nginx: Some distributions use the ``www-data:www-data`` user:group instead of ``nginx:nginx``. If you run into problems with permissions try it instead.
.. ..
``` ```
@ -103,7 +103,7 @@ A minimal Nginx config file might look like:
} }
} }
Enter your forum's web address as the `PHPBB3_URL` setting in your auth project's settings file. Enter your forum's web address as the `PHPBB3_URL` setting in your auth project's settings file.
### Web Install ### Web Install
Navigate to your forums web address where you will be presented with an installer. Navigate to your forums web address where you will be presented with an installer.
@ -144,5 +144,15 @@ You can allow members to overwrite the portrait with a custom image if desired.
![location of change avatar setting](/_static/images/installation/services/phpbb3/avatar_permissions.png) ![location of change avatar setting](/_static/images/installation/services/phpbb3/avatar_permissions.png)
## Setting the default theme
Users generated via Alliance Auth do not have a default theme set. You will need to set this on the phpbb_users table in SQL
mysql -u root -p
use alliance_forum;
alter table phpbb_users change user_style user_style int not null default 1
If you would like to use a theme that is NOT prosilver or theme "1". You will need to deactivate prosilver, this will then fall over to the set forum wide default.
### Prepare Auth ### Prepare Auth
Once settings have been configured, run migrations and restart Gunicorn and Celery. Once settings have been configured, run migrations and restart Gunicorn and Celery.