From 8dee61fd3928729df0b4558f4133347f820bfe3e Mon Sep 17 00:00:00 2001 From: soratidus999 Date: Thu, 15 Nov 2018 17:45:33 +1000 Subject: [PATCH] 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. --- docs/installation/services/phpbb3.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/installation/services/phpbb3.md b/docs/installation/services/phpbb3.md index ab4abf9d..429db0a2 100644 --- a/docs/installation/services/phpbb3.md +++ b/docs/installation/services/phpbb3.md @@ -58,7 +58,7 @@ Nginx: `chown -R nginx:nginx /var/www/forums` ```eval_rst .. 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 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) +## 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 Once settings have been configured, run migrations and restart Gunicorn and Celery.