Jorandh
03-11-2015, 10:00 PM
This is a step-by-step guide on how to enable SSL within the Admincp ONLY, so you can use http:// troughout the whole board, but enable https:// usage when you're in the admincp.
Find in /includes/functions.php:
$url = normalize_path($url);
Add after (on a new line!):
$url = (strpos($url, '/admincp') === true ? str_replace('http://', 'https://', $url) : $url);
Find in/includes/adminfunctions.php:
var AJAXBASEURL = \"" . VB_URL_BASE_PATH . "../\";
Replace with:
var AJAXBASEURL = \"" . str_replace('http://', 'https://', VB_URL_BASE_PATH) . "../\";
Find in /admincp/index.php:
$versionhost = REQ_PROTOCOL . '://version.vbulletin.com';
Replace with:
$versionhost = '//version.vbulletin.com';
Find in /admincp/index.php:
<form action="http://www.ph' . 'p.net
Replace with:
<form action="https://www.ph' . 'p.net
Find in /admincp/index.php:
<form action="http://www.mysql.com/
Replace with:
<form action="https://www.mysql.com/
That's all, I hope you'll enjoy this little tweak as much as I do myself.
Find in /includes/functions.php:
$url = normalize_path($url);
Add after (on a new line!):
$url = (strpos($url, '/admincp') === true ? str_replace('http://', 'https://', $url) : $url);
Find in/includes/adminfunctions.php:
var AJAXBASEURL = \"" . VB_URL_BASE_PATH . "../\";
Replace with:
var AJAXBASEURL = \"" . str_replace('http://', 'https://', VB_URL_BASE_PATH) . "../\";
Find in /admincp/index.php:
$versionhost = REQ_PROTOCOL . '://version.vbulletin.com';
Replace with:
$versionhost = '//version.vbulletin.com';
Find in /admincp/index.php:
<form action="http://www.ph' . 'p.net
Replace with:
<form action="https://www.ph' . 'p.net
Find in /admincp/index.php:
<form action="http://www.mysql.com/
Replace with:
<form action="https://www.mysql.com/
That's all, I hope you'll enjoy this little tweak as much as I do myself.