View Full Version : How can I make an NFO display pretty in a browser?
tesco
05-24-2010, 06:29 PM
View an NFO here on filesharingtalk.com:
http://filesharingtalk.com/vb3/f-movie-nzbs-80/t-its-complicated-2010-dvdrscr-ws-ntsc-dvdr-jkr-386890
Then view the same one on binsearch:
http://www.binsearch.info/viewNFO.php?oid=42492120&server=
6368
How do I do that? :unsure:
It must have something to do with character encoding, but I don't know too much about that stuff. Does anybody have any ideas?
I found this in the HTML source of that page:
<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:
▓▌ ██▌ ██▌▓██▓█ ▓█████
▐█ ▐█▓▐ ▐█▓ ▓▌▐▌▐▓ ▓▌
▓▌ ██▌ ▌██▌ ▐█▄ ▓▌ ▐▓
▐▓ ▐█▓ ▐█▓ ▓▌ ▐▓▌▄▄▓▌
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Edit: it doesn't look that nice here, even with the boxes, so maybe that CSS code does have something to do with it :unsure:
The usual one is DAMN nfo viewer
http://www.softpedia.com/get/Office-tools/Text-editors/DAMN-NFO-Viewer.shtml
tesco
05-24-2010, 07:28 PM
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:
²Ý ÛÛÝ ÛÛݲÛÛ²Û ²ÛÛÛÛÛ
ÞÛ ÞÛ²Þ ÞÛ² ²ÝÞÝÞ² ²Ý
²Ý ÛÛÝ ÝÛÛÝ ÞÛÜ ²Ý Þ²
Þ² ÞÛ² ÞÛ² ²Ý Þ²ÝÜܲÝ
ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ
to
▓▌ ██▌ ██▌▓██▓█ ▓█████
▐█ ▐█▓▐ ▐█▓ ▓▌▐▌▐▓ ▓▌
▓▌ ██▌ ▌██▌ ▐█▄ ▓▌ ▐▓
▐▓ ▐█▓ ▐█▓ ▓▌ ▐▓▌▄▄▓▌
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄(Using PHP).
The usual one is DAMN nfo viewer
http://www.softpedia.com/get/Office-tools/Text-editors/DAMN-NFO-Viewer.shtml
Thanks, but I'm looking for a web-based option (php/html), not software. I know how to read an NFO file. :P
Slickerey
05-24-2010, 10:49 PM
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.
tesco
05-24-2010, 11:01 PM
Ya we have an nfo tag that we don't use anymore. :P
This won't help, it still won't look like on binsearch.
It's something to do with character encoding, I know it.
Cabalo
05-24-2010, 11:22 PM
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
vat0r
07-07-2010, 10:25 PM
Sorry to drudge up this thread but I think I know what they're using. A variation of this. (http://www.google.com/codesearch/p?hl=en#h-XlVc7m0Zw/trunk/viewnfo.php)
Not sure how to go about using it with VB. Would love to know though.
darkstate01
07-08-2010, 12:23 AM
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.
tesco
07-09-2010, 02:45 PM
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.
Sorry to drudge up this thread but I think I know what they're using. A variation of this. (http://www.google.com/codesearch/p?hl=en#h-XlVc7m0Zw/trunk/viewnfo.php)
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...
vat0r
07-09-2010, 03:39 PM
There is also this (http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&u=http://www.ugia.cn/%3Fp%3D55&sl=zh-CN&tl=en) tesco. It's originally chinese so the translation is iffy. But, check out the demo (http://www.ugia.cn/nfo/demo.php).
If you find a way to integrate this into vb whether by bbcode or attachment I'd really appreciate some tips.
Link to source (http://www.ugia.cn/wp-data/nfo2html_and_wpplugin.rar). It also has a wordpress plugin but you can ignore that mostly.
tesco
07-09-2010, 03:48 PM
I got it working! :)
Found a function on google by searching for "viewnfo.php" that converts the encoding...
If anyone wants it they can PM me, I won't share it here since it's not my coding...
bigdogg2020
08-22-2010, 07:50 PM
try this:
http://shailendra88.blogspot.com/2009/02/how-to-view-nfo-files-in-firefox.html
http://www.binaries4all.com/create_nfo/
Time is the key to perfection
tesco
08-22-2010, 10:50 PM
Thanks, but as you can see in this example I did get it working how I wanted:
http://filesharingtalk.com/ng_tools.php?do=nfo&collectionid=4644
Powered by vBulletin® Version 4.2.3 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.