PDA

View Full Version : Changing "Plain text" to "Save this article"


Rayen
04-01-2008, 09:37 AM
Hello,

Is there an easy way to change the "Plain text" article option to "Save this article" - by showing "Save As..." prompt allowing the user to save the article in plain text or as html file in the desired location?

Thank you.

Alex
04-01-2008, 10:13 AM
Sure, here's what you got to do...

Look at files.php (in the root of Vivvo site), around line 56.

header("Content-type: application/force-download");
header("Content-disposition: attachment; filename=\"".basename($file)."\"");
now, take a look at feed.php (also in the root), around line 83

}elseif ($um->get_param('output_type') == 'txt'){
if (VIVVO_MODULES_PLAINTEXT == 1){
header("Content-type: text/plain");
Basically, you need to replace this header() with ones in files.php... All that remains is to take care of filenames...