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
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #12
RE: Page saving
It works, thanks Yumi Smile

[Image: logo.png]

[Image: twitter.png]
09-30-2010 04:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: