Olav Reinert c94236
# vBulletin 5 Setup for openSUSE Forums
Olav Reinert c94236
Olav Reinert 77ea8e
Brief setup instructions:
Olav Reinert 77ea8e
Olav Reinert 77ea8e
 1. Prepare the binaries as instructed in [init.sls](init.sls).
Olav Reinert 77ea8e
 1. ``salt-call state.apply grains``
Olav Reinert 77ea8e
 1. ``salt-call state.apply pillar='{"vbulletin":{"tools":"yes"}}'``
Olav Reinert 77ea8e
 1. ``cd /srv/www/vhosts/forums/``
Olav Reinert 77ea8e
 1. ``(cd htdocs/core/install; sudo -u nginx php -f upgrade.php)``
Olav Reinert 77ea8e
 1. `` mysql webforums 
Olav Reinert 77ea8e
 1. ``(cd htdocs/core/install; sudo -u nginx php -f upgrade.php)``
Olav Reinert 77ea8e
 1. ``salt-call state.apply``
Olav Reinert 77ea8e
Olav Reinert 77ea8e
## vBulletin setup tools
Olav Reinert c94236
Olav Reinert c94236
If the pillar ``vbulletin.tools`` is truthy, the extra files described below
Olav Reinert 77ea8e
are available to aid with setup of vBulletin.
Olav Reinert c94236
Olav Reinert c94236
**It is important to disable the ``vbulletin.tools`` pillar and running
Olav Reinert c94236
``highstate`` again to remove the files before production use.**
Olav Reinert c94236
Olav Reinert c94236
### ``/srv/www/vhosts/forums/db-tweak.sql``
Olav Reinert c94236
Olav Reinert c94236
Running this SQL script on the vBulletin database will:
Olav Reinert c94236
Olav Reinert c94236
  * Set up the correct grants for the database user.
Olav Reinert c94236
  * Define the site URL correctly for template setup
Olav Reinert c94236
  * Adjust various other vBulletin settings
Olav Reinert c94236
Olav Reinert c94236
After running the script, run ``core/install/upgrade.php`` again to make sure
Olav Reinert c94236
the templates are set up correctly.
Olav Reinert c94236
Olav Reinert c94236
### ``/srv/www/vhosts/forums/htdocs/vb_test.php``
Olav Reinert c94236
Olav Reinert c94236
A tool for checking that vBulletin is installed correctly, including all
Olav Reinert c94236
dependencies, as well as verifying that it is possible to connect to the
Olav Reinert c94236
database.
Olav Reinert c94236
Olav Reinert c94236
### ``/srv/www/vhosts/forums/htdocs/info.php``
Olav Reinert c94236
Olav Reinert c94236
Shows ``phpinfo()`` for the forum server.
Olav Reinert c94236
Olav Reinert c94236
## Styling
Olav Reinert c94236
Olav Reinert c94236
These steps achieve a minimal styling suitable for openSUSE Forums.
Olav Reinert c94236
Olav Reinert c94236
Enable the _Default vB5 Style_, then customize these style variables:
Olav Reinert c94236
Olav Reinert c94236
 * ``global_palette_accent_02`` = #73ba25
Olav Reinert c94236
 * ``global_palette_text_04`` = #5a911d
Olav Reinert c94236
Olav Reinert 77ea8e
Finally, change the [site logo](files/logo-color-90.png).
Olav Reinert c94236