97cobracpe
06-10-2007, 11:39 AM
I had a memember today tell me that they could not download one of the attachments on the board (a doc file). After investigating I found a typo in the adv_portal_newsbits_attach_inline template.
This part in that template looked fishy.. <a href="$vbulletin->options[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]">$attachment[filename]</a>
I checked out the template used for the thunbmails and the statement used to show the thumbnails was different, so I changed the inline one to match since thumnails worked fine. Voila, my problem was fixed.
<a href="$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]">$attachment[filename]</a>
Just thought I'd let others know, incase someone else has the same problem.
This part in that template looked fishy.. <a href="$vbulletin->options[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]">$attachment[filename]</a>
I checked out the template used for the thunbmails and the statement used to show the thumbnails was different, so I changed the inline one to match since thumnails worked fine. Voila, my problem was fixed.
<a href="$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]">$attachment[filename]</a>
Just thought I'd let others know, incase someone else has the same problem.