Go to the admin CP
Plugins & Products -> Plugin Manager
Look for "Product : Title Replace"
Edit the plugin labeled Title Replace
Replace the contents of the Plugin PHP Code with the code below.
The code below does NOT use cURL or fopen and does not run into the problem of either cURL not being installed or hosts that have URL opens with fopen disabled.
fsocketopen will retrieve the first 8k of the HTML file to look for the <title></title> tags. if it does not find them, it will end the connection and return the pasted URL as is.
I should warn you that i havent tested this code for basic PHP Errors. it would be wise to copy the existing plugin PHP Code to notepad for a backup before pasting the code below.
-- See my post below with the change that uses fread() opposed to while(!feof(resource) )
|