• 17-08-2010, 15:14:55
    #1
    Arkadaşlar siteme digg butonu eklemeye çalıştığımda internet explorer 8 de site açılmıyor. Yarım bir şekilde açılıyor ve öylece kalıyor. Eklediğim kod aşağıda.

    <a class="DiggThisButton DiggCompact">
    <script type="text/javascript">
    (function() {
    var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0]; 
    s.type = 'text/javascript';
    s.async = true;
    s.src = 'http://widgets.digg.com/buttons.js';
    s1.parentNode.insertBefore(s, s1);
    })();
    </script>
    </a>
    Aldığım hata ise şu:

    Webpage error details
    
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; InfoPath.1)
    Timestamp: Tue, 17 Aug 2010 12:12:49 UTC
    
    Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
    Line: 0
    Char: 0
    Code: 0
    URI: http://www.xxx.......
    İnternette araştırdım bir kaç şey buldum ama yukarıda vermiş olduğum scripte nasıl uygularım bilemiyorum. Değişiklik yaptığımda script çalışmıyor
  • 17-08-2010, 15:54:28
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    PHP ile alakası nedir?
  • 17-08-2010, 16:28:30
    #3
    Hata veren sayfayı iletirmisin. Kodu eklediğin yeri görmem lazım.

    bknz: http://support.microsoft.com/kb/927917
  • 17-08-2010, 16:45:16
    #4
    Kod aşağıdadır.
    <?php
    // no direct access
    defined('_JEXEC') or die('Restricted access');
    
    function CurrentPageURL()
    {
    $pageURL = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
    $pageURL .= $_SERVER['SERVER_PORT'] != '80' ? $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"] : $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    return $pageURL;
    }
    
    //Get url
    //($params->get('autourl') == 'yes' ? $url = JURI::current() : $url = $params->get('url'));
    ($params->get('autourl') == 'yes' ? $url = CurrentPageURL() : $url = $params->get('url'));
    
    ?>
    <style type="text/css">
    
    
    div.googlebuzz_seperator {
    	clear: both;  
    	height: 0px;
    }
    
    .googlebuzz {
    	width:100%;
    	text-align:center;
    }
    
    .googlebuzz div {
    	margin: 4px 6px;
    	padding: 0;
    }
    
    
    </style>
    <?php if($params->get('output') == 'iframe'): ?>
    <div class="googlebuzz">
    
    
    <table width="100%" border="0" cellpadding="0" cellspacing="3">
      <tr>
        <td width="auto" style="margin-left: 20px;">
    <a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
    </td>
        <td width="86px"><a title="Post to Google Buzz" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="small-count"></a>
    <script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script>
    </td>
        <td width="86px">
    <a class="DiggThisButton DiggCompact">
    
    <script type="text/javascript">
    (function() {
    var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0]; 
    s.type = 'text/javascript';
    s.async = true;
    s.src = 'http://widgets.digg.com/buttons.js';
    s1.parentNode.insertBefore(s, s1);
    })();
    </script>
    </a>
    </td>
        <td width="76px" style="padding-top: 4px; margin-right: 0px;"><script type="text/javascript">
    tweetmeme_style = 'compact';
    </script>
    <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></td>
      </tr>
    </table>
    </div>
    <div class="googlebuzz_seperator"></div>
    <?php else: ?>
    
    <fb:like href="<?= $url;?>"
             layout="<?= $params->get('layout');?>"
             show_faces="<?= ($params->get('show_faces') == 'yes' ? 'true' : 'false');?>"
             width="<?= $params->get('width');?>"
             action="<?= $params->get('verb');?>"
             font="<?= urlencode($params->get('font'));?>"
             colorscheme="<?= $params->get('color_scheme');?>"
    />
    
    
    <?php endif; ?>
  • 26-08-2010, 21:11:14
    #5
    Yeni konu açmak istemedim buradan konu ile ilgili sorunumu yazmak istiyorum. Facebook share butonu herzaman yüklenmiyor ve bu sayfanın açılışını etkiliyor ve sayfanın yarısı açıldığında öylece kalıyor. Bu butonun en son yüklenmesini sağlamak için bir fonksiyon varmı yada bir kod.