Page saving
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #11
RE: Page saving
^ Yeah, basically that.

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

function cdthread_info() {
	return array(
		'name'			=> 'Content Disposition Thread',
	);
}

$plugins->add_hook('showthread_start', 'cdthread_run');
function cdthread_run() {
	global $thread;
	header('Content-Disposition: inline; filename="'.strtr($thread['subject'], array("\r" => '', "\n" => '', '"' => '\\"')).'"');
}


Installed here and appears to work.


My Blog
09-30-2010 08:14 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Page saving - Imran - 09-26-2010, 05:44 PM
RE: Page saving - ZiNgA BuRgA - 09-26-2010, 09:38 PM
RE: Page saving - Imran - 09-26-2010, 10:43 PM
RE: Page saving - ZiNgA BuRgA - 09-27-2010, 07:29 AM
RE: Page saving - Imran - 09-29-2010, 06:50 PM
RE: Page saving - ZiNgA BuRgA - 09-29-2010, 07:26 PM
RE: Page saving - Imran - 09-30-2010, 01:05 AM
RE: Page saving - RateU - 09-30-2010, 03:33 AM
RE: Page saving - Imran - 09-30-2010, 05:28 AM
RE: Page saving - RateU - 09-30-2010, 06:27 AM
RE: Page saving - ZiNgA BuRgA - 09-30-2010 08:14 AM
RE: Page saving - Imran - 09-30-2010, 04:10 PM

 Standard Tools
Forum Jump: