View Single Post
Author Message
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 02-22-2012 , 13:53   [ANY] XenForo Admins (Threaded)
Reply With Quote #1

What is this?!
This allows for integration with XenForo. You can assign Admin Flags, or just immunity to clients if that's what you'd prefer.

THIS REQUIRES THE STEAM IDENTITY SERVICE BY DARK IMMORTAL

I CAN DO THIS BETTERRRRRR!
Ok. I'm not a database guy, so please expand on what's wrong and or correct it. Always share your changes!

This Sucks!


Are there any ConVars?
Yes there are as of 1.4.
sm_xenforo_fieldname - Field name used for grabbing the clients SteamID.

Steam - Steam Identity Service

What does my file need to look like?
Good Question!
FilePath: Path_SM configs/XenForoAdminTranslations.cfg
(So for the ordinary install it's just addons/sourcemod/configs/XenForoAdminTranslations.cfg )

The section name is for your respective group number on your site. Ie if you want to assign every Member with the flag c, you'd lookup the group number and place it in the file.

The Keys are basically what you're already using with FlatFile.

For example, this is what a file can look like. Huge thanks to Brian for creating it.

PHP Code:
"8" // Level 2
{
        
"Flags" "kp"
        "Immunity"      "2"
}

"7" // Level 1
{
        
"Flags" "cdo"
        "Immunity"      "1"
}

"14" // Admin Base
{
        
"Flags" "abj"

Thanks to:

Jake Bunce Who actually knows the Answer to Everything.
Brian Alpha, Beta, Release testing this, and to suggest such a plugin be made.
PlagueFest Taking the Step forward to test.
Attached Files
File Type: sp Get Plugin or Get Source (XenForoAdmins.sp - 1603 views - 9.5 KB)

Last edited by KyleS; 03-07-2012 at 11:01.
KyleS is offline