ananaszjoe
Forum Replies Created
-
The above code handles href=”#” links as external too. Fix below:
// remove lightbox class from external linked images var comp = new RegExp(location.host); $('a').each(function(){ if(comp.test($(this).attr('href')) || $(this).attr("href") == "#"){ // a link that contains the current host $(this).addClass("local"); } else{ // a link that does not contain the current host $(this).removeClass("lightbox").unbind("click").addClass('external').attr('target','_blank'); } });I had the same problem but had critically small time to fix so I made this hack. Note that this is a bad solution, but a solution at least:
jQuery(function($) { $( document ).ready(function() { // remove lightbox class from external linked images var comp = new RegExp(location.host); $('a').each(function(){ if(comp.test($(this).attr('href'))){ // a link that contains the current host $(this).addClass("local"); } else{ // a link that does not contain the current host $(this).removeClass("lightbox").unbind("click").addClass('external').attr('target','_blank'); } }); }); });This removes the lightbox class from external links and gives them an ‘external’ class. It also unbinds those links from event listeners that might already been hooked on the element. For the links that are local, it only gives them a class of ‘local’.
Forum: Plugins
In reply to: [Weather Underground] French High and Lows* change
'high' => __('High %d°', 'wunderground'), 'low' => __('Low %d°', 'wunderground'),To your liking. The %d displays the number digits, the
°displays a degree character (as it did in my previous comment..)Forum: Plugins
In reply to: [Weather Underground] Displaying Units (F/C)the degree character codes got displayed 😛 I meant this:
°Forum: Plugins
In reply to: [Weather Underground] Displaying Units (F/C)Hi Mike, I needed the same thing but managed to figure it out how.
In wunderground/inc/class-template.php, on lines ~72~73,
change
'high' => __('High %d°', 'wunderground'), 'low' => __('Low %d°', 'wunderground'),To your liking. The %d displays the number digits, the ° displays a degree character. To show C or F unit, type it after °
Forum: Plugins
In reply to: [Weather Underground] French High and LowsHi Eric, I needed the same thing but managed to figure it out how.
In wunderground/inc/class-template.php, on lines ~72~73,
change
'high' => __('High %d°', 'wunderground'), 'low' => __('Low %d°', 'wunderground'),To your liking. The %d displays the number digits, the ° displays a degree character.
Forum: Plugins
In reply to: [AntiVirus] Cannot make manuel checkAfter update, manual scan works great 🙂
It even remembers if I declared a conspicuous code as not malware and doesn’t warn me about that at the next scan. (version 1.3.8)Forum: Plugins
In reply to: [AntiVirus] Cannot make manuel checkHi,
I have the same problem. I use the latest chrome on Win 8.1.
Just commenting so the issue could get more attention and I would be subscribed to the thread.