![]() |
NZB Attachment Parser
NZB Attachment Parser Description: This product will parse nzb attchments and display the contents in postbit. Request Thread: https://vborg.vbsupport.ru/showthread.php?t=135621 Installation: All the installation information is in the package. Changes: 1 Plugin 1 File Upload Change Log: 11/01/2007 - Version 1.1 - Collapsible NZB File Content Tables 10/01/2007 - Version 1.0 - Initial Release |
/me Reserves
|
Didnt work for me, I am using GARS, so this could be the reason :(
Code:
<if condition="$show['attachments']"> |
What do you mean by 'It doesn't work?'
|
worked perfect first time - great hack
|
Its ok, now sorted :)
I do have a question though, Would it be possible to have this so you have to click a Show Files link and then they show? EDIT: Sorry but when its a say DVD nzb theres lots of files and it slows the page down no end I have had to remove this for now, If you do manage to find a way to add a link to show files then i will deffo install again.....Thanks |
Hack Updated!
11/01/2007 - Version 1.1 - Collapsible NZB File Content Tables |
does this require you to store your attachments in a directory vs the db?
|
Thank you so very much Dismounted, i actually thought it was a long shot, much appreciated :)
Sorry to ask some more but... How do i set the table so that its closed by default please? Also the image for the nzb attchment is no longer showing for some reason Also i would like to see a gap between the attached file and the nzb file info window please |
Quote:
Quote:
PHP Code:
PHP Code:
Quote:
HTML Code:
<!-- Start NZB Attachment Parser --> HTML Code:
<img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /> Quote:
PHP Code:
HTML Code:
<br /> |
Hi m8, thanks for all ya help
Everything is ok apart from the image still, its now there just slightly in the wrong please Please see image..... Can you think of any reason why having this mod/hack will make the page slow to open... I have tested the same page with and without but its been the same results, fast without mod/hack, slow with it....I thought it was because all the files were showing, hence i wanted it closed as default, but that wernt the case lol, still want ti closed though :) Thanks again |
Quote:
Quote:
|
lol...story of my life, i always forget the image, but in my favour, i did have to run out the door to go to work :)
Image enclosed (i hope lol) That will explain why its slower opening regardless... |
Quote:
HTML Code:
<td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td> HTML Code:
<td valign="top"><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td> |
Thanks a lot, thats got it all sorted now, much appreciated :)
|
Quote:
I find if you remove everything but the file list (group, poster, file size, parts) then it's not so bad with larger files. Great hack, I tried for hours on the collapsible deal by myself before I noticed you added it. |
Can you advise as to how to strip (group, poster, file size, parts) please?
Quote:
|
You have to edit the table in class_nzbparser.php and remove the appropriate <td>'s.
|
Quote:
|
Does it make a vast improvement once modified?
|
Quote:
Quote:
|
Ok, thanks, i will try this :)
|
Hi,
Any chance I could get this to work on 3.5.x? Thanks |
Yea, it should work, provided you change the format of the XML abit. I forgot what you change to make it 3.5-compatible.
|
what is the Attachment Manager code fore NZB.
??? Content-type: application/zip ??? |
What are you talking about? You don't need to set any content types.
|
I get this error at the top of the page :
Warning: file_get_contents(/path/to/your/attachment/directory/1/1.attach) [function.file-get-contents]: failed to open stream: No such file or directory in /includes/class_nzbparser.php on line 20 And the nzb contents do not show? whats wrong? |
Are you using the file-based attachments system?
|
Quote:
|
You must use the file system.
|
sorted m8 nice one is there any for a zip / rar file which has an nzb inside it ? thx in advance
|
That would require an extra zip parser which would be a pain in the a** to manage.
|
ok m8 what about parsing txt / nfo files also m8 is there a way of the nzb listing automaticly collapsed without it loading then collapsing.
|
This hack is not designed for parsing nfo files. What is there to parse anyway?
It is possible to have it automatically collapsed, but it is chunky code. If you are trying to reduce loading times, don't bother. |
Quote:
|
Oh, that's what you meant. "Parse" means read and interpret data from a file with defined tags or a defined format. nfo Files are just files with text in them, so it wouldn't classified as parsing.
There are lots of ways, but this is only a hack for parsing nzb files. |
could you make a nfo reader
|
I could, but the discussion should not be in this thread.
|
Quote:
|
m8 its not parsing the nzb files properly anymore due to them changing.
|
All times are GMT. The time now is 05:20 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|