Tooltips

Post Reply
4 posts
By websee at 2012-02-15 19:33:38

First id like to thank torhead for letting us embed their tooltips on our sites.

Now i have got a problem. I have embedded item tooltips on my site, but the icons don't show up because the links that torhead sets are formatted as
//tor.zamimg.com/torhead/images/icons/backgrounds/swtor/small/saber.low01.a01_v01.jpg

due to my site being accessed by default via https, but tor.zamimg.com does not accept https connections this causes icons not to display.

Any ideas on how to fix this. Since I don't own the webserver i cannot turn https off, so that's not an option.


By Scourne at 2012-03-05 22:42:03
THANK YOU! finally!someone else with the same issue and it doesn't look like anyone is going to respond to this... really they should take down the tooltip site kinda fals advertisement if you ask me....
By krojack at 2012-03-18 17:17:20

1. How is this false advertisement?

2. Every site that runs https should also support the exact same info in http. I would contact the person that runs the server and tell them about this problem. Most web sites don't need to run in secure mode.

By websee at 2012-03-20 06:39:59

The server is owned by an ex guildie who refuses to enable non secure connections.
I agree that it does not need to run in secure mode, but I personally cannot turn it off.

I have made a workaround for the above problem though. Instead of linking to the torheard js directly I am linking to the following PHP script:

<?PHP
$tohead_script 
file_get_contents("http://tor.zamimg.com/tooltips.js");
$tohead_script str_replace('{html:b,linkColor:c,icon:d,name:f}''{html:b.replace(/url\\(\\/\\/tor\\.zamimg\\.com/g,"url(http:\\/\\/tor.zamimg.com"),linkColor:c,icon:d.replace(/url\\(\\/\\/tor\\.zamimg\\.com/g,"url(http:\\/\\/tor.zamimg.com"),name:f}'$tohead_script);
header("Content-type: text/javascript");
echo 
$tohead_script;
?>

It will put some extra code into the js that will add http: to the icon links.

Post Reply

You are not signed in. Please sign in to post a reply.