The Simpsons & Futurama Fanworks Central ][ Forums

The Simpsons & Futurama Fanworks Central ][ Forums
Chat Users Online
Topic: Look at us. We're discussing Harry Potter pairings.
Users: @SuzyQ
irc.simpworks.com
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 09, 2009, 01:59:12 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Another ask for Graham  (Read 239 times)
Dagdamor
Guest
« on: August 15, 2005, 09:43:52 pm »

I won't leave you alone, man! Until this forum will work like I want, that is. Wink
Can you add one simple feature to the SMF code? When I'm checking the threads (say, in the Netcomics section), all attachments are shown as images + extra link to the same attachment. But if I want to save an image on my computer, the forum engine doesn't provide a filename for it. Sad So I have to use that extra link to the attachment (wasting time to reopen the image) or to specify the filename manually. Can you fix that?

All you have to do is to check out the file Sources/Display.php, find the lines:

Quote
   if (!isset($_REQUEST['image']))
   {
      header('Content-Disposition: attachment; filename="' . $real_filename . '"');
      header('Content-Type: application/octet-stream');
   }

and to add after them:

Quote
   else {
      header('Content-Disposition: inline; filename="' . $real_filename . '"');
   }
Logged
Archonix
Whining Artist
Chief Executive Officer
Secretariat General
*****
Offline Offline

Gender: Male
Posts: 5488


All you can do is watch the inevitable crash down


WWW
« Reply #1 on: August 15, 2005, 09:56:59 pm »

Cor, all this php is making my head spin...
Logged

The Scots (originally Irish, but by now Scotch) were at this time inhabiting Ireland, having driven the Irish (Picts) out of Scotland; while the Picts (originally Scots) were now Irish (living in brackets) and vice versa. It is essential to keep these distinctions clearly in mind (and verce visa).
1066 and All That

In the world it is called Tolerance, but in hell it is called Despair, the sin that believes in nothing, cares for nothing, seeks to know nothing, interferes with nothing, enjoys nothing, hates nothing, finds purpose in nothing, lives for nothing, and remains alive because there is nothing for which it will die.
Dorothy L Sayers

The hardest thing to explain is the glaringly evident which everybody had decided not to see.
Ayn Rand


Parallel Lives current status:
A Road Not Taken: Complete
Where I Belong: 86,304 (draft completed)
Cantus Maeroris: 10,480
Dagdamor
Guest
« Reply #2 on: August 15, 2005, 10:10:38 pm »

Yay, works! Thanks a lot!
Logged
Ekko
Technical Supervisor
*
Offline Offline

Gender: Male
Posts: 605

I am the man, for I am DAN!


WWW
« Reply #3 on: August 21, 2005, 08:00:12 am »

It's all gibberish to me. Tongue
Logged

Can you withstand the power of my super taunt?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM


Google visited last this page January 02, 2009, 06:38:12 pm