Starting vB 5.7.2, a new feature called "URL Preview" was implemented. If you place a URL on its own line in a post, it will display a thumbnail, title and description from the linked page after posting. However, some sites (e.g. Shopify) display a broken image and "Access denied" as page title. Some sites may display a different wrong preview output but the root cause may still be the same.
To fix this issue, it requires editing 2 CORE PHP files. This means it can only be done on self-hosted vB5 version and not on vBCloud.
First PHP file:
Second PHP file:
Before fix:
β
After fix:

Enjoy!
Please let me know if this solution works for your or not.
If you find this useful, feel free to share it with others.β
To fix this issue, it requires editing 2 CORE PHP files. This means it can only be done on self-hosted vB5 version and not on vBCloud.
First PHP file:
- Log in to your server using cPanel or FTP.
- Open and edit the following file in a code editor.
Code:core/vb/utility/url.php
- Find the following lines:
PHP Code:// const USERAGENT = 64;
PHP Code:// case self::USERAGENT:
- Uncomment the lines by removing the //.
- Find the following line:
PHP Code:curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- Add the following code right below the code in Step 5:
PHP Code:if (!empty($this->options[self::USERAGENT]))
{
curl_setopt($ch, CURLOPT_USERAGENT, $this->options[self::USERAGENT]);
}β
- Save the file.
Second PHP file:
- βOpen and edit the following file in a code editor.
Code:core/vb/api/content/link.php
- Find the following line:
PHP Code:$vurl->setOption(vB_Utility_Url::HEADER, 1);
- βAdd the following code below the code in Step 2:
PHP Code:$vurl->setOption(vB_Utility_Url::USERAGENT, $_SERVER['HTTP_USER_AGENT']);
- Save the file.
- After editing both files, log in to AdminCP and clear the system cache in Maintenance > Clear System Cache.
- Log in to vbulletin.com
- Go to Members Area
- Go to the vB 5.7.2 download page.
- Choose "More Download Options" radio button option.
- Choose No for the "Use compressed PHP Archive:" radio button option.
- Check the "I agree" checkbox.
- Click Download button.
- Extract the compressed package file.
- Login to your server using FTP or SSH.
- Upload the contents of the upload/core/vb folder to the core/vbβ folder on your server. Overwrite files when prompted.
- You can now find and edit the second PHP file.
Before fix:
After fix:
Enjoy!

Please let me know if this solution works for your or not.
If you find this useful, feel free to share it with others.β
Comment