Tips – I'm Knight https://imknight.net From Freelancer to Bootstrapper Mon, 16 Jan 2017 14:12:43 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.8 Fix missing favicon on IE7 https://imknight.net/development/fix-missing-favicon-ie7/ https://imknight.net/development/fix-missing-favicon-ie7/#respond Thu, 05 Nov 2009 15:55:27 +0000 https://imknight.net/?p=1955 I just fix a missing favicon problem in IE7 for my work few day ago, i would like to share how i fixed it after trying a few different solution. so the original code...

The post Fix missing favicon on IE7 appeared first on I'm Knight.

]]>
I just fix a missing favicon problem in IE7 for my work few day ago, i would like to share how i fixed it after trying a few different solution. so the original code that i have on the site is

<link rel="SHORTCUT ICON" href="/favicon.ico" />

since i using firefox as my major development browser and this code display the favicon perfectly ok on firefox , i thought this is the correct way to using it ( ya i know by right i should check this againts  cross browser )  until the users file a bug on this , the favicon is not showing on IE 7.

after some research on the web and doing some testing on the site , finally i found the solution , there are 2 thing i have miss out

  • IE7 have a bug to recognize favicon on relative path, that why the path for the icon must be aboslute path , which mean the ico image file with full domain.
  • there is a need to declare the mime type for favicon , which is the  type="image/x-icon".

<link rel="shortcut icon" href="http://domain/favicon.ico" type="image/x-icon" />

after this you might still not seeing the favicon appear on your IE , you need to clear your cache first and reload the site, the first time be slightly slower but it should be display the favicon after a while. Below is the image what favicon is , in case some of the reader don’t know.

favicon

The post Fix missing favicon on IE7 appeared first on I'm Knight.

]]>
https://imknight.net/development/fix-missing-favicon-ie7/feed/ 0
1 item remaining bug for addthis user https://imknight.net/web-o-matic/1-item-remaining-bug-for-addthis-user/ https://imknight.net/web-o-matic/1-item-remaining-bug-for-addthis-user/#respond Wed, 15 Jul 2009 17:00:20 +0000 https://imknight.net/?p=1911 I just solved this bug today for my work, the site load perfectly ok on firefox but it will show 1 item remaining loading message when viewing on Internet Explorer. It happen that because...

The post 1 item remaining bug for addthis user appeared first on I'm Knight.

]]>
I just solved this bug today for my work, the site load perfectly ok on firefox but it will show 1 item remaining loading message when viewing on Internet Explorer. It happen that because we are using addthis this widget.

Base on the forum thread in addthis community , it seem like quite a lot of user having this problem, i have no idea why they still want to include this flash file , but the additional flash file which included in their widget is the major cause for this bug. The solution is adding this line in the javascript

[js]
<script type="text/javascript">
var addthis_disable_flash = true;
</script>
[/js]

this will actually disable that flash file, once this is done  , there will be no more loading message appear when you view on IE.

The post 1 item remaining bug for addthis user appeared first on I'm Knight.

]]>
https://imknight.net/web-o-matic/1-item-remaining-bug-for-addthis-user/feed/ 0
Display user count from delicious https://imknight.net/development/display-user-count-from-delicious/ https://imknight.net/development/display-user-count-from-delicious/#respond Tue, 12 May 2009 15:18:12 +0000 https://imknight.net/?p=1843 I m redesign one of my showcase site , one of the feature i m thinking of is display user count that saved the showcase site on delicious. Although there are some ready solutions...

The post Display user count from delicious appeared first on I'm Knight.

]]>
I m redesign one of my showcase site , one of the feature i m thinking of is display user count that saved the showcase site on delicious. Although there are some ready solutions call tagometer, but it seem like the options is limited, nothing much can be configure. This image tell why i need the the user count for [image via go2web2.0]

saved-on-delicious.jpg

after some research , i find out that for getting the total user , it  can be done in 4 line , if your host/server is having PHP 5.2 and above.

[php]$hash=md5($url);
$delrawoutput = file_get_contents(&quot;http://feeds.delicious.com/v2/json/urlinfo/$hash&quot;);
$deloutput = json_decode($delrawoutput, true);
echo $deloutput[0][&quot;total_posts&quot;];[/php]

what you actually need to do is convert the url into md5 hash and send over to delicious API , it will return json data and after json_decode ( function that available on php5.2 and greater ), you can get the total user count.

If you want to use this in your wordpress theme , just paste the below function in your theme folder , on a file call functions.php , after that you can just apply the function in your theme with provided url.

[php]function getDeliciousCount($url){
$hash=md5($url);
$delrawoutput = file_get_contents(&quot;http://feeds.delicious.com/v2/json/urlinfo/$hash&quot;);
$deloutput = json_decode($delrawoutput, true);
return $deloutput[0][&quot;total_posts&quot;];
}[/php]

The post Display user count from delicious appeared first on I'm Knight.

]]>
https://imknight.net/development/display-user-count-from-delicious/feed/ 0
tcp/ip port for win98 https://imknight.net/web-o-matic/tcpip-port-for-win98/ https://imknight.net/web-o-matic/tcpip-port-for-win98/#respond Tue, 01 Mar 2005 15:42:52 +0000 https://imknight.net/2005/03/01/tcpip-port-for-win98/ i setup most of the computer in office for using the printer on tcp/ip port, its very easy on win Xp, because you just enter the ip to create the port then add the...

The post tcp/ip port for win98 appeared first on I'm Knight.

]]>
i setup most of the computer in office for using the printer on tcp/ip port, its very easy on win Xp, because you just enter the ip to create the port then add the printer driver, so the network printer will work, but i have some win98 system in office, old system like this is without the tcp/ip port, so i found this driver on a forum, its a tcp/ip port driver for win98, its not only recognize hp printer port only, canon and some other brand one will work also ..

ftp://ftp.hp.com/pub/networking/software/hpspm98.exe

The post tcp/ip port for win98 appeared first on I'm Knight.

]]>
https://imknight.net/web-o-matic/tcpip-port-for-win98/feed/ 0