MyBB Community Forums

Full Version: PDF problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to disallow the attached PDF to load on the _self page?

I was thinking that if you can make the download prompt pops up when you click the PDF attachment.. Like when your downloading ZIP files. Because when PDF loads on the page, you have to rename the file when you "save as.." because the name is always "attachment.php".
Admin CP > Attachments > Attachment Types > .pdf > Delete

Smile
That doesn't solve my problem. PDF still loads directly.

To make it not load in _self was not my main point, I want the PDF files to be like ZIP files to have a download window prompt pops up. Smile
Open attachment.php

Find...
if($ext == "txt" || $ext == "htm" || $ext == "html")
Replace with...
if($ext == "txt" || $ext == "htm" || $ext == "html" || $ext == "pdf")
That should do the trick. Toungue
Oh sorry, I thought you wanted to get rid of .pdf's entirely...

My bad. Toungue