Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
NZB Attachment Parser Details »»
NZB Attachment Parser
Version: 1.1, by Dismounted Dismounted is offline
Developer Last Online: Apr 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.6.x Rating:
Released: 01-09-2007 Last Update: 01-10-2007 Installs: 23
Uses Plugins Template Edits
Additional Files  
No support by the author.

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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
madness85

Comments
  #2  
Old 01-10-2007, 02:59 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me Reserves
Reply With Quote
  #3  
Old 01-10-2007, 05:14 AM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Didnt work for me, I am using GARS, so this could be the reason

Code:
<if condition="$show['attachments']">
            <!-- attachments -->
                <div style="padding:$stylevar[cellpadding]px">

                    <if condition="$show['thumbnailattachment']">
                        <fieldset class="fieldset">
                            <legend>$vbphrase[attached_thumbnails]</legend>
                            <div style="padding:$stylevar[formspacer]px">
                            $post[thumbnailattachments]
                            </div>
                        </fieldset>
                    </if>

                    <if condition="$show['imageattachment']">
                        <fieldset class="fieldset">
                            <legend>$vbphrase[attached_images]</legend>
                            <div style="padding:$stylevar[formspacer]px">
                            $post[imageattachments]
                            </div>
                        </fieldset>
                    </if>

                    <if condition="$show['imageattachmentlink']">
                        <fieldset class="fieldset">
                            <legend>$vbphrase[attached_images]</legend>
                            <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                            $post[imageattachmentlinks]
                            </table>
                            </fieldset>
                    </if>

                    <if condition="$show['otherattachment']">
                        <fieldset class="fieldset">
                            <legend>$vbphrase[attached_files]</legend>
                            <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                            $post[otherattachments]
                            </table>
                        </fieldset>
                    </if>

                    <if condition="$show['moderatedattachment']">
                        <fieldset class="fieldset">
                            <legend>$vbphrase[attachments_pending_approval]</legend>
                            <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                            $post[moderatedattachments]
                            </table>
                        </fieldset>
                    </if>
                </div>
            <!-- / attachments -->
            </if>
Theres the attachment code, I have to go work so will be back later, great hack btw
Reply With Quote
  #4  
Old 01-10-2007, 05:30 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean by 'It doesn't work?'
Reply With Quote
  #5  
Old 01-10-2007, 02:50 PM
Raptor Raptor is offline
 
Join Date: Nov 2001
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked perfect first time - great hack
Reply With Quote
  #6  
Old 01-10-2007, 03:33 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 01-11-2007, 08:06 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hack Updated!

11/01/2007 - Version 1.1
- Collapsible NZB File Content Tables
Reply With Quote
  #8  
Old 01-11-2007, 01:42 PM
sde sde is offline
 
Join Date: May 2002
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this require you to store your attachments in a directory vs the db?
Reply With Quote
  #9  
Old 01-11-2007, 03:25 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 01-12-2007, 03:14 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sde View Post
does this require you to store your attachments in a directory vs the db?
Yes, you must store your attachments in the file system.
Quote:
Originally Posted by bashy View Post
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?
1) In 'class_nzbparser.php', find
PHP Code:
$nzbfiletable "<table class=\"tborder\" cellpadding=\"$cellpadding\" cellspacing=\"$cellspacing\" border=\"0\" width=\"100%\" align=\"center\"><td class=\"tcat\" colspan=\"2\"><a style=\"float: right;\" href=\"#top\" onclick=\"return toggle_collapse('nzbfile" $nzbfileid "');\"><img id=\"collapseimg_nzbfile" $nzbfileid "\" src=\"" $imgdir_button "/collapse_tcat.gif\" alt=\"\" border=\"0\"></a>NZB File Contents</td></table>"
Replace with:
PHP Code:
$nzbfiletable "<script type=\"text/javascript\">
var times=1;
function check_collapse()
{
if (times==1)
{
times=2;
return toggle_collapse('nzbfile" 
$nzbfileid "');
}
}
</script>"
;
$nzbfiletable .= "<table class=\"tborder\" cellpadding=\"$cellpadding\" cellspacing=\"$cellspacing\" border=\"0\" width=\"100%\" align=\"center\"><td class=\"tcat\" colspan=\"2\"><a style=\"float: right;\" href=\"#top\" onclick=\"return toggle_collapse('nzbfile" $nzbfileid "');\"><img id=\"collapseimg_nzbfile" $nzbfileid "\" src=\"" $imgdir_button "/collapse_tcat.gif\" alt=\"\" border=\"0\" onload=\"check_collapse();\"></a>NZB File Contents</td></table>"
Quote:
Originally Posted by bashy View Post
Also the image for the nzb attchment is no longer showing for some reason
In postbit_attachment, find:
HTML Code:
<!-- Start NZB Attachment Parser -->
<if condition="$attachment[attachmentextension] != 'nzb'">
<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" />
</if>
<!-- End NZB Attachment Parser -->
Replace With:
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:
Originally Posted by bashy View Post
Also i would like to see a gap between the attached file and the nzb file info window please
In postbit_attachment, find:
PHP Code:
$nzb 
Add before:
HTML Code:
<br />
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05232 seconds
  • Memory Usage 2,314KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_html
  • (3)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete