need help with this one

htm1967

New Member
here the link from the hacks

NZB Attachment Parser - vBulletin.org Forum


can someoje put the whole solution about this hack here so i mis some info about this hack

i have install it but there is a error on line 20 from the xml file

this is the txt from vbulletin.org


Originally Posted by sde
does this require you to store your attachments in a directory vs the db?
Yes, you must store your attachments in the file system.

Originally Posted by bashy
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

Codedisplayerror: (Update license status)
You cannot view code until you prove your license status

Replace with:

Codedisplayerror: (Update license status)
You cannot view code until you prove your license status


Originally Posted by bashy
Also the image for the nzb attchment is no longer showing for some reason
In postbit_attachment, find:

Codedisplayerror: (Update license status)
You cannot view code until you prove your license status

Replace With:

Codedisplayerror: (Update license status)
You cannot view code until you prove your license status


Originally Posted by bashy
Also i would like to see a gap between the attached file and the nzb file info window please
In postbit_attachment, find:

Codedisplayerror: (Update license status)
You cannot view code until you prove your license status

Add before:

Codedisplayerror: (Update license status)
You cannot view code until you prove your license status


if there more for this please put it here i want to have it working on my forum
 
Here is the hack you requested and hidden text.

1) In 'class_nzbparser.php', find

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:

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>";

Originally Posted by bashy View Post

Also the image for the nzb attchment is no longer showing for some reason

In postbit_attachment, find:

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:

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" />

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:
Code:
$nzb

Add before:

Code:
<br />

In postbit_attachment, find:

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>

Replace With:

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>
 
ok is there other solution find its not working give a error on line 33 in that class.nzbparser.php

that is this txt

$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>";
 
Back
Top