Sankaku Complex Forums » Meta

Can't watch Nico Nico Videos

  1. Hi, I'm a new user here and I've heard about the Nico Nico videos being embedded here and made available to everyone. But when I click on the play button nothing is played. I've tried stopping my avast! program but it still won't work. A quick check to firefox's error console reveals that the item is null. Is there a way around this ?

    Posted 7 years ago # Quote
  2. Avatar Image

    CC

    Try disabling all your Firefox addons (along with avast) before giving it another go.

    The null error is unrelated to the video playback (it got something to do with the comments) and this is what causing it
    function onloadhidecheck(id)
    {
    if (readCookie('e') == 1)
    {
    var item = document.getElementById(id);
    item.style.display = 'block';
    }
    }

    Something is giving an id of a non existing element to that function, as it can't be found it defaults to null, then it tries to do null.style.display = 'block';
    null has no functions.. so it errors out.

    If they're interested in fixing it,
    function onloadhidecheck(id)
    {
    if (readCookie('e') == 1)
    {
    var item = document.getElementById(id);
    if( item ) {
    item.style.display = 'block';
    }
    }
    }
    should do the trick.

    Ummm as a suggestion for this forum, the stylesheet could use an addition to the stylesheet
    code {
    white-space: pre;
    }
    to prevent the tabs/space being reduced to a single space.

    Posted 7 years ago # Quote
  3. Impressive stuff CC - honestly I have never seen such an error and would likely not have caught it. I will give it a try.

    Feel free to make any other suggestions now or in the future, I'm all ears (and as you can probably appreciate, I can't devote as much time to the coding side of things as sometimes I might like).

    Posted 7 years ago # Quote
  4. I made the changes suggested. Feel free to give any feedback.

    Posted 7 years ago # Quote
  5. Or trying to use another browser. Hey, at least it works on Opera, IE7, IE 8, Safari and Chrome for me :D

    Posted 7 years ago # Quote
  6. Make sure your network administrator don't put a block for video like mine, I can't view any video online unless I use a proxy application.

    Youtube and devian-art is out of reach for me, and no video from Nico Nico.

    Posted 7 years ago # Quote
  7. Avatar Image

    CC

    Mmh you could try
    .comment .reply, .comment .replytothis { overflow: hidden } on the news item pages, might stop the page from stretching when that ffffffffffffff spamming idiot is around.

    Frontpage is safe atm as non of the comment plugins are listing his comments at the moment, so can't really find the proper classes to apply it to atm ;)

    Filtering it at the source would probably be better, but you probably want to leave wordpress PHP scripts alone though, and I'm not very familiar with wordpress either so it would take a while to find out where the comments are put out to the page.. and the best way to apply a character limit to it.
    Something like feeding the output string to
    function characterLimiter( $sLong, $iChar )
    {
    return substr($sLong, 0, $iChar).'..';
    }

    But that's quite umm basic.. I'm sure the wordpress developers put similar functionality somewhere in the code already.

    [EDIT]
    Mmmh seems like you already have some custom CSS applied?
    .comment .reply {
    text-align: right;
    font-size: 80%;
    padding: 0px 6px 6px 0px;
    }
    .comment .replytothis {
    border: 1px solid #ddd;
    padding: 4px 4px 4px 4px;
    width: 180px;
    text-align:center;
    }

    So you could simply change those 2 to

    .comment .reply {
    text-align: right;
    font-size: 80%;
    padding: 0px 6px 6px 0px;
    overflow: hidden
    }
    .comment .replytothis {
    border: 1px solid #ddd;
    padding: 4px 4px 4px 4px;
    width: 180px;
    text-align:center;
    overflow: hidden
    }

    And I guess it would be a good idea to add some border to the code tags as it's hard to tell where they start and end,
    code {
    white-space: pre;
    border: 1px solid #CECECE;
    }

    [EDIT 2]
    Well not the way it should be done.. (again should be filtered at the source) but since the forum leaves br tags intact ..
    code br {
    display: none;
    }

    if display: none doesn't work, try visibility: hidden; instead, used one of those before for a similar problem where I didn't have control over the source myself.. but can't remember which. (Oh and if you're very unlucky some searchengines might pick up those 2 as something bad, as some idiots are stuffing a ton of unrelated contents in divs and then hiding them.. just read that though, haven't noticed any negative results with it myself yet)

    Posted 7 years ago # Quote
  8. Avatar Image

    CC

    Not sure if you want to be informed of the 491 errors on the frontpage btw ;)
    If it gets too big a mess searchengines may run into problems trying to understand the page, though I doubt wordpress is able to produce such a mess (third party addons might be able to though..)

    Err.. forum wont let me post br tags.. not even inside a code tag, anyways half the forum frontpages are caused due to the xhtml 1.0 document type and non-self-closing tags. {br} should be {br /} (the last slash makes it self closing, and yes I got creative there as I can't post greater then/less then symbols)

    Posted 7 years ago # Quote
  9. oh my... I need those skillz...

    Posted 7 years ago # Quote
  10. Hi, Thanks for the replies but it still does not work. I've tried disabling the plugins and avast! plus I've also tried using Opera browser but the videos still do not load. Could the problem lie with my router ?

    Posted 7 years ago # Quote
  11. Avatar Image

    CC

    It could doubt it though.. are you in control over your own network?
    As in ISP > Modem > Router > Your PC?
    And you don't live in some country where the government thinks they should limit the pages you're able to see? (China comes to mind)
    [edit]
    Is http://www.nicovideo.jp/ loading loading fine for you?
    If not.. what does running the following command in a dos window return? (Assuming you're running windows.. but I guess that's a given, even though there is a linux avast version)
    tracert http://www.nicovideo.jp

    Posted 7 years ago # Quote
  12. Tried the overflow suggestion - breaks formatting on the reply box (pushes it into the middle). I can guess at what's going on here but it's too fiddly to go through for the sake of meme victims. The floated (or whatever it was) Gravatar is pushing down the reply box and displacing it to the middle?

    Borders around code tags doesn't work as you expected, I think.

    I don't really know or care about validation as long as it displays ok in FF & IE7 - apologies. I've had to hack all sorts of things to have it display in IE and the like. Switching it to html 3.2 cuts the errors to 2 - perhaps it should be set this way?

    I had two questions you might lend some insight on:

    1. I'd love to hear any ideas on how to tidy up unruly text in the feed exchanges (it's truncated using a custom php trimmer but it still looks bad as far as evening things out goes) and top feeds (here I'm cheating with an iframe). It all gets severely messed up without fixed width fonts and with full width kanji, and I don't want empty lines and so forth...

    2. The Channel display is wrecked in IE6 and I can't find time to hack it to work. Perhaps I missed something obvious...

    Posted 7 years ago # Quote
  13. CC said:
    It could doubt it though.. are you in control over your own network?
    As in ISP > Modem > Router > Your PC?
    And you don't live in some country where the government thinks they should limit the pages you're able to see? (China comes to mind)
    [edit]
    Is http://www.nicovideo.jp/ loading loading fine for you?

    He is in Singapore, so he should be ok.

    I was going to ask the same thing. It might be a bit much to ask, but testing on another computer on the same connection could isolate the error.

    Posted 7 years ago # Quote
  14. Avatar Image

    CC

    Channel isn't quite like it should be in Firefox under linux either, even after importing all microsoft fonts that come with a vista installation.

    The last 'ero' choice is displayed on a second line, this pushes the search bar at the bottom out of sight.
    Not quite sure how you got it in a menu but directly calling the same page in php with require_once( 'scripts/rssbox/minichansafe.htm' ); and leaving everything inside and including the body tag out would probably cause less of a headache.

    The feeds seem fine to me?
    Not quite sure what you mean with the top feeds though, I see full feed/comments feed and a bunch of external feeds on the left.

    Posted 7 years ago # Quote
  15. Avatar Image

    CC

    If you don't have a secondary PC could try to use a liveCD of Windows or Linux, though I'm not sure how much of a hassle it is to get flash running under them.

    You can pick up a linux live cd for free from software.opensuse.org and windows.. well, let's not start linking illigal stuff here.

    Posted 7 years ago # Quote
  16. Avatar Image

    CC

    Mmmh artefact, any place where I can pick up the software used for chan.sankakucomplex.com ?
    Wordpress installed just fine so I might be able to test a couple of things then.
    [edit]
    The lack of prominent "Download here" link leads me to believe it isn't free to use?

    Posted 7 years ago # Quote
  17. Message me on the Channel (it's nothing untoward, just it may require a back and forth).

    The external (feed exchange) feeds are what's been bothering me. The truncation is all over the place and even with very tight limits someone will manage a combination of characters which pushes it onto two lines.

    The Channel bug I was referring to is on chan.sc.com.

    For the sake of my sanity, I limit testing to the top 3 browsers, and the ones I can actually run (IE6/7, FF on Windows). I can't test it on Linux (only Linux machines I have are headless servers), so there's nothing I can do really.

    Posted 7 years ago # Quote
  18. The brave men of web development. I would never touch that higher layer stuff.

    I would like to speculate though that if jolicious is getting a play button then his connection to nico is fine. Barring the possibility that his connection to certain nico servers is bad, maybe it might be a case of outdated Flash software?

    Posted 7 years ago # Quote
  19. Hi, I've tried using 2 other pcs including one with a direct connection to the router but it still does not load the video. I've just recently created a nico account and it is able to play the videos fine on the website but on Sankaku Complex the problem still remains.

    Posted 7 years ago # Quote
  20. I'm guessing your router or network is messing with the connection. If the same PCs play it from a different connection you'll know for sure. Maybe it has an overactive firewall?

    Posted 7 years ago # Quote

Reply »

You must log in to post.