View Single Post
Old December 7th, 2016, 07:48 AM   #1858
pcaca
Vintage Member
 
pcaca's Avatar
 
Join Date: Feb 2013
Location: Celebes island rain forest
Posts: 8,310
Thanks: 95,755
Thanked 138,541 Times in 8,351 Posts
pcaca 500000+pcaca 500000+pcaca 500000+pcaca 500000+pcaca 500000+pcaca 500000+pcaca 500000+pcaca 500000+pcaca 500000+pcaca 500000+pcaca 500000+
Default pimpandhost

Quote:
Originally Posted by Boatguy View Post
Patience is a virtue young shavers. Let's try to apply some to the current concerns about P&H. For those that want to post, there's a multitude of other file/image hosts available for posting. The majority of members here at VEF don't give P&H a second look when uploading their goods.

For those that want to download using IHG, either wait a few days for them to update the host file, or go to their support forum at the bottom of the page, set up an account, and request a fix for P&H. However, while P&H is still tinkering with their goods, I expect your best course of action is to just give it some time.
As you say, it's a matter of a few more days until the owners of IHG update it.

However, if you are in a hurry, and these "sucks" cannot wait, you can use the following fix (it's a bit arcane if you are not familiar with these tools, but I did it and it works very smoothly again on pimpandhost files):

1. Locate the "IHG host file". It's an XML file that IHG uses to store the file hosts definitions, so it can download files properly from each of them. You can see the path for this file by choosing the "Host File Editor" in the IHG menu (right click in the browser you are using). The path to the host file it at the bottom of the window that opens. In my case, is something like this:

C:\Users\XXXX\AppData\Roaming\Moonchild Productions\Pale Moon\Profiles\9rjzyax9.default\extensions\{E4091D6 6-127C-11DB-903A-DE80D2EFDFE8}\hostf.xml

2. Open this hostf.xml file with an editor (Notepad will suffice) - make a backup copy of the file before opening it, just in case...

3. Find the "pimpandhost" section. It should be something like this:

<host id="pimpandhost">
<urlpattern>^http:\/\/(?:image\.|www\.)?pimpandhost\.com\...
<searchpattern><![CDATA[function(pageData, pageUrl) {
...
return retVal;
}]]></searchpattern>
</host>


4. Now, you have to change the "function" by another one that will correctly retrieve the pimpandhost files from the new storage this filehost is using. This means EVERYTHING from:

function(pageData...

to:

...return retVal;}

DO NOT CHANGE anything else, i.e. any character before "function", or any character after the "}" (from the ]] on)

This is the new code that you have to insert, exactly where you are removing the previous one:

function(pageData, pageUrl) {
var retVal = {};
if (pageUrl.match(/-original\.html$/)) var iUrl = pageData.match(/src="(http:\/\/.+?)"/);
else {
if (pageUrl.match(/\.html$/)) {
retVal.imgUrl = pageUrl.replace(/.+\/(\d+)_x\.html$/, "http://image.pimpandhost.com/image/$1-medium.html");
retVal.imgUrl = retVal.imgUrl.replace(/(^http.+-)\w+\.html$/, "$1original.html");
}
else retVal.imgUrl = pageUrl.replace(/^http.+\/show\/id\/(\d+)$/, "http://pimpandhost.com/image/$1-original.html");
retVal.status = "REQUEUE";
return retVal;
}
return iUrl ? {imgUrl: iUrl[1], status: "OK"} : {imgUrl: null, status: "ABORT"}
}

5. Save the hostf.xml file in the same location and reopen your browser. Now IHG should work well with pimpandhost files.

Please note I have not invented this fix, I requested it in the IHG forum (Hot Honeys), they answered very quickly.

A final caveat: IHG checks periodically if there's a new hostf in the application's server, to stay updated with fixes and new host definitions. IF they change the reference file but the pimpandhost part is not updated with the above fix, you will lose this change unless you have "Ask" or "Add only new hosts" selected in the HostFile tab within the Options menu.

As @Boatguy says, it's a matter of time before the folks in charge of IHG fix the reference hostf with this new pimpandhost definition (maybe a few days, now that I "officially" informed them of the change), but if you are in a hurry, this workaround will do the job.

Regards
pcaca is offline   Reply With Quote
The Following 13 Users Say Thank You to pcaca For This Useful Post: