I can't get it to work.
My postbit_attachmentimage looks like this:
Code:
<p><smallfont>$post[username] has attached this image:</smallfont><br>
<A HREF="http://www.theforumz.com/forumz/attachment_viewer.php"><IMG SRC="attachment.php?s=$session[sessionhash]&postid=$post[postid]" BORDER="0"></a>
and the attachment_viewer.php looks like this:
Code:
<? require("attachment.php"); ?><HTML>
<HEAD>
<TITLE>TheForumz.com</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" BACKGROUND="http://www.TheForumz.com/images/forum_background.gif">
<DIV ALIGN="CENTER"><? include("http://www.theforumz.com/includes/attachment_viewer_top_banner.htm"); ?><BR><BR><IMG SRC="attachment.php?s=$session[sessionhash]&postid=$post[postid]" BORDER="0"></DIV>
</BODY>
</HTML>
What else do I need to do to get it to show the attachment when people click on the attachment in the thread?
Can somebody please help me?