How to make your forum accessible from IP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    How to make your forum accessible from IP

    If your forum has dedicated IP, at this moment if you visit the forum from IP, the style will broken.

    To fix this, go to admincp > plugins & products > add new plugin
    Product : vbulletin
    Hook location : init_startup
    Title : type whatever here
    Execution order : 5 (default)
    Plugin PHP Code :
    PHP Code:
    if (isset($_SERVER['HTTP_HOST'])) {    $x_ip '1.2.3.4';    $x_domain 'yourdomain.com';    $x_http_host strtolower($_SERVER['HTTP_HOST']);    if ($x_http_host == $x_ip) {        $vbulletin->options['bburl'] = 'http://'.$x_ip;        $vbulletin->options['homeurl'] = 'http://'.$x_ip;    } else if ($x_http_host != 'localhost' && $x_http_host != '127.0.0.1' && $x_http_host != $x_domain && $x_http_host != 'www.'.$x_domain) {        echo '?';        exit();    }} 
    Plugin is active : yes

    Click save.
    Done.

    At this moment the bug that i know is the images on bbcode button editor won't appear.
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    This is something for vBulletin.org, but really you should always access the site from its intended url. Cookie settings can cause big problems as well.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...