Note: This requires phpBB > 3.1.
Copy the files to phpBBroot/ext/loki/login/{auth/provider/,config/} etc. Check
that the include path to forum_mysqlconn.inc.php (storing db info for
sgdb) in phpBBroot/ext/loki/login/{auth/provider/loki_auth.php is correct.
The path is relative to the phpBBroot dir.
Login to the phpBB admin panel, go to Customize tab then Extensions Management
and enable phpBB loki Authentication Go to General tab then CLIENT
COMMUNICATION > Authentication and set loki_auth as the authentication
module.
Now all logins will be checked just with the loki_auth driver. (the DB logins
are ignored, be careful with your admin user : YOU MUST HAVE AN USER WITH THE
SAME LOGIN IN sgdb!)
If the user is validated by the loki_auth driver, phpBB will check if the
account exists in its own database. If the user is validated but the account
does not exist in the phpBB database, the login information will be duplicated
in the database. It permits to have the option to switch to the default phpBB
auth driver as all the logins will already exist (as they were at the users’
first connection) .
See this link for additional info on how to create an extension. This link is
somewhat outdated, but the return values describes are still valid
phpBBroot/includes/constants.php contains the constants used.
NB. This link describes how to change the board logo. Convert to/from png and then rename it to gif, in order to preserve quality. Eq.
convert lion.png -resize 52x52 site_logo.png
mv site_logo.png site_logo.gifInstead of pawse wrote: when quoting, this modification shows pawse » Thu Mar
26, 2015 10:24 am wrote:. Change phpBBroot/posting.php, line 1575, to the
following:
//$message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";
$message_parser->message = '[quote="' . '[url=' . generate_board_url() . "/viewtopic.$phpEx?p=$post_id#p$post_id" . ']' . $post_data['quote_username'] . ' » ' . $user->format_date($post_data['post_time']) . '[/url]' . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";In posting.php search for // validate username and insert the
following just before // validate username
// Tjek at der er skrevet et username, når man poster som guest - Paw
if ((utf8_strlen($post_data['username']) < 3) && !$user->data['is_registered'])
{
$error[] = $user->lang['TOO_SHORT_USERNAME'];
}“Username” is in the language files. Though, the same is used all over the forum, so if you change it in the language file, the term gets modified at several other places as well.
You may add a new entry in the language file, e.g. GUESTNAME or YOURNAME and use that instead in posting_editor.html. https://www.phpbb.com/community/viewtopic.php?f=74&t=2164909
Se også filen forum/language/n/common.php ‘USERNAME’ => ‘Navn’, //
og forum/styles/prosilver/template/posting_editor.html
I filen newpost2mail.php
Linje 51:´Tilføj følgende
// Paw: Vis det brugernavn folk skriver i navne-feltet hvis de ikke er logget ind.
if ($user->data['is_registered'])
$post_USERNAME = $user->data['username'];
else
$post_USERNAME = $post_data['username'];Linje 132: Hvis det ønskes, kan fra feltet i mailen ændres i denne linje.
$headers .= "From: \"".mail_encode(html_entity_decode($config[sitename]))."\" <$config[board_email]>\n";Linje 176: Tilføj følgende
// Paw: indsæt ekstra mellemrum mellem informational table og selve indholdet
$message .= "\n";Linje 249: Udkommenter donationsfooter