Code to Load Options ?

HappyWorld

Well-known member
Hello.

I am trying to do something like this.

If user's IP is 1.1.1.1, then boardTitle = 'A'
otherwise, boardTitle = 'B'

How can i do that? Whether by modifying the core, or using add on.

The closest thing that i can find is this line in /library/Xenforo/Application.php :
PHP:
    /**
    * @return XenForo_Options
    */
    public static function getOptions()
    {
        return self::get('options');
    }
 
Top Bottom