Quote:
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.
Quote:
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
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
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
Also i would like to see a gap between the attached file and the nzb file info window please
|
In postbit_attachment, find:
Add before: