Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: How can I make an NFO display pretty in a browser?

  1. #1
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    21,669
    View an NFO here on filesharingtalk.com:
    https://filesharingtalk.com/vb3/f-mov...vdr-jkr-386890
    Then view the same one on binsearch:
    http://www.binsearch.info/viewNFO.ph...492120&server=

    nfo.png

    How do I do that?

    It must have something to do with character encoding, but I don't know too much about that stuff. Does anybody have any ideas?

  2. Internet, Programming and Graphics   -   #2
    I found this in the HTML source of that page:
    HTML Code:
    <style type="text/css">
    	pre { font-family: "Courier New", "DejaVu Sans Mono", monospace; font-size: 13px; line-height: 14px; }
    </style>
    But I don't think it's related. Perhaps the program the NZB uploaders are using to open and copy the NFOs is showing them as what we see on the posts, instead of box drawing characters:
    Code:
                               ▓▌ ██▌  ██▌▓██▓█ ▓█████
                               ▐█ ▐█▓▐ ▐█▓  ▓▌▐▌▐▓   ▓▌
                               ▓▌ ██▌ ▌██▌ ▐█▄  ▓▌  ▐▓
                              ▐▓ ▐█▓  ▐█▓  ▓▌  ▐▓▌▄▄▓▌
                           ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    Edit: it doesn't look that nice here, even with the boxes, so maybe that CSS code does have something to do with it
    Last edited by anon; 05-24-2010 at 06:41 PM.
    "I just remembered something that happened a long time ago."

  3. Internet, Programming and Graphics   -   #3

  4. Internet, Programming and Graphics   -   #4
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    21,669
    It's a combination of both the CSS code and something else (character encoding?).
    If you apply that CSS to what you copied it will look exactly like on binsearch.
    The problem is I don't know how to convert:
    Code:
    
                              ²Ý ÛÛÝ  ÛÛݲÛÛ²Û ²ÛÛÛÛÛ
    
    
    
                              ÞÛ ÞÛ²Þ ÞÛ²  ²ÝÞÝÞ²   ²Ý
    
    
    
                              ²Ý ÛÛÝ ÝÛÛÝ ÞÛÜ  ²Ý  Þ²
    
    
    
                             Þ² ÞÛ²  ÞÛ²  ²Ý  Þ²ÝÜܲÝ
    
    
    
                          ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ
    to
    Code:
                               ▓▌ ██▌  ██▌▓██▓█ ▓█████
                               ▐█ ▐█▓▐ ▐█▓  ▓▌▐▌▐▓   ▓▌
                               ▓▌ ██▌ ▌██▌ ▐█▄  ▓▌  ▐▓
                              ▐▓ ▐█▓  ▐█▓  ▓▌  ▐▓▌▄▄▓▌
                           ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    (Using PHP).

    Quote Originally Posted by stan View Post
    Thanks, but I'm looking for a web-based option (php/html), not software. I know how to read an NFO file.
    Last edited by tesco; 05-24-2010 at 07:29 PM. Reason: Automerged Doublepost

  5. Internet, Programming and Graphics   -   #5
    Slickerey's Avatar <3 FST BT Rep: +2
    Join Date
    Dec 2009
    Posts
    482
    What if you make a new div class in CSS and use that?

    Then, you can make every user post their NFO in a bbcode tag, such as
    bla bla bla
    .

    Edit: I didn't know the tag would work.
    Last edited by Slickerey; 05-24-2010 at 10:49 PM.

  6. Internet, Programming and Graphics   -   #6
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    21,669
    Ya we have an nfo tag that we don't use anymore.

    This won't help, it still won't look like on binsearch.
    It's something to do with character encoding, I know it.

  7. Internet, Programming and Graphics   -   #7
    Cabalo's Avatar FileSharingTalker BT Rep: +24BT Rep +24BT Rep +24BT Rep +24BT Rep +24
    Join Date
    Mar 2007
    Location
    European Union
    Age
    47
    Posts
    11,849
    Most nfo software I've used defaults to the Terminal font. Don't know if it is somehow related. Or the interpretation of the line feed, as it double feeds creating that empty line which deforms the whole .nfo
    Last edited by Cabalo; 05-24-2010 at 11:23 PM.

  8. Internet, Programming and Graphics   -   #8
    vat0r's Avatar .:.
    Join Date
    Dec 2006
    Location
    MooseTown
    Age
    43
    Posts
    10
    Sorry to drudge up this thread but I think I know what they're using. A variation of this.

    Not sure how to go about using it with VB. Would love to know though.

  9. Internet, Programming and Graphics   -   #9
    darkstate01's Avatar Poster
    Join Date
    Oct 2007
    Location
    manc
    Posts
    438
    If my memory serves me right binsearch is based around ikbin(i may be wrong) but when i ran it, it needed a few programs putting on the server for it to run,php/sql etc, maybe if you d/l that and see all the programs it needs to run, that may shed light on your answer you require because that has the same nfo program built into it.

    I can't remember what the other programs were needed but thought this might help in your search instead of people guessing.
    ikbin is on sourceforge and its free.
    PAIN is just WEAKNESS leaving the body

  10. Internet, Programming and Graphics   -   #10
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    21,669
    Quote Originally Posted by darkstate01 View Post
    If my memory serves me right binsearch is based around ikbin(i may be wrong) but when i ran it, it needed a few programs putting on the server for it to run,php/sql etc, maybe if you d/l that and see all the programs it needs to run, that may shed light on your answer you require because that has the same nfo program built into it.

    I can't remember what the other programs were needed but thought this might help in your search instead of people guessing.
    ikbin is on sourceforge and its free.
    iokbin doesn't have the viewnfo.php file. It must be a binsearch exclusive.

    Quote Originally Posted by vat0r View Post
    Sorry to drudge up this thread but I think I know what they're using. A variation of this.

    Not sure how to go about using it with VB. Would love to know though.
    I'm trying this now but not having much luck yet...
    Last edited by tesco; 07-09-2010 at 02:45 PM. Reason: Automerged Doublepost

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •