This is the second version of the xenforo2 forum and game server communication plugin (
https://forums.alliedmods.net/showthread.php?p=2666188).
I decided to post the branch of this plugin separately.
It has a number of differences:
Now the plugin is modular and has:
- Core (xf_forum.smx)
- Plugin for issuing admins (xf_forum_admin.smx)
- Color settings (xf_forum_chat.smx)
Configs Settings
The admin settings have not changed:
PHP Code:
"admin"
{
"20" //Group ID from XF admin panel.
{
"flags" "t" //admin flags
"immunity" "0" //admin immunity
}
}
Color Settings:
PHP Code:
"chat"
{
"2" //Group ID from XF admin panel.
{
"tag" "[Test]" //Tag
"tag_color" "ff0000" //Tag Color
"name_color" "ab5815" //Name Color
"text_color" "050404" //Text Color
}
"3"
{
"tag" "[Test Tag 2]"
"tag_color" "ff0000"
"name_color" "00ff00"
"text_color" "0000ff"
}
}
Database
PHP Code:
"xf_forum"
{
"driver" "mysql"
"host" "host"
"database" "DB"
"user" "user"
"pass" "pass"
}
Known bugs:- Chat colors that start with “0” can break text.
- You will have double messages if you use other plugins that affect the color of the chat.
Tested with this plugin Steam integration:
https://s70.su/steam-integration.html