Widget twich

Inne  Założony przez  blokers.

wersja skryptu MyBB:1.8.6
adres forum: csgdansk.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):

Witam. Robie widget twicha na forum z tego gotowego rozwiązania http://codepen.io/svinkle/pen/qIyAE
W index zrobilem tak
    <!------ BOX 3 ------------------------------------------>
        <
div class="box_sidebar">
            <
div class="thead_sidebar">
                
Twich graczy
            
</div><!-- thead_sidebar -->
            <
a href="#" class="twitch-widget" id="twitch-widget" target="_blank"></a>

<
iframe src="http://streambadge.com/twitch/?username=magz_bang&theme=dark" style="width:270px;height:64px;border:0;"></iframe>
 
   <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>

 
       <script src="js/twich.js"></script>
            </
div><!-- trow_sidebar -->
        </
div><!-- box_sidebar -->
        <!------ 
KONIEC BOX 3 ----------------------------------> 



do global.css
.twitch-widget {
    
background#333;
    
border-radius5px;
    
color#fff;
    
displayblock;
    
margin25px 0;
    
padding10px;    
    
text-decorationnone;
}

.
twichon, .twichoff {
    
border-radius5px;
    
displayinline-block;
    
height10px;
    
width10px;
}

.
twichon {
    
backgroundgreen;
}

.
offline {
    
backgroundred;
}

.
viewers {
    
color#ccc;
    
displayblock;
    
margin0 0 0 15px;
    
font-size0.8em;


A twich.js wrzucilem do jscript na ftp

(function() {

 
 var user_nameapi_keytwitch_widget;
 
 
  user_name 
"magz_bang";
 
 api_key "5j0r5b7qb7kro03fvka3o8kbq262wwm";
 
 twitch_widget = $("#twitch-widget");

 
 twitch_widget.attr("href","http://twitch.tv/" user_name);

 
 $.getJSON('https://api.twitch.tv/kraken/streams/' user_name '?client_id=' api_key '&callback=?', function(data) {    
     
 if (data.stream) {
         
 twitch_widget.html("<span class='twichon'></span> Online! Playing: " data.stream.game "<span class='viewers'>Viewers: " data.stream.viewers "</span>");
     
 } else {
         
 twitch_widget.html("<span class='twichoff'></span> Offline");
     
  
  
});

})(); 

I tu jest problem, mam tylko jedna czarną linie. 
Cos zle zainstalowalem?
wiec sciezka do twich.js jest niepoprawna
Ok, to i tak jest tylko jedno. Ponizej powinno pokazac sie jeszcze ponizej nazwe usera.



Użytkownicy przeglądający ten wątek:

1 gości